Quote (Inferior)
but can you tell me how it works in Shoppingmaul?? There they generate a code which can be entered in next game to load a value
That's how they do it, they encode any value into a string and shows them to a player.
In a new game, the player have to type e.g. '-load xxxx', the map will get any saved values by decodind the string.
So they don't use the gamecache, which would not require any code, cause the values could be initialized automatically ... if it would work in multiplayer. Let's say, we got Hero A on level 9, so we give the savesystem the values Unit type of Unit A and Level of unit A, the system will create a string (most likely using player name too) using the given arguments.
You start a new game and load your previous stored hero, the system will use the encoded string provided by you and extract the Unit Type and Unit Level out of that string.
However the final unit is not Unit A, it's Unit B.
The unit gets completely new created, not saved.