[0.16.51] MapPreset width/height is not applied before click
Posted: Fri Jul 20, 2018 10:03 am
What?
When a custom map-gen-preset has settings for width/height, and the game is restarted, then clicking new game does not apply the settings until the map-gen-preset's name is clicked.
Reproduction
Add above preset. Click "New game", click "Default", click "close", click "New game".
My preset will now be shown as selected, but height/width is not applied.
Click my preset.
Now heigh/width will be applied.
I suspect the preset is only shown as selected, but the actual selected preset is still "default". (And i can't make my preset default=true because then the engine complains that default may not have settings.)
When a custom map-gen-preset has settings for width/height, and the game is restarted, then clicking new game does not apply the settings until the map-gen-preset's name is clicked.
Code: Select all
data.raw['map-gen-presets'].default['er:tiny-debug-map'] = {
order = '00',
basic_settings = {
height = 100,
width = 100,
}
}
Add above preset. Click "New game", click "Default", click "close", click "New game".
My preset will now be shown as selected, but height/width is not applied.
Click my preset.
Now heigh/width will be applied.
I suspect the preset is only shown as selected, but the actual selected preset is still "default". (And i can't make my preset default=true because then the engine complains that default may not have settings.)