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

Requesting help part of a save/load system

Status
Not open for further replies.
Level 8
Joined
Mar 20, 2007
Messages
224
Alright, basically, I've been having trouble creating a save/load system for my map, so I guess it would probably be easier to get someone to help me create this (in JASS).

Basically, the data I need to convert to a save code is:

- unitcode (ie. h000, hfoo, etc.)
- position (max possible number 5000050000, I'm combining the X and Y coordinate into one number to save characters)
- tint (max possible number 50505050)
- color, size, and angle (max possible number 13360999)

I'm planning to use a character map consisting of 69 characters, basically, all the letters of the alphabet, case sensitive, all the numbers, and a few symbols.

The problem I am having, is actually converting my position number to the save code format, and converting back. Does anyone want to give a nice example as to how to achieve this? (Just convert one of my variables to save code and back, and I'll use your example to do the rest)

Credit and rep given

ty
- Narks
 
- unitcode (ie. h000, hfoo, etc.)
- position (max possible number 5000050000, I'm combining the X and Y coordinate into one number to save characters)
- tint (max possible number 50505050)
- color, size, and angle (max possible number 13360999)
Let me count this
at minimum:

unitcode + location + tint + color
4 + 10 + 8 + 8 digits = 30 digits :S???

But that would even give a
h00050000500005050505013360999
what is really funny. Why do you need to save all that stuff?
 
Level 8
Joined
Mar 20, 2007
Messages
224
join-the-darkside.jpg
 
Status
Not open for further replies.
Top