skovran said:Hi! Thanks for the fun set of maps. I enjoy OCC games, and this script has made many good maps.
I have occasionally enountered a problem where the regeneration of a SmartMap map does not honor my settings if Civ has been quit since the map was first created. This comes up when I have been crushed mid-game and want to have another go at the opponents but with a different starting position.
I am using SmartMap 8.7 and no other mods.
I can reproduce the problem with the following steps:
1. Start Civ and launch a Custom Game using the default SmartMap settings. ( The map will have mountains and ocean and other interesting features. )
2. Quit Civ.
3. Launch Civ by clicking on the AutoSave_Initial_BC-4000.Civ4SavedGame file
4. Regenerate Map.
The resultant map will have no hills or peaks, no oceans or lakes, and no x or y wrap. It will have a few forests and jungles, and some rivers that tend to travel directly north-south. I think these features are the result of SmartMap relying on default map choices that never get initialized due to the different way the Civ engine handles the Renegerate Map action.
I am not sure how this should work. Even if the script did read the smartmap84.cfg file to get the user settings, those would be the setting of the last map created, not necessarily the map of the save game that was loaded. Is it possible to annotate the map portion of the save game with the parameters of the map script? Does a saved game know which map script created it, or does Civ rely on the settings in CivilizationIV.ini?
Thanks again for the great script.
Thanks for reporting this. The cause is actually a script error that occurs during map regen when init has never been done at all. The underlying problem is a long standing problem with map regen (a civIV bug / flawed design): it really ought to re-init during map regen, the CvMapScriptInterface suggests that it should.
In any case, I have a work around that fixes this so it will work like you'd expect, so this will be fixed in the next version. In the meantime .... don't do this.

Follow up: and luckily enough it works like you would hope: a 3 continent save game regenerates a 3 continent game, even if your last map gen was a 6 continent game.