MSG files "patch" system #483
Replies: 1 comment
-
For (1) load order will not change which mod gets "priority" for it's msg patches, this might break normal expectation when from DAT patches lower in load order gets priority. Instead, the priority will be determined by patch name, in the same way as hook scripts work. This might be an issue and maybe require a generic solution: Add a special function for searching files in DB by mask (how global scripts work), but that could additionally order these files by reverse order of databases they are found in.
Given mods_order:
In the engine it looks something like this: As result, we'll get files loaded in this order:
So "patch_1" gets applied last, thus having a priority above "patch_2", as you would expect. This same technique can also be applied for sfall global scripts as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
perks_patch_*.msg
. Apply them on top of normal entries, overwriting data.So for example, let's say we have dialogs/mcwhtevr.msg:
If we add dialogs/mcwhtevr.msg:
Then in runtime the game will see this:
sfall_func2("set_message_item", int listId, int itemId, string text, string audio);
:0x484D68 message_add_
to add/replaces messagesBeta Was this translation helpful? Give feedback.
All reactions