Berserker
Posts: 16657
|
|
06.01.2024 14:45 |
|
Berserker
Posts: 16657
|
Filenames matter only for cases, where multiple json files in a single mod have the same key (alphabetical priority). Mod priority from list.txt determines the primary order of loading.
Quote:Is there a way for the json key from a mod with a lower priority to override the same json key from a mod with a higher priority?
The only way to do it is when higher priority mod has default language in Lang directory itself and lower priority mode has Lang\[current language]\*.json files.
The order of file loading is:
1) Lang\[current language]\*.json from all mods by priority
2) Lang\*.json from all mods by priority
Thus if lower priority mod has Lang\cn\texts.json, its keys will beat higher priority Lang\default_texts.json
Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
|
|
07.01.2024 01:13 |
|
Archer30
Posts: 1175
|
|
07.01.2024 03:08 |
|
Berserker
Posts: 16657
|
|
07.01.2024 19:04 |
|
Archer30
Posts: 1175
|
For some reason, a syntax doesn't work as expected:
Script for adding suffix to monster names
The problem: {~%(colourStr)} isn't recognized. The colour were not applied to the names of monsters. If I replace {~%(colourStr)} with actual colour, like {~Crimson}, it could work.
Did I get something wrong? Possible to have this improved?
Latest ERA mods and scripts in development - My GitHub
|
|
08.01.2024 18:15 |
|
Berserker
Posts: 16657
|
|
08.01.2024 18:43 |
|
Archer30
Posts: 1175
|
|
08.01.2024 18:46 |
|
Berserker
Posts: 16657
|
|
08.01.2024 23:21 |
|
Archer30
Posts: 1175
|
|
09.01.2024 00:30 |
|
Archer30
Posts: 1175
|
|
09.01.2024 01:03 |
|
Berserker
Posts: 16657
|
|
09.01.2024 01:27 |
|