Author Topic: Changing messages like monthly reports  (Read 247 times)

Offline Bonegnasher

  • Sergeant
  • **
  • Posts: 12
    • View Profile
Changing messages like monthly reports
« on: April 26, 2024, 12:25:08 pm »
Hello, how do I moddify monthly reports and the loss message before the bad end (STR_YOU_HAVE_FAILED)? I just want to change their texts to make sense for a mod like it's done in Piratez and Wh40k.

Offline CrazedHarpooner

  • Sergeant
  • **
  • Posts: 34
    • View Profile
Re: Changing messages like monthly reports
« Reply #1 on: April 26, 2024, 01:48:34 pm »
You can use either the 'extraStrings' ruleset to change the corresponding strings in each language to whatever you want
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Extra_Strings

OR you could use custom language files placed in the Language folder of your mod to apply the same changes to the same strings
https://www.ufopaedia.org/index.php?title=Translations_(OpenXcom)

Offline Bonegnasher

  • Sergeant
  • **
  • Posts: 12
    • View Profile
Re: Changing messages like monthly reports
« Reply #2 on: April 26, 2024, 09:02:10 pm »
You can use either the 'extraStrings' ruleset to change the corresponding strings in each language to whatever you want
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Extra_Strings

OR you could use custom language files placed in the Language folder of your mod to apply the same changes to the same strings
https://www.ufopaedia.org/index.php?title=Translations_(OpenXcom)
Thanks. Apparently the problem lies with the mod I've been trying to modify, since none of these methods work for it, but work if I try them with other mods or if I make my own. Interesting.
« Last Edit: April 26, 2024, 09:08:52 pm by Bonegnasher »

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1932
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Changing messages like monthly reports
« Reply #3 on: April 30, 2024, 11:05:15 pm »
If extraStrings or the language file work for you on other mods but not the one you want, the issue is likely related to load order.

OXCE can load mods from .zip files and will preferentially load a .zip over an extracted mod folder placed in the same directory. If you're editing a mod directly that is distributed as a .zip file, you need to remove the .zip from your mods folder so your extractef, edited version can load. (Note editing a mod directly like this is not recommended since you'll need to re-apply the edits every time the mod updates)

If you're making a mod of a mod (the recommended method), you should make sure your mod is loaded after the other - use the up/down arrows in the in-game mods menu to put yoyrs lower on the list.

Offline Bonegnasher

  • Sergeant
  • **
  • Posts: 12
    • View Profile
Re: Changing messages like monthly reports
« Reply #4 on: May 04, 2024, 09:09:39 am »
If extraStrings or the language file work for you on other mods but not the one you want, the issue is likely related to load order.

OXCE can load mods from .zip files and will preferentially load a .zip over an extracted mod folder placed in the same directory. If you're editing a mod directly that is distributed as a .zip file, you need to remove the .zip from your mods folder so your extractef, edited version can load. (Note editing a mod directly like this is not recommended since you'll need to re-apply the edits every time the mod updates)

If you're making a mod of a mod (the recommended method), you should make sure your mod is loaded after the other - use the up/down arrows in the in-game mods menu to put yoyrs lower on the list.
Thank you, that was it. I still had the .zip file of the mod in my mods directory so removing it from there fixed the issue.