OpenXcom Forum

Modding => Work In Progress => Topic started by: robin on July 25, 2015, 09:50:59 pm

Title: [SOLVED][extraStrings] suddenly renaming ufopaedia category doesn't work
Post by: robin on July 25, 2015, 09:50:59 pm
I mean I have this (under "extraStrings"):

      STR_HEAVY_WEAPONS_PLATFORMS: GENERAL KNOWLEDGE

always working before, but now it displays the default name "HEAVY WEAPONS PLATFORMS".
I don't know since when it stopped working. Am I missing some change to extraStrings/ufopaedia?

SOLVED:
I had the wrong sub-type (UK instead of US) of English selected. Idiot of the day prize: won by me.
Title: Re: [extraStrings] suddenly renaming ufopaedia category doesn't work
Post by: hellrazor on July 25, 2015, 10:02:01 pm
I mean I have this (under "extraStrings"):

      STR_HEAVY_WEAPONS_PLATFORMS: GENERAL KNOWLEDGE

always working before, but now it displays the default name "HEAVY WEAPONS PLATFORMS".
I don't know since when it stopped working. Am I missing some change to extraStrings/ufopaedia?

STR_HEAVY_WEAPONS_PLATFORMS: "GENERAL KNOWLEDGE" use ""
Title: Re: [extraStrings] suddenly renaming ufopaedia category doesn't work
Post by: robin on July 25, 2015, 10:08:25 pm
STR_HEAVY_WEAPONS_PLATFORMS: "GENERAL KNOWLEDGE" use ""
Doesn't work.
(Besides I'm not using "" for any other extraString --I have quite a lot of them-- and they all work;  it would be strange if only that one needed them).
Title: Re: [extraStrings] suddenly renaming ufopaedia category doesn't work
Post by: hellrazor on July 25, 2015, 10:31:55 pm
Doesn't work.
(Besides I'm not using "" for any other extraString --I have quite a lot of them-- and they all work;  it would be strange if only that one needed them).

I would be better if you use them anyway. It prevents to some degree errors which might occur.

Code: [Select]
  - type: en-US
    strings:
      STR_XCOM_CRAFT_ARMAMENT: "BRIEFINGS & RESEARCH REPORTS & NEWS"
      STR_HEAVY_WEAPONS_PLATFORMS: "XCOM CRAFT & ARMAMENTS & HWP's"

Works like a charm here :>
Title: Re: [extraStrings] suddenly renaming ufopaedia category doesn't work
Post by: Harald_Gray on July 25, 2015, 11:45:15 pm
The problem is likely caused by something else, because I've just installed the latest nightly and your code works fine, robin.

Aren't you loading a mod that defines this *after* your own one?