Has anybody tried out 1.24?

lovexylitol

New Member
Reaction score
2
I'll have to try it out as soon as I get home.

Not sure if I read it right, but looks like H2I might not work any more.

Warcraft III v1.24 Patch Notes


PC WORLD EDITOR CHANGES

- Added new JASS hash table functions to replace the lost functionality from
fixing unsafe type casting.
- Hash Table - Save Item Handle
- Hash Table - Save Unit Handle
- ...
- Hash Table - Load Item Handle
- Hash Table - Load Unit Handle
- ...
- Hash Table - Get Handle ID

FIXES

- Fixed an exploit related to unsafe type casting that allowed users to
execute arbitrary code in maps.
- Fixed the JASS unsafe type casting exploit ("return bug").
- Fixed several World Editor crashes.
 

Dirac

22710180
Reaction score
147
All of my triggers where disabled and im unable to save my map... i think blizz screwed things up
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
Blizzard fixed the return bug. Any map that uses it will be unsaveble and unplayable.
The only fix is to stop using the return bug, eg remove all or update all systems that uses it and rewrite your own code to not use it.
For the special case of replacing H2I blizzard provided GetHandleId
 

LurkerAspect

Now officially a Super Lurker
Reaction score
118
Excuse my ignorance, but what is the return bug, and how can compensate for it to save my WIP before I get the patch?
 

woot

New Member
Reaction score
8
ACK my map is full of those

that's crappy .. its so much easier to have multiple returns in a function


does this only cause the map to not compile properly in 1.24 .. or does it also not work at all when played in 1.24 (if compiled in an earlier version)
 

Dem0n_Hunter

Active Member
Reaction score
2
Well I had a map saved in 1.23 but now I can't open it so I guess if you saved on older version u still can't open it in 1.24 that one of the reasons dota doesn't work anymore
 

Romek

Super Moderator
Reaction score
963
> This news has been around for at least a month.
The patch was made official today.
 

Dem0n_Hunter

Active Member
Reaction score
2
Which news? that the return bug is fixed and we're all screwed. (at least me)
or the new patch is coming out
 

Romek

Super Moderator
Reaction score
963
The patch has been beta for a very long time now.

You missed out on a lot. >.<
 

Kazuga

Let the game begin...
Reaction score
110
Didn't see that one coming... Hope my map isn't ruined, if it is I'm going killing spree on Blizzard. (Worked on it for over a year.)
 
Reaction score
341
Didn't see that one coming... Hope my map isn't ruined, if it is I'm going killing spree on Blizzard. (Worked on it for over a year.)

It's not that hard to fix :nuts:

Just remove H2I from your map and replace any H2I( calls with GetHandleId(
 

lovexylitol

New Member
Reaction score
2
Hmmm.

Even if the info was avaliable, well it could have been better if they posted on the battle.net welcome page. (Yes, yes I'm lazy I don't go to the support forums)

Just in case somebody finds this useful.

1.24 Checklist

1. Change H2I to GetHandleId.

2. If your map uses any custom Blizzard.k, common.j, *.ai etc, update em.

3. If your newgen isn't working suddenly (crash, error, overflow etc), download the 5d version, update your wc3, and run 'NewGen WE.exe'. (At least the combination worked for me)

4. Read this! http://www.wc3c.net/showthread.php?t=106305

5. Seems like there is a funky bug. Read http://www.wc3c.net/showpost.php?p=1096978&postcount=12 or the other 1.24 thread http://www.thehelper.net/forums/showthread.php?t=133555
 

MasterOfRa

New Member
Reaction score
10
Is there a way to determine where my bugs are? Ive already looks through all my triggers and changed usage of the H2I to GetHandleId, and it didnt help.

Is there a new jasshelper yet that tells you where you didn't follow these retarded new rules? they may be necessary to prevent people from using the byte code thingy, but i would really prefer risking that than not being able to host, or even test any of my custom maps, that i spent so much time on...
 
Reaction score
341
JassHelper isn't what tells you your errors, pJASS is. Anyways don't just replace your H2I calls, remove the H2I function completely from your map.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top