[Crash] Can't host old map

Status
Not open for further replies.
Level 1
Joined
Feb 24, 2020
Messages
4
Hey folks, I've been trying to host this old map from 2008, but it just starts the lobby, cancels it, starts it again in a loop and wont let me host.

Any idea what causes this? I tried looking through the JASS for clues but I have no direction for search so its not going too well.

I attached the map
 

Attachments

It's probably from pre-1.24b when the H2I return bug was removed. You need to edit the map script, find something that looks like this:
JASS:
function H2I takes handle h returns integer
  return h
  return 0
endfunction
Comment out the existing lines and make it look like this:
JASS:
function H2I takes handle h returns integer
  //return h
  //return 0
  return GetHandleId(h)
endfunction
 
I get the same thing for maze designer by dashival, trying to open the file in the editor causes crash or says "unit data missing or invalid". Would this be caused by the same issue/fixed in the same way? I really want to re-play this!...
 
I have all of this which I'm not sure how to convert, any idea?

function Rect2Unit takes rect R returns unit
return R
return null
endfunction
function Unit2Rect takes unit U returns rect
return U
return null
endfunction
function Loc2Unit takes location L returns unit
return L
return null
endfunction
function Unit2Loc takes unit U returns location
return U
return null
endfunction
 
Status
Not open for further replies.
Back
Top