Possible to generate a random map that crashes on loading the savegame
For some specific random map templates, when ERA generates random maps with them, it's possible that the games starting with these generated maps cannot be loaded (crash on loading save game).
Download:
Template + generated map
To reproduce:
1) Start a game with the given map (in the archive above), and save it, load the save game
2) Generate a new map with the given template start a game with it, save it, and load. If it didn't lead to a crashing problem, try again 2). Not all the maps generated from this template are problematic.
My guess: Some generated maps have map objects exceeding the game limit, for example, having over 128 mines on the map.
Ideal behaviour:
1) ERA should not generate invalid maps for itself, even when some parameters in templates are not ideal.
2) I don't see why a map can be started new but not from loading. Maybe this can be improved.