• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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: 22
Level 39
Joined
Feb 27, 2007
Messages
5,019
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 8
Joined
Mar 17, 2016
Messages
133
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