Universal Property Enhancer Help

Property List Duplication

Feature

Allows you to make a single .prop get loaded in multiple places. A common use case is for EditorKeys, where you commonly need to maintain the same exact file in multiple locations, with this you can maintain one file and duplicate it to the other places.

Usage

All property duplications data is defined inside the prop_duplications folder, so you must first create that folder in your mod.

Create a .prop file with a unique name in the prop_duplications folder.

In that .prop file, add a string8s array, with each entry duplicating a .prop file.

string8s duplicateList end

To duplicate a property, add an entry to that list, each entry has the following format:

"target_keyname source_keyname"

There should be a key property in the same file, with the same name that you used for target_keyname, which tells UPE where to duplicate this .prop file to.

There should also be a key property in the same file, with the same name that you used for source_keyname, which tells UPE what .prop file is being duplicated.

As an example, your file might look something like this:

string8s duplicateList "ca_editorkeys editor_keys" "ce_editorkeys editor_keys" "sa_editorkeys editor_keys" "ta_editorkeys editor_keys" end key ca_editorkeys ca_EditorKeys~!mycustom_editorkeys key ce_editorkeys ce_EditorKeys~!mycustom_editorkeys key sa_editorkeys sa_EditorKeys~!mycustom_editorkeys key ta_editorkeys ta_EditorKeys~!mycustom_editorkeys key editor_keys mycustom_editorkeys!editorkeys
Last modified: 05 September 2024