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