Jump to content

[V1.65 - Modding] String.xml text cannot be replaced or appended [WONT FIX]


Recommended Posts

According to the Modular Mod Documentation, Excel Spreadsheet XML files can use MODMERGEREPLACE and MODMERGEAPPEND to partially update game text.

This is used to good effect in many mods, such as Armoured Assault / Furies, Terror, and Dreadnoughts Oh My:

Armoured Assault researches.q70.jpgxenopedia battleship.q80.jpg

But when it is applied to strings.xml, an Excel Spreadsheet, the replace command does not work.

This bug prevents weapon mods to be compatible with each other because they will overwrite each other's weapon description.  It also prevents mods from supporting multiple languages, as seen in the screenshot below which attempts to update English and French text in one mod.

rocketlauncer.q70.jpg

Attached is a sample mod.

mod_bug_rocket_recoil.zip

Edited by Sheepy
Append WONT FIT to title
Link to comment
Share on other sites

Cannot be fixed, not with a reasonable amount of effort at least.

strings.xml is a file that's expected (and managed by) the engine, unlike the other XML files that are managed by the game itself. So we don't control how strings.xml gets loaded and cannot apply custom Xenonauts stuff, like the modmerge system, to it.

Theoretically of course, the whole string handling system could be rewritten, but that's too much work at this point. And yes, that's part of the reason why translation mods are expected to be separate mods.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...