https://github.com/OpenRA/OpenRA/wiki/Map-Options
And I try to set GameSpeed (from the example below). But it does not work for some reason. Do I write something wrong?
* * *
Example from documentation.
AVAILABLE OPTIONS
Code: Select all
Rules:
World:
MapOptions:
TechLevelDropdownLocked: true
TechLevel: unrestricted
# other options are infonly, low, medium, nosuper (d2k also has: high)
ShortGameCheckboxEnabled: true
ShortGameCheckboxLocked: true
GameSpeedDropdownLocked: true
GameSpeed: default
# other options are slower, fast, faster, fastest
Code: Select all
Rules: d2k|rules/campaign-rules.yaml, d2k|rules/campaign-tooltips.yaml, d2k|rules/campaign-palettes.yaml, rules.yaml
World:
MapOptions:
GameSpeed: slower
I also tried to write GameSpeed in the file rules.yaml. To add it in ready (existing) division "MapOptions". It does not work too.
Code: Select all
MapOptions:
TechLevel: medium
GameSpeeds: slower
Button "Difficulty" works.
At the same time, I change easily default value of dropdown button "Difficulty". In the file rules.yaml.
From "Easy" to "Normal". The button appears in the menu "Missions".
Dropdown button "GameSpeed" is in the same menu "Missions" too.
Correct code for "Difficulty" :
Code: Select all
ScriptLobbyDropdown@difficulty:
ID: difficulty
Label: Difficulty
Values:
easy: Easy
normal: Normal
hard: Hard
Default: normal
Actually I set default value for "Difficulty" first. For my map. It was not difficult :-)
Then, I supposed, it would be so easy for "GameSpeed" too. No... not for me.