• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

1.24 functions

Status
Not open for further replies.
Level 6
Joined
Mar 26, 2008
Messages
239
Hi! I have some problems with making my map work on 1.24 version.
Which functions must be changed and on what functions they must be changed?
I'm from Turkmenistan, so sorry for my English if you don't understand something:grin:
 
Level 13
Joined
May 11, 2008
Messages
1,198
any function that does this:

return
return

twice in a row like that.

i don't know how to fix them all, i don't know how to fix I2U or I2E or others, but i do know how to fix H2I

H2I looks like this:

function H2I takes handle returns integer
return h
return 0
endfunction

i think that's it. change it to:

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

there might be somewhat better ways to fix it, but this is a simple and fast way to fix it.
i think a lot of systems have to be reworked using hashtables now instead of gamecaches i guess like I2U and others...maybe other people will post their findings about these. i'm afraid to experiment with these new hashtables since i didn't even make systems using the old game caches yet...i need some instruction maybe...i'm also a bit busy or else i guess i'd tinker about but knowing me it would probably be a waste of time anyway...

as a side note i'd like to mention that there are a few spells that i liked ALOT which i don't know if i'll use in any of my maps ever, but would like to, which use I2U and I2E those kinds of functions which will obviously need to be fixed so that's why i brought those up in case someone can shed some light on it for me so i can get those spells working again...they were amazing imo. but i may analyze them and try to figure out how necessary those systems are...i'm not sure lol.
 
Status
Not open for further replies.
Top