• 🏆 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!

Problem with 1.23+ Patch

Status
Not open for further replies.
Level 16
Joined
Mar 3, 2006
Messages
1,564
[I am not sure this is the right forum to post this thread]

Firstly, Hello everyone its been a long time since I posted anything, so I may need some refreshing on vJASS.

Secondly, There seems to be a problem with patch 1.23 and 1.24. Some maps that used to work with 1.20 no longer works with those later patches. I don't know why is it related to the hashtable that was introduced in 1.23.
 
Level 11
Joined
Apr 29, 2007
Messages
826
They fixed the return bug, which means you can't use the old way anymore, and maps which use the old version won't load in Warcraft.

JASS:
function H2I takes handle h returns integer
    return h
    return 0
endfunction

That's what one example of the return bug looked like. Blizzard however fixed this, so we have to use another way which includes hashtables.

JASS:
function H2I takes handle h returns integer
    return GetHandleId(h)
endfunction

//Example to convert a units handle back to the unit
function I2Unit takes integer i returns unit
    call SaveFogStateHandle(SomeHashtable, 0, 0, ConvertFogState(i))
    return LoadUnitHandle(SomeHashtable, 0, 0)
endfunction
 
Status
Not open for further replies.
Top