Page 1 of 1

Question - Folder Structure for Customized maps

Posted: Fri Dec 13, 2024 7:21 am
by petermullen
In the map.yaml file, we can include additional files like rules.yaml as follows:

Code: Select all

Rules: rules.yaml
In some of the included maps, you will see a format such as:

Code: Select all

Rules: ra|rules/campaign-rules.yaml, rules.yaml
With this, it appears as though it is calling for a default rule set that is included within the ra directory. This works fine it seems.

So, with it being clarified that I already understand this information, how could I go about having sub directories included within my maps folder?

For example;

appdata\roaming\openra\maps\ra\release**\MAPFOLDER\rules

If I had a subfolder called rules, and within that I had yaml files for infantry and structures, I'd like to be able to call those 2 files without moving them into the parent folder. I would imagine that the following would work, but it does not appear to.

Code: Select all

Rules: rules/infantry.yaml, rules/structures.yaml
To take that to the next level, what I would ideally like to do nesting by creating a rules.yaml file to include in the map.yaml file, so that it would look as follows:

map.yaml

Code: Select all

Rules: rules.yaml
To which the rules.yaml would include:

Code: Select all

Rules: rules/infantry.yaml, rules/structures.yaml
I hope that I am being clear with mgeometry dash litey intent, I'd really just like to keep this all as organized as possible. This would allow for me to easily copy and move rulesets between maps, and only having me add a few lines to the map.yaml file.

Re: Question - Folder Structure for Customized maps

Posted: Tue Dec 17, 2024 10:47 pm
by abcdefg30
Hi, unfortunately subfolders in map directories are not officially supported, so I wouldn't be surprised if it does not work. See also https://github.com/OpenRA/OpenRA/issues/7861