Custom defined scenario map options are ignored when starting from the command line.
to reproduce
- Start the
Scenario Editor
- Tick
Reveal map
and Capture the relic
save the scenario map.
- Alternatively, you can download the attached files
demo_6471_2p.pmp
and demo_6471_2p.xml
and place them in your scenario folder.
- Everything works correctly when starting the map from the GUI game setup within the 0 A.D. app.
- BUT starting the map from the command line ignores custom defined map options, instead of a revealed map it falls back to the default map exploration settings. The same goes for the victory condition, see image below it would list
Conquest
rather than Capture the relic
.
bisect
[26584]
reproducible
For A24b, A25b and up to [26583], a scenario started with a revealed map from the command line would show the whole map but would also disregard defined VictoryConditions. Adding -autostart-victory=capture_the_relic
is possible, but this option does not exist for revealed maps.
possible solution
The approach would be to read the defined scenario settings and apply them when starting a scenario map from the command line or add an autostart command to make a revealed map.
#6521 (26/Apr/22)
It isn't broken when starting a match from the gamesetup, so you mean it doesn't work with scenarios?