The biggest number I am storing is the credits for the player, I am shure they mind if it looses some accuracy ;) I would recommend to add this to the readme since it cost me hours to figure out it was Starcodes fault.
I will just do VAL = (VAL / 1000) + (VAL MOD 1000) and save (VAL/1000) and (VAL MOD 1000) in seperate variables.
Change the maximum for the last integer you read in the "Example Usage" trigger from 17500 to 232.000.000 and the maximum for the first integer you read from 17500 to 232.000.000 the final result is 466 and not 18500.
I just tried it again with a fresh downloaded version of the example map you added in the first post.
Thanks for the answer, thats strange. If I change one of the maximum values of your example map to over 231.000.000 (for saving and retieving) its already screwed up.
EDIT: There is only one of those in each player bank.
Found some more. I don't know what it is. If you specify a maximum of 1.000.000.000 (which is totally in the signed int range) you get srewed up results. I am currently testing for the highest working value ;) I need to store the experience for my heroes and therefore need a really big maximum.
The biggest number I am storing is the credits for the player, I am shure they mind if it looses some accuracy ;) I would recommend to add this to the readme since it cost me hours to figure out it was Starcodes fault.
I will just do VAL = (VAL / 1000) + (VAL MOD 1000) and save (VAL/1000) and (VAL MOD 1000) in seperate variables.
Change the maximum for the last integer you read in the "Example Usage" trigger from 17500 to 232.000.000 and the maximum for the first integer you read from 17500 to 232.000.000 the final result is 466 and not 18500.
I just tried it again with a fresh downloaded version of the example map you added in the first post.
Thanks for the answer, thats strange. If I change one of the maximum values of your example map to over 231.000.000 (for saving and retieving) its already screwed up.
EDIT: There is only one of those in each player bank.
The maximum value is somewhere between 231.000.000 and 232.000.000! Is this something that can be fixed?
Found some more. I don't know what it is. If you specify a maximum of 1.000.000.000 (which is totally in the signed int range) you get srewed up results. I am currently testing for the highest working value ;) I need to store the experience for my heroes and therefore need a really big maximum.
Found a bug:
Variable - Set Code = (<Starcode> Encrypt String((<Starcode> Compress String((<Starcode> Get Code()))), "key"))
If you nest the encrypt and the compress function, the result is screwed up.
Thanks for the library. I was working on my own, but this works just fine! Makes saving rpg character propteries in bank files sooo easy :)