- Joined
- Jul 18, 2010
- Messages
- 2,377
This a nasty bug happening only in the not upto date Warcraft 3 V1.31. And only for maps in Lua mode. After the game was Saved&Loaded FourCC stops working. This breaks any Unit/Ability/Item/Buff/Destruct/Terrain... Type comparer in GUI and written code.
This does not happen in the upto date version of warcraft 3 only on the old 1.31.
Thankfully Zed (discord) posted a working FourCC code. That one could just add to the map's script to stop the Save&Load Bug.
The map contains 3 GUI triggers. On Player Red selection each checks for an unitType and then prints the unit's name. When the Fix is disabled the triggers will fail to work after the game was Saved&Loaded.
This does not happen in the upto date version of warcraft 3 only on the old 1.31.
Thankfully Zed (discord) posted a working FourCC code. That one could just add to the map's script to stop the Save&Load Bug.
Lua:
function FourCC(id)
return 0x1000000 * string.byte(id:sub(1,1)) +
0x10000 * string.byte(id:sub(2,2)) +
0x100 * string.byte(id:sub(3,3)) +
string.byte(id:sub(4,4))
end
function GetFourCC(num)
return string.pack(">I4", num)
end
The map contains 3 GUI triggers. On Player Red selection each checks for an unitType and then prints the unit's name. When the Fix is disabled the triggers will fail to work after the game was Saved&Loaded.