• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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

  • Maze of Shifting.w3x
    242 KB · Views: 24
Level 45
Joined
Feb 27, 2007
Messages
5,578
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
 
Level 9
Joined
Mar 17, 2016
Messages
153
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!...
 
Level 1
Joined
Feb 24, 2020
Messages
4
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.
Top