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

CodeGen Item save

Status
Not open for further replies.
Level 11
Joined
Jul 9, 2009
Messages
927
I am currently using CodeGen 0.06 of HappyTrigger

and I have 45 items, I all listed them in the save Init
but when I tried to load it some of the items were not loaded
is there a limit for the items getting loaded ??

thank you :)

  • SaveLoad Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- Some configurables --------
      • Set SaveLoad_Alphabet = aA5bB0cCdDeE9fFgGhH8iIj1JkK4lLmMn7NoOp3PqQrRsStTu2UvV6wWxXyYzZ
      • Set SaveLoad_CheckName = True
      • Set SaveLoad_HyphenSpace = 4
      • Set SaveLoad_Lower = |c002a4580
      • Set SaveLoad_Number = |cffffcc00
      • Set SaveLoad_Upper = |cff1142aa
      • -------- Store all the items you want to be able to be saved below. --------
      • Set SaveLoad_Item[1] = Small Ruby
      • Set SaveLoad_Item[2] = Rune of Fire
      • Set SaveLoad_Item[3] = Rune Harmony
      • Set SaveLoad_Item[4] = Blacksmith's Permission
      • Set SaveLoad_Item[5] = Ordinary Sword
      • Set SaveLoad_Item[6] = Ordinary Sword +1
      • Set SaveLoad_Item[7] = Ordinary Sword +2
      • Set SaveLoad_Item[8] = Ordinary Sword +3
      • Set SaveLoad_Item[9] = Fire Sword
      • Set SaveLoad_Item[10] = Fire Sword +1
      • Set SaveLoad_Item[11] = Fire Sword +2
      • Set SaveLoad_Item[12] = Fire Sword +3
      • Set SaveLoad_Item[13] = Thunder Sword
      • Set SaveLoad_Item[14] = Thunder Sword +1
      • Set SaveLoad_Item[15] = Thunder Sword +2
      • Set SaveLoad_Item[16] = Thunder Sword +3
      • Set SaveLoad_Item[17] = Ordinary Glaive
      • Set SaveLoad_Item[18] = Ordinary Glaive +1
      • Set SaveLoad_Item[19] = Ordinary Glaive +2
      • Set SaveLoad_Item[20] = Ordinary Glaive +3
      • Set SaveLoad_Item[21] = Fire Glaive
      • Set SaveLoad_Item[22] = Fire Glaive +1
      • Set SaveLoad_Item[23] = Fire Glaive +2
      • Set SaveLoad_Item[24] = Fire Glaive +3
      • Set SaveLoad_Item[25] = Thunder Glaive
      • Set SaveLoad_Item[26] = Thunder Glaive +1
      • Set SaveLoad_Item[27] = Thunder Glaive +2
      • Set SaveLoad_Item[28] = Thunder Glaive +3
      • Set SaveLoad_Item[29] = Ordinary Sword +4
      • Set SaveLoad_Item[30] = Fire Sword +4
      • Set SaveLoad_Item[31] = Thunder Sword +4
      • Set SaveLoad_Item[32] = Ordinary Glaive +4
      • Set SaveLoad_Item[33] = Fire Glaive +4
      • Set SaveLoad_Item[34] = Thunder Glaive +4
      • Set SaveLoad_Item[35] = Rank F Heart
      • Set SaveLoad_Item[36] = Satyr Soul
      • Set SaveLoad_Item[37] = Fire Sword +5
      • Set SaveLoad_Item[38] = Ordinary Sword +5
      • Set SaveLoad_Item[39] = Thunder Sword +5
      • Set SaveLoad_Item[40] = Ordinary Glaive +5
      • Set SaveLoad_Item[41] = Fire Glaive +5
      • Set SaveLoad_Item[42] = Thunder Glaive +5
      • Set SaveLoad_Item[43] = Murloc Eye
      • Set SaveLoad_Item[44] = Spider Web
      • Set SaveLoad_Item[45] = Claws of Attack +15
      • Set SaveLoad_ItemCount = 45
      • -------- Store all the heroes you want to be able to be saved below. --------
      • Set SaveLoad_Hero[1] = Samurai
      • Set SaveLoad_Hero[2] = Dual Blade Wielder
      • Set SaveLoad_HeroCount = 2
      • -------- Don't modify below this line. --------
      • Set SaveLoad_Base = (Length of SaveLoad_Alphabet)
      • Set SaveLoad_Char = <Empty String>
      • Set Load[0] = 0
      • Set LoadCount = 0
      • Custom script: call CodeGen_Init()
 
Level 11
Joined
Jul 9, 2009
Messages
927
I dont know what that is for but it says dont modify that line xD

Apparently it started working when I posted this problem on the hive (Damn Coincidences :mad: )

Ill try to say what happens if I encounter it again
 
Level 11
Joined
Jul 9, 2009
Messages
927
I know now what the problem is

the load/save system cant save the item with charges

is there anyway to fix this ??
 
the load/save system cant save the item with charges

is there anyway to fix this ??


You can either make all items save an item charge of maximum charge, which could increase the size of your code significantly, or you can move to Encoder, which is the only save/load system able to save things like item charges.


All save/load systems use a list structure except for Encoder, which uses a tree. The tree allows one to have conditional save/load, like item charges for specific items.
 
Last edited:
Level 11
Joined
Jul 9, 2009
Messages
927
thanks ill try to use it but im not pretty quite familiar with vjass

Ill try to use the encoder if i have time reviewing vjass

+rep for suggestion :)
 
Status
Not open for further replies.
Top