Quantcast
Channel: OpenRA
Viewing all articles
Browse latest Browse all 147

General Discussion • Question - Folder Structure for Customized maps

$
0
0
In the map.yaml file, we can include additional files like rules.yaml as follows:

CODE:

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

CODE:

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:

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:

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

CODE:

Rules: rules/infantry.yaml, rules/structures.yaml
I hope that I am being clear with my 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.

Statistics: Posted by petermullen — Fri Dec 13, 2024 7:21 am — Replies 0 — Views 8



Viewing all articles
Browse latest Browse all 147

Trending Articles