| 05-15-2005, 12:17 AM | #1 |
I was bored. I made a "save/load" code generator engine, it is bit oriented so it can save plenty of information with few characters (but it does not do magic) , also it is safe because I added to safety methods for it, parity bits and also it gets encode for the player, so it is not likelly a player can send his password to other people to let them have better stuff. It is also flexible because instead of focusing on saving heroes, I focused it on saving an integer array based on the values of another integer array that got the sizes. Its disadvantages are that I didn't have time to add instructions like I do so often, nor to make a practical example, but that will come tomorrow or monday, I wanted to let people test if the code is as safe and also may want to know about bugs. Other disadvantages are that it is in JASS (only the engine , the samples are in semi GUI ) and that it, unfortunally has to leak strings (blame blizzard for this) PS: This was inspired by a map from Cubasis' that I looked one year ago, but it is kind of different because it is completelly bit oriented, Cubasis had bit stuff but a character would always hold a value. In this case a character may have many values encoded inside. |
