• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Spell] Save/Load system for GUI user?

Status
Not open for further replies.
Level 3
Joined
Aug 19, 2020
Messages
38
Greetings,
I would like to ask if there are any save/load system which are suitable for GUI users.
I tried CodeGen and AceHart's s/l system, but seems like they cannot save more than 2 heroes.
What I want is a s/l system which can save 3heroes( 1 hero with two bag)
Thank you.
 
Level 3
Joined
Aug 19, 2020
Messages
38
Oh it's the author of CodeGen!
I copied the system to my map and stored everything( heroes and items ) in init part,
but whenever I load, it only loads the first hero with first item only, the remaining is all disappeared.
 
Level 3
Joined
Aug 19, 2020
Messages
38
Yes, i did modify the save and load triggers, using CodeGen as an example,
I added the
save count = save count +1
set Hero = my unit
call CodeGen.....
For Integer A 1 - 6,
save count = save count + 1
set item = unit's items (integer A)
call CodeGen....

and did the same thing in the load trigger, but it just don't work.
( It works in your demo map, but did not work in my map)
I don't know why, CodeGen should not crash with AceHarts S/L system as well.
 
Level 3
Joined
Aug 19, 2020
Messages
38
You have to modify the save and load triggers as well.
I tried many things and I found that its the problem of loop for integer A, and now it can load properly.
But I have another question, why most of the time it cannot generate the txt file which contains the code?
 
Status
Not open for further replies.
Top