• 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.

Reforged Broke Triggers "Local Handle System (made by KaTTaNa)"

Status
Not open for further replies.
Level 2
Joined
Aug 24, 2021
Messages
8
Hi All,

I hope you can assist me with this, i put a lot of hours many years ago into building this map and someone from forums such as this helped me build the tricky-ier triggers so i dont know how to fix them now they are broken.

Its a simple map using a ladder map with my own unit values (imports fine into reforge) but the triggers are coming up with a number of error codes but i have narrowed it down to the dota-like recipe system that was added with the Kattana custom script and the recipe system triggers. if i delete the trigger folder and the custom script, i can save and load the map.

If anyone can help me fix the dota-like recipe system it would be very much appreciated

It keeps returning this for a number of lines:
"Cannot convert returned value from handle to integer"

and then highlights a long list of errors such as:

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

I have attached the map itself if anyone can have a closer look.

thank you for any assistance! i really want to play this map again with my friends
 
Last edited:
function H2I takes handle h returns integer
return h
return 0
endfunction
Thats the return bug used before Warcraft 3 V1.24, has nothing to do with reforged.

But it should be easy to fix. The function above has to be changed into this:
JASS:
function H2I takes handle h returns integer
    return GetHandleId(h)
endfunction
 
Level 2
Joined
Aug 24, 2021
Messages
8
Wow thanks!!!
Fixed it.
I was also going through all the help guides on this website and was halfway doing the trigger only version haha.
Thanks!
 
Status
Not open for further replies.
Top