HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Save/Load system anyone?

06-10-2004, 03:43 PM#1
Windrunner
Im working on a map and i think that a save/load system would fit in perfectly. But i have no idea how to make something like that, so..
does anyone knows how to do it?
06-10-2004, 04:19 PM#2
DoCa-Cola
Go look that the Tutorial Section, there's an excellent Save/Load Tut by johnfm.
06-11-2004, 02:23 AM#3
Nemesis9x
I have a save load system that can save and load integers 0-9999. It is unhackable, or very hard to hack or generate random codes unlike the one in the tutorial. I tried the one in the tutorial and i just changed a letter or number and it loaded. I might consider giving you a modified version of mine but if you need help with a save load system I can help ;)
06-11-2004, 09:29 AM#4
logik
i found this map on maps.worldofwar.net

it looks like a similar/same one used in waurgriffs COT rpgs...


i find it is pretty good...
06-11-2004, 10:18 AM#5
Milkman
OR you go into the Trigger Repostitory and look in the useful threads thread and click the Save/Load sytem by Dakan and just take it and go home and be happy for the end of your life.
06-23-2004, 11:59 AM#6
Silversuns
A good idea to make your code more protected is to make some check inside it and some requirement. I mean like you get xxxxx-xxxxx and the 3 first (XXXxx-xxxxx) is level and the 2 next (xxxXX-xxxxx-) is the hero type ... you make the 2 next (xxxxx-XXxxx) like a math operation like level+herotype = the (xxxxx-XXxxx) and if its not true the code won't load ... and you can make a lot of thing in your code like this.
You can make some protection if the hero cant use some items the code won't load, if you use a items system (max 1 weapon by hero and thing like this)
A good idea is to load each part of the code in variable so at the end of the code after all check you just have to create the units and set the level and all other thing you saved.

To prevent to cheat in single you can make a trigger to disable the load/save trigger at sarting or just make the player to be defeated when it detect only one player in the game.

It's just some idea to make the code more harder to break and prevent to cheats.


Quote:
Originally Posted by Nemesis9x
I have a save load system that can save and load integers 0-9999. It is unhackable, or very hard to hack or generate random codes unlike the one in the tutorial. I tried the one in the tutorial and i just changed a letter or number and it loaded. I might consider giving you a modified version of mine but if you need help with a save load system I can help
If you can help me or give me some good idea for good code and sample I will apreciate it, you can contact me by MSN.
06-23-2004, 01:48 PM#7
johnfn
Quote:
Originally Posted by DoCa-Cola
Go look that the Tutorial Section, there's an excellent Save/Load Tut by johnfm.
My name is johnfN, not johnfm. Just me correcting an error that a whole lot of people seem to make [/offtopic]

Additionally, you could make the trigger only save once in a game and after that either quit game or disable saving capabilities. Additionally encrypt the name into the string, so that you need the right name.

@Nemesis: That would be because you didnt read the final part in my tutorial, which makes a checksum to check to see if all the numbers were right. Unless you hacked the checksum and the final number, you cant change numbers at will.
06-24-2004, 11:18 AM#8
Windrunner
thank alot guys, i didnt even know there was a toturial about this.
i really like your idea silvesuns and nemesis9x.
ill make sure to give you guys some credit when my map is done.
and again thankx alot!
06-24-2004, 07:40 PM#9
Nemesis9x
If you didnt notice I released a saving system.
http://www.wc3campaigns.com/showthre...901#post548901
06-24-2004, 08:09 PM#10
-={tWiStÄr}=-
ONe thing i think would be cool instead of typing in 30 digits everytime you want to load you should be able name your codes. like FFORPG sparked thsi idea, but your archer code you could name archer, your seph seph etc. and it would work by the user editing or creating a game cache then when they type -load archer it checks the code that archer is equal to in the gamecache.
edit: oh yeah and i forgot to put in the recovered smilie
06-24-2004, 09:17 PM#11
orcmasta
But do game cache's carry over from game to game?


P.S. COOL SMILY!
06-25-2004, 12:06 AM#12
-={tWiStÄr}=-
Hmm.. i think theres a way to save a game cache onto the hardrave, or maybe not :o but if theres some way for the user to manually create one then just follow some format like XXX...XXX = Archer they would just have to type that in. Ill have to check out if game cache can read different types of files.
lol or it could be an advanced mapmaker only map and they have to convert the wc3 campaign caches into readible code caches
Edit: shoot it was a cool idea but you cant load a game cache off of the hardrive or from a file, unless, i guess ill go check out how they do it in the scenarios.
Edit2: hmm, they make a gamecache that i guess was created in the previous mission (but not stored on hardrive), and then they magicly pull junk out of it.
wait a second.. they restored a unit then set it to a variable then created a whole new unit! and then edited that one to thier needs then just set the variable to the new unit. I mean even the level is set in the map so you could go through a mission and never gain a level but next mission ud be lvl 5.
oh and get this. for this all to run the unit they restore has to be equal to no unit. its crazy they dont even use thier onw caches (DANG IT! WHERES ABOM CONFUSED THEY BROUGHT BACK THIS DUDE: )
06-25-2004, 03:30 AM#13
Nemesis9x
There is no way to save game caches on battle.net. It only works offline doesnt it?
06-25-2004, 03:45 AM#14
johnfn
Sadly, yes. If there was a overgame cache for multiplayer then you could just store a saved hero in there and no such trouble with a saving system.
06-25-2004, 04:58 AM#15
HexenLordX
I'm new to the whole save/load thing. I've played several maps that included this feature, and got rather familiar with using it. I'm curious about it though. There seem to be two types of save/load codes (PLEASE feel free to correct me if I'm wrong).

One: The save/load trigger saves the hero, the heroes items, and all his current attributes.

Two: The save/load trigger saves the leaderboard score, which can be loaded and reused in the future to unlock rewards among maps.

Nemesis, yours seem to be the second option from what I see, but did Windrunner specify which type of save/load trigger he was looking for?

Note: I could be wrong, and there could only be one type of save/load. So please correct me if I happen to be wrong about this one.

Btw, Nemesis9x, have you looked into creating a save/load trigger that saves/loads the hero, as the one in the Final Fantasy Open RPGs? This would be EXTREMELY helpful to me and MANY other users who are experimenting with map-making. You could probably use the code you have now, but you would have to alter it a great deal to change what the trigger actually saves/loads.