Population Cap and Starting Resources for Scenarios
|Reported by:||Wundersam||Owned by:||Wundersam|
Hi, I'd like to get started with 0ad development and I found myself a bug in the current svn I'm confident to fix.
The dropdowns for Population Cap and Starting Resources will be disabled if a scenario type map is selected. However, both settings won't be set to any specific value when switching from a non-scenario map to a scenario map.
Regarding the population cap, playing the scenario with an arbitrary cap is possible by selecting it before switching to a scenario type map. Regarding the starting resources, they will show up as selected before switching to a scenario type map but will always be 300 ingame. Concerning the starting resources, I would make sure that they show up with the value that will be used ingame – I will try to look up whether that's a hardcoded default of 300 or map-dependent in some way. Concerning the population cap, however, it is not clear whether they're supposed to be fixed (like starting resources) or variable like for other game types in which case the simple fix might be "enabled": () => true in gamesetup.js:606.
I'd appreciate if I could keep this bug assigned to get this fixed myself as soon as I know what the intention for the population cap was. My opinion: Let the player pick the population limit because it's performance relevant.