Author Topic: Help with Strings  (Read 3940 times)

Offline kaiser_bill

  • Squaddie
  • *
  • Posts: 7
    • View Profile
Help with Strings
« on: July 03, 2013, 07:17:00 pm »
Hello all,

Was hoping someone might be able to help me out.  I'm in the middle of modding and I'm trying to set new strings for various things I've added.  But, for the life of me, I can't make them work.

I tried adding things to the language files first.  No effect (although, I can edit existing ones).

I then tried adding strings via the extraStrings function.  Again, no effect, even when I copy/pasted code from other mods to see if I could get it to work.  By way of example, I have in the Xcom1Ruleset file:

extraStrings:
  - type: English
    strings:
      STR_SHOTGUN: Shotgun
      STR_BATTLERIFLE: Battle Rifle
  - type: EnglishUk
    strings:
      STR_SHOTGUN: Shotgun
      STR_BATTLERIFLE: Battle Rifle

But the game still displayed STR_SHOTGUN or whatever.  The string names are definitely right, so that's not causing the problem.

So, is there some secret trick, or have I missed something massively obvious?

Thanks, Will.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Help with Strings
« Reply #1 on: July 04, 2013, 07:05:56 am »
the secret trick is: use the git builds.

also, don't modify the xcom1Ruleset.rul, make an addon one, that way you won't get screwed over by git updates.
« Last Edit: July 04, 2013, 07:11:31 am by Warboy1982 »

Offline kaiser_bill

  • Squaddie
  • *
  • Posts: 7
    • View Profile
Re: Help with Strings
« Reply #2 on: July 04, 2013, 10:37:02 am »
I wondered if it was that - I even read through the update log on the main page for it as far as I could to see if I could spot it in the updates!  Thanks.

Offline 54x

  • Colonel
  • ****
  • Posts: 208
    • View Profile
Re: Help with Strings
« Reply #3 on: July 04, 2013, 12:06:25 pm »
Just remember, you need to modify your options.cfg at the moment to run extra rulesets. Just add them BELOW the openXcom ruleset in the list.

Offline kaiser_bill

  • Squaddie
  • *
  • Posts: 7
    • View Profile
Re: Help with Strings
« Reply #4 on: July 04, 2013, 11:09:28 pm »
I'd spotted that from a mod install readme.  But thanks anyway - I would totally have spent hours messing with it otherwise.