[Solved] OpenRA - Map Modding - Mini-Yaml - Syntax error of internal parser flaw/bug?

Discussion about the game and its default mods.
Post Reply
Ronald
Posts: 192
Joined: Fri Aug 30, 2019 9:05 pm

[Solved] OpenRA - Map Modding - Mini-Yaml - Syntax error of internal parser flaw/bug?

Post by Ronald »

These are the steps I've taken for get to create / discover this error:
1_map_download.jpg
1_map_download.jpg (297.14 KiB) Viewed 1446 times
1. Downloaded my 1st (edited) map from the OpenRA resources website:
-https://resource.openra.net/maps/32701/

NOTE....: The map successfully passed the Lint Check status on release-2019314
QUESTION: How can I validate this map for the latest OpenRA software release??(20200503)

2. I placed the download map inside the following directory:
C:\Program Files\OpenRA\mods\ra\maps

3. I opened this map's map.yaml file in NotePad++ (on Win10 in Admin mode):
2_github_map-options_page.jpg
2_github_map-options_page.jpg (235.4 KiB) Viewed 1446 times
4. I only added the most simple example from this page:
-https://github.com/OpenRA/OpenRA/wiki/Map-Options

5. I saved the map.yaml file again on its current location.
6. I started OpenRA,[Singleplayer],[Skirmish],[Change Map]
7. I select the map via the OpenRa menu's
This forces OpenRA to parse all map.* files including the map.yaml file.
Last edited by Ronald on Sat Sep 05, 2020 6:42 am, edited 1 time in total.

Ronald
Posts: 192
Joined: Fri Aug 30, 2019 9:05 pm

Re: OpenRA - Map Modding - Mini-Yaml - Syntax error of internal parser flaw/bug?

Post by Ronald »

8. This is how the OpenRA Map options looked after loading the map
1_map-options_default.jpg
1_map-options_default.jpg (194.38 KiB) Viewed 1445 times
A - Original Map.yaml without any extra rules added to it.
.
.
2_map_options_true.jpg
2_map_options_true.jpg (271.67 KiB) Viewed 1445 times
B - Modified Map.yaml, with 1 extra rule at the end:
Rules:
-Player:
--Shroud:
---ExploredMapCheckboxEnabled: false
NOTE: the 2nd chat-window-line about OpenRA recognizing the custom rules!
.
.
3_map_options_false.jpg
3_map_options_false.jpg (272.67 KiB) Viewed 1445 times
C - Modified Map.yaml, with 1 extra rule at the end
Rules:
-Player:
--Shroud:
---ExploredMapCheckboxEnabled: true
NOTE: the 2nd chat-window-line about OpenRA recognizing the custom rules!
.
.
QUESTION:
What goes wrong here and why?
- Is the given Github example flawed ?
- Have I made a typo / mini-yaml syntax_error ?
- Does OpenRA fail to pass the map's map.yaml file correctly?
- Option 4,5,n?

SirCake
Posts: 387
Joined: Thu Feb 04, 2016 5:40 pm

Re: OpenRA - Map Modding - Mini-Yaml - Syntax error of internal parser flaw/bug?

Post by SirCake »

As I said, you also need to lock the checkbox. Just setting the value won't do anything.

Ronald
Posts: 192
Joined: Fri Aug 30, 2019 9:05 pm

Re: OpenRA - Map Modding - Mini-Yaml - Syntax error of internal parser flaw/bug?

Post by Ronald »

SirCake wrote:
Thu Aug 27, 2020 2:47 pm
As I said, you also need to lock the checkbox. Just setting the value won't do anything.
I've already tried out various combinations, which you can see documented over here:
- viewtopic.php?f=83&t=21256

So..how exactly can one "lock the checkbox"?

SirCake
Posts: 387
Joined: Thu Feb 04, 2016 5:40 pm

Re: OpenRA - Map Modding - Mini-Yaml - Syntax error of internal parser flaw/bug?

Post by SirCake »

So, a 2 minute research on docs.openra.net later (https://docs.openra.net/en/latest/relea ... ts/#shroud)
you need to use this ExploredMapCheckboxLocked.
You already did this correctly in the other thread!

Ronald
Posts: 192
Joined: Fri Aug 30, 2019 9:05 pm

Re: OpenRA - Map Modding - Mini-Yaml - Syntax error of internal parser flaw/bug?

Post by Ronald »

SirCake wrote:
Mon Aug 31, 2020 12:37 pm
So, a 2 minute research on docs.openra.net later (https://docs.openra.net/en/latest/relea ... ts/#shroud), you need to use this ExploredMapCheckboxLocked.
Thanks for the next way-pointer SirCake. I did not learn/know (yet) that this extensive overview also contains Map-related settings.
So far I was only working with the "Map-related mini-yaml" information - i was able to find - from these 2 pages below:
- https://github.com/OpenRA/OpenRA/wiki/Map-Options
- https://github.com/OpenRA/OpenRA/wiki/C ... ng-At-Once

Ronald
Posts: 192
Joined: Fri Aug 30, 2019 9:05 pm

Re: OpenRA - Map Modding - Mini-Yaml - Syntax error of internal parser flaw/bug?

Post by Ronald »

@CH4Code - Thanks to your rewrite / clarification on the OpenRA Wiki - Map option page:
-https://github.com/OpenRA/OpenRA/wiki/Map-Options

Post Reply