- Joined
- May 17, 2007
- Messages
- 106
I currently have problem with Save Load code with encode xxx value (Let's say, EXP Value) but without using Power 2. Because its value become too lengthy.
(80 Items in game = 2^80 = 1208925819614629174706176, which is too much for 72^5 that I used to decode.)
As the current system encode the value of items to code. by using 1+2+3+4+5+6+7+8+9+10+11...+n
Which seems to work well at first until player unlocked more than one item at a time.
Unlocked #3 and #7 (3+7 = 10) instead of #3 and #7 it goes to items #10.
What I have tried and fail. is to save number of held items. From formula above to including number of item saved.
#3 and 7# is 2 item saved (3+7) when load the system will look for (x+y = 10) which goes #9 and #1.
And a lot of formula with number of item saved included.
So is there any alternative formula for 2^x for Save Load stuff that able to compress to 5 letters, 72 charmap. supported up to #100 items? I just don't feel wanted to redesign save load for now.
If you confused, you can ask me for a test code for my map then try to unlock stuff then load.
(80 Items in game = 2^80 = 1208925819614629174706176, which is too much for 72^5 that I used to decode.)
As the current system encode the value of items to code. by using 1+2+3+4+5+6+7+8+9+10+11...+n
Which seems to work well at first until player unlocked more than one item at a time.
Unlocked #3 and #7 (3+7 = 10) instead of #3 and #7 it goes to items #10.
What I have tried and fail. is to save number of held items. From formula above to including number of item saved.
#3 and 7# is 2 item saved (3+7) when load the system will look for (x+y = 10) which goes #9 and #1.
And a lot of formula with number of item saved included.
So is there any alternative formula for 2^x for Save Load stuff that able to compress to 5 letters, 72 charmap. supported up to #100 items? I just don't feel wanted to redesign save load for now.
If you confused, you can ask me for a test code for my map then try to unlock stuff then load.