- Joined
- Aug 5, 2014
- Messages
- 200
Hello, maybe it will seem a very retarded question. But really cant understant what seems to be a problem. I just making a map for myself for fun and tried to port trigger from Open Dota, Warlock SpellBound. It was very old version with returnbug, so i replace it with hashtable and stuff. And im stuck with the problem where it save local unit group in hashtable, and then must load it in funtion where units in this local group takes damage. After that i tried to debug it and found out when local group is created and in the moment of saving into hashtable, it has some units, but when it loaded in other function its empty. I tried to make a simple trigger model, where local group is filled, saved in hashtable, than loaded from hashtable, and its count displayed in the game. And the same result. I even extract war3map.j from more modern versions to see how its done(returnbug replacement), and its done the same way with local groups and hashtables. I dont get what i missed?
Here is example of simple LocalGroupTest, which i did when i tried to understand why group is empty after loading.
I tried different ways to that. SaveGroupHandleBJ, SaveGroupHandle. Same with Load.
One major thing, Im working with old version of editor 1.31, pre reforged. I also tried to test it on more older 1.28, results are the same.
Thank you in advance.
Here is example of simple LocalGroupTest, which i did when i tried to understand why group is empty after loading.
I tried different ways to that. SaveGroupHandleBJ, SaveGroupHandle. Same with Load.
One major thing, Im working with old version of editor 1.31, pre reforged. I also tried to test it on more older 1.28, results are the same.
Thank you in advance.