Question - Folder Structure for Customized maps

Discussion about the game and its default mods.
Post Reply
petermullen
Posts: 1
Joined: Fri Dec 13, 2024 7:18 am

Question - Folder Structure for Customized maps

Post 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.

abcdefg30
Posts: 663
Joined: Mon Aug 18, 2014 6:00 pm

Re: Question - Folder Structure for Customized maps

Post 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

Post Reply