HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Save/Load Help Please :(

06-17-2006, 01:59 AM#1
Modmaker2004
Hi. I need some help ive been searching for a Save/Load map that works for me. Now i have found some that work but their not the right type. I am looking for one that saves the Hero with items and Also saves the player's Gold,wood, If anyone can find one thats trigger based instead jass cause i dont know jass. Only VB and C++ lol Would be appriciated. Thank ya :)
06-17-2006, 03:05 AM#2
MercyfulJester
I made a save/load with GUI for my map, but it's kinda different from what you seek so I'd have to fix it a bit to make it suitable for you. I'll try to find time and get something done during the next 2-3 hours and post it there, ok?
06-17-2006, 03:52 AM#3
Modmaker2004
Thanks :). I havent found one that works or they just save hero instead of gold and wood :)
06-17-2006, 05:42 AM#4
MercyfulJester
Well, here is something. Saves hero type and experience (maximum 99999). Saving items can be quite tricky and loads of work, depending on how many different items you want to be saveable (No point in saving something trivial like Healing Potions). The same basic principle I used for saving experience can be used for saving gold, lumber, stats etc. If you have more than 26 different hero types, you must make the hero saving part lenght of two letters. With two letters you can (in theory, not very practical or wise) store up 676 different hero types, so that should be more than enough. If there are some parts you didn't quite understand (which is possible, since I'm not that good at explaining things and ideas to other people, especially in english) just say and I'll try to clarify. This is most definitely not a good save/load and it can be quite laborous, but it is simple and everyone should be able to follow the triggers, providing that my explanations are clear enough.

Edit: Removed map, not needed anymore
06-17-2006, 05:50 AM#5
Modmaker2004
This also saves items? Im looking at the code now i i thought you had to Assign Items as a Value then enter it into a string. So it reads the Items and converts to code? So im gussing im going have to figure out how add items on :p
06-17-2006, 05:56 AM#6
MercyfulJester
I guess I could try to add item saving to a certain degree.
06-17-2006, 06:03 AM#7
Modmaker2004
Well theirs a good Save Hero code that has that which is EZ- Save Code
http://www.wc3sear.ch/?p=Spells&ID=778
Which saves hero and item but doesnt save the players gold or wood. so you can either try in that map you have or see if you can add it in on that :) be appriciated :)

Also i was testing the map the save came out for this with me have 4k Gold and 200 Wood. Also the Hero lvl 4. ajabhj and i tried loading it after restarting map and game and wouldent load but it did load in the same map i was playing in after i saved. (Aka during the same game period in the map that isaved i directdly tried loading and it work.)

Edit: I do Appriciate anyone and especially Mercyful for taking their time and helping with this.
My Reason behind this is theirs no working map that actully saves the players gold and lumber and hero and items. Theirs either Hero and Items. Or well Hero.
So ye tagain i thank you much for helping ^^
06-17-2006, 06:16 AM#8
PipeDream
Vex's system is flexible and 99% efficient. The basic idea to any save system is you associate each state (which item type in which slot) with a number. From there it's just stacking the bits end to end, which is literally what Vex's does. So to use it, you're going to have to build tables for each piece of information you want to store, but you can store whatever you want.

I assume by trigger based you mean GUI based. Well, to do this right, you're going to have to learn the right tools for the job. JASS is pretty much C, minus a couple niceties, plus a big API, and a big set of bugs. If you know VB/C++ it'll be no problem for you.
06-17-2006, 02:39 PM#9
Modmaker2004
I think i added in their i didnt want jass though. Im not the only one working on this yes might be easy for me but no my co worker.
06-17-2006, 08:50 PM#10
Modmaker2004
Ok. Can anyone please look at this GUI
http://www.wc3sear.ch/?p=Spells&ID=778
and just add the Gold and Lumber on. I would love you greatly :(

you can use this
http://www.wc3campaigns.net/showthread.php?t=78969
as a base for adding gold and lumber trigger wise
06-17-2006, 08:58 PM#11
Captain Griffen
Please, don't link to off-site stuff and expect us to do stuff with it, especially not wc3sear.ch. It takes several minutes to load...
06-17-2006, 09:12 PM#12
Modmaker2004
Well thats only way i can figure to get it to you so oh well :/
and if it taks a while load what are you using dial up? Takes me 5 Seconds to laod it all the time. If you have a better idea then go ahead and tell me :p
06-17-2006, 09:25 PM#13
blu_da_noob
WC3Search is painfully slow. GUI is painful to work with anyway.
06-17-2006, 09:31 PM#14
Captain Griffen
Quote:
Originally Posted by Modmaker2004
Well thats only way i can figure to get it to you so oh well :/
and if it taks a while load what are you using dial up? Takes me 5 Seconds to laod it all the time. If you have a better idea then go ahead and tell me :p

DSL; wc3sear.ch is just a very slow site.

Anyway, why not just copy the GUI as text and put it in trigger tags?
06-17-2006, 09:33 PM#15
Modmaker2004
Quote:
Originally Posted by Captain Griffen
DSL; wc3sear.ch is just a very slow site.

Anyway, why not just copy the GUI as text and put it in trigger tags?

that right their is yambo jamble :p. Triggers arnt that bad i would take anything now i just need something that saves hero,items gold and lumber. Like if someone has one thats jass that does this they i can use that be great ut dont ask me edit it cause im loas in jass ;P