• 🏆 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!

Creating Save/Load system

Status
Not open for further replies.
Level 1
Joined
Dec 19, 2010
Messages
4
Hey, is there a fairly quick way to create a save/load system for an ORPG? I am working on an ORPG atm and I am the ultimate noob at modding, so can anyone help? P.S. you will probably be seeing a lot more of me during this project.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
A moderatly safe save system can be created in a couple of hours from scratch. Features of such a system include name protection (case insensitive), high efficency (even complex save codes could be loaded and generated within under a frame) and checksum protection.

You would need more time for order encoding or scrambling (make it look more random).

However it still is more than enough for safish saving and loading (no one is going to manually crack the codes any time soon).

The principles are simple, you convert integers (representing what you want to save) into higher base code (usually around the base 64) and store that as strings of a fixed width. Each time you do that, you hash the value and add that to a global hash (as well as the hash of the player name (lower or upper cased to make sure its case insensitive as you can change case without making new accounts). Finally encode that and your done.

Decoding is just the opposite, I advise some form of lookup table though for speedier decoding of characters.
 
Level 1
Joined
Dec 19, 2010
Messages
4
Not to completely disregard your post doctor, but i saw a crapton of stuff i dont know how to do and got scared. Sorry but I'm a huge noob.
 
Status
Not open for further replies.
Top