New to Editor

Level 3
Joined
Oct 3, 2025
Messages
15
Hello all, i am new to editing and have come to a problem i dont know or understand how to fix. in the Editor mode everything works fine but once i host the game online to see if everything still works i run into the problem with items not saving to heros. i have spent the last 2days trying to find a solution to this problem but either i really dont understand the codeing/gui/jass stuff or im just completely boned, if anyone is willing to try and help me out here that would be much appreciated thank you in advance
 
Hello, so as of right now we can only guess what the issue is because "items not saving to heros" could mean a lot of different things, for example:

1. You're using Game Cache to try and save Items like what's used in the Campaign missions.
2. You're using a custom Save and Load system like the kind you'd find in the more advanced RPG maps (seems unlikely but again we don't know).
3. You're referring to something entirely different like the Save Game feature or the 'Item's Carried' presets.

Forgive me for the lecture, I only say this to get the idea across that a term like "saving" can mean many different things and that we can only really guess without more information. In this case the best way to give us more information is to provide us with your triggers:
Pictures would be the next best thing but please don't post pictures of your triggers :peasant-grin:
 
Last edited:
Hello, so as of right now we can only guess what the issue is because "items not saving to heros" could mean a lot of different things, for example:

1. You're using Game Cache to try and save Items like what's used in the Campaign missions.
2. You're using a custom Save and Load system like the kind you'd find in the more advanced RPG maps (seems unlikely but again we don't know).
3. You're referring to something entirely different like the Save Game feature or the 'Item's Carried' presets.

Forgive me for the lecture, I only say this to get the idea across that a term like "saving" can mean many different things and that we can only really guess without more information. In this case the best way to give us more information is to provide us with your triggers:
Pictures would be the next best thing but please don't post pictures of your triggers :peasant-grin:
  • Settings
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- -save:this save exp, items with slot and charge, hero location, gold and lumber, str, agi, int stat --------
      • Set VariableSet SL_STRING = 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$&/+-=[]^_`{}~()*
      • -------- enable custom value what allow you save more info into code --------
      • Set VariableSet SL_CUSTOM_VALUE_ON = True
      • -------- This say how much custom value you want save (btw custom values must be integer and max 2kkk and no negative value) --------
      • -------- if CV_MAX is 3 then index will be 1, 2, 3 to array what u save, so allways same than last index from CV_ARRAY in save trigger --------
      • -------- if you change then previous load code will be useless with different CV_MAX than current one, so be wise --------
      • Set VariableSet SL_CV_MAX = 2
      • -------- SAVEHERO on/off, if it is off then save only data from custom value's --------
      • Set VariableSet SL_SAVE_HERO = True
      • -------- If false then its only level without exp --------
      • -------- if SMART_LV is true then calculate the shortest way for save lv and exp --------
      • Set VariableSet SL_SAVE_SMART_LV = True
      • -------- Save the hero position in map --------
      • Set VariableSet SL_SAVE_COORD = False
      • -------- Bind to player the code so only that player can use his own code --------
      • Set VariableSet SL_BIND_TO_PLAYER = True
      • -------- enable saveing gold and lumber and max gold/lumber (used max gold value for both) --------
      • Set VariableSet SL_MAX_GOLD = 1000000
      • Set VariableSet SL_SAVE_GOLD = True
      • Set VariableSet SL_SAVE_LUMBER = True
      • -------- save HERO (Str, Agi, Int) stat or don't save? --------
      • Set VariableSet SL_SAVE_STAT = True
      • -------- Save Hero items? --------
      • Set VariableSet SL_SAVE_ITEMS = True
      • -------- Folder where we save, its look like: ....wc3\FOLDER\[I]HeroName[/I] - [I]Level[/I] ver*.txt --------
      • Set VariableSet SL_FOLDER = SaveLoad Code
      • -------- Declare the Heroes what we use on map --------
      • Set VariableSet SL_HERO_TYPE[1] = TaurenBM
      • Set VariableSet SL_HERO_TYPE[2] = DoomBull
      • Set VariableSet SL_HERO_TYPE[3] = Dwarf
      • Set VariableSet SL_HERO_TYPE[4] = WereWolf
      • Set VariableSet SL_HERO_TYPE[5] = DemonHunter
      • Set VariableSet SL_HERO_TYPE[6] = Gunner
      • Set VariableSet SL_HERO_TYPE[7] = Warlokc
      • Set VariableSet SL_HERO_TYPE[8] = SH
      • Set VariableSet SL_HERO_TYPE[9] = Dragoon
      • Set VariableSet SL_HERO_TYPE[10] = Centar
      • Set VariableSet SL_HERO_TYPE[11] = Vampire
      • Set VariableSet SL_HERO_TYPE[12] = Pally
      • Set VariableSet SL_HERO_TYPE[13] = Viking
      • Set VariableSet SL_HERO_TYPE[14] = Golem
      • Set VariableSet SL_HERO_TYPE[15] = SoundBreathing
      • Set VariableSet SL_HERO_TYPE[16] = Paladin
      • Set VariableSet SL_MAX_HERO = 16
      • -------- we set the items to variable but we doing this with jass, in header u can find the function --------
      • -------- if you easily want change the saveable items (currently 73 item type) --------
      • -------- then use https://www.hiveworkshop.com/forums/spells-569/save-load-tools-get-raw-code-file-randomiz-257133/ --------
      • -------- and replace the current once but dont forget change the MAX_ITEM variable too --------
      • -------- The crc code length, if 1=less accurate, 2=more accurate, 3=more accurate ...5=highest --------
      • -------- Default is 4 --------
      • Set VariableSet SL_CRC_LEN = 2
      • -------- List here the items what you want use --------
      • -------- and Max item at end --------
      • Set VariableSet SL_ITEM_TYPE[1] = DullAxe
      • Set VariableSet SL_ITEM_TYPE[2] = DullBlade
      • Set VariableSet SL_ITEM_TYPE[3] = RuggedBoots
      • Set VariableSet SL_ITEM_TYPE[4] = RuggedGloves
      • Set VariableSet SL_ITEM_TYPE[5] = RuggedHelmet
      • Set VariableSet SL_ITEM_TYPE[6] = RuggedShoulders
      • Set VariableSet SL_ITEM_TYPE[7] = DullBattleAxe 1/2
      • Set VariableSet SL_ITEM_TYPE[8] = DullBattleAxe 2/2
      • Set VariableSet SL_ITEM_TYPE[9] = DentedBoots
      • Set VariableSet SL_ITEM_TYPE[10] = DentedGloves
      • Set VariableSet SL_ITEM_TYPE[11] = DentedHelmet
      • Set VariableSet SL_ITEM_TYPE[12] = DentedShoulders
      • Set VariableSet SL_ITEM_TYPE[13] = Glave-Right-Hand
      • Set VariableSet SL_ITEM_TYPE[14] = Glave-Left-Hand
      • Set VariableSet SL_ITEM_TYPE[15] = PlatedBoots
      • Set VariableSet SL_ITEM_TYPE[16] = PlatedGloves
      • Set VariableSet SL_ITEM_TYPE[17] = PlatedHelmet
      • Set VariableSet SL_ITEM_TYPE[18] = PlatedShoulders
      • Set VariableSet SL_ITEM_TYPE[19] = RustedGun
      • Set VariableSet SL_ITEM_TYPE[20] = Hand-Made-Rounds
      • Set VariableSet SL_ITEM_TYPE[21] = DullClaws 1/2
      • Set VariableSet SL_ITEM_TYPE[22] = DullClaws 2/2
      • Set VariableSet SL_ITEM_TYPE[23] = StitchedGloves
      • Set VariableSet SL_ITEM_TYPE[24] = StitchedHelmet
      • Set VariableSet SL_ITEM_TYPE[25] = StitchedShoes
      • Set VariableSet SL_ITEM_TYPE[26] = StitchedShoulders
      • Set VariableSet SL_ITEM_TYPE[27] = TornGloves
      • Set VariableSet SL_ITEM_TYPE[28] = TornHelmet
      • Set VariableSet SL_ITEM_TYPE[29] = TornShoes
      • Set VariableSet SL_ITEM_TYPE[30] = TornShoulders
      • Set VariableSet SL_MAX_ITEM = 30
      • -------- Don't need to change these below --------
      • Trigger - Add to Auto Settings <gen> the event (Time - Elapsed game time is 1.00 seconds)
      • Hashtable - Create a hashtable
      • Set VariableSet SL_HASHTABLE = (Last created hashtable)
      • -------- don't need touch, will be loaded somewhere else --------
      • -------- this will automaticall updated in Load table and data trigger --------
      • Set VariableSet SL_MAX_HERO_LEVEL = 100
      • Set VariableSet SL_MAX_VAR = 2
      • Set VariableSet SL_VAR[1] = <Empty String>
hopefully this is what u meant, im not very good at this stuff
 
Okay, so it looks like you're using a custom Save and Load system (#2). Could you link the system you're using please? This looks like an older one.

Also, it looks like there's another trigger involved called Auto Settings:
  • Trigger - Add to Auto Settings <gen> the event (Time - Elapsed game time is 1.00 seconds)
I imagine there's even more triggers than that, it helps to see everything involved.

Some random notes:
  • Set VariableSet SL_CRC_LEN = 2
^ It said the default was 4, I would try that value instead of 2.
 
Okay, so it looks like you're using a custom Save and Load system (#2). Could you link the system you're using please? This looks like an older one.

Also, it looks like there's another trigger involved called Auto Settings:
  • Trigger - Add to Auto Settings <gen> the event (Time - Elapsed game time is 1.00 seconds)
I imagine there's even more triggers than that, it helps to see everything involved.
Save-Load codes 1.24 this is the once i found and have been using
 
Okay, so it looks like you're using a custom Save and Load system (#2). Could you link the system you're using please? This looks like an older one.

Also, it looks like there's another trigger involved called Auto Settings:
  • Trigger - Add to Auto Settings <gen> the event (Time - Elapsed game time is 1.00 seconds)
I imagine there's even more triggers than that, it helps to see everything involved.

Some random notes:
  • Set VariableSet SL_CRC_LEN = 2
^ It said the default was 4, I would try that value instead of 2.
yea the Auto setting trigger seems to work with Jass system i believe, im not at all familiar with it, i have been trying to dive into it and understand all of it XD but my brain goes straight mush at that point, but im definitely tryn to learn it and understand it
 
Save-Load codes 1.24 this is the once i found and have been using
I updated my last post with something I noticed that could be the issue.

And the Auto Setting trigger is just for setting up the system, you don't have to mess with it as far as I understand.

Another possible issue is that you're missing the Header code although I imagine you'd have gotten errors:
1759519210307.png

Make sure that you've copied everything needed into your map.

Anyway, I don't see any other issues in the map, but note that this system was marked as obsolete by the reviewers. I would make sure to read the reviews first before downloading anything.
 
Last edited:
I updated my last post with something I noticed that could be the issue.

Another possible issue is that you're missing the Header code although I imagine you'd have gotten errors:
View attachment 550574
Make sure that you've copied everything needed into your map.
yea i did the header copy that it instructed to do, everything that i have changed works fine in the World editor, but doesnt once i host the current version i have built at the moment, is there a way to share the map im working on if that would make it easier to help with this?
 
yea i did the header copy that it instructed to do, everything that i have changed works fine in the World editor, but doesnt once i host the current version i have built at the moment, is there a way to share the map im working on if that would make it easier to help with this?
There's an 'Attach files' button right below your post, but maybe you don't see it since your account is new.

There's also a Pastebin feature for sharing files, it's under the Utility button found at the top of the site.

I need to go afk soon so sorry if I don't respond anymore.
 
Last edited:
i see the Attach files button, learning new things XD i dont normally go onto forms for help normally just give up if i cant figure it out but i have been putting alot of work into this by myself so i dont wanna toss the towel in this time XD @Uncle

There's an 'Attach files' button right below your post, but maybe you don't see it since your account is new.

There's also a Pastebin feature for sharing it, it's under the Utility button you can find at the top of the site.

I need to go afk soon so sorry if I don't respond anymore.
No worries i appreciate all the help, iv seen ur name all over so i know im in good hands XD get back to me when ever u can i really appreciate it again
 

Attachments

Assuming it was related to the system, could you please explain what you did to fix the problem. These threads exist to help others with the same problems.
ah of course, and it was due to the save file constantly updateing due to having the Set VariableSet SL_SAVE_SMART_LV = True once i turned it to false the characters started loading with the items they had once the save file had been generated allowing the player to come back to the game at a later date and loading all of their progress including the items. which is what i was aiming for =D
 
Back
Top