Author Topic: <solved> having trouble getting new language files to work  (Read 3059 times)

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
<solved> having trouble getting new language files to work
« on: December 10, 2014, 11:38:08 pm »
I made a mod to add new types of bombs for the small launcher. It all works perfectly except that their names show as the STR_ names. I copied the method of adding language data from the functional "Retaliator" interceptor mod. Here's my whole small bomb mod, with the language at the bottom:

items:
  - type: STR_SMALL_LAUNCHER
    compatibleAmmo:
      - STR_STUN_HE_BOMB
      - STR_STUN_SMOKE_BOMB
      - STR_STUN_FIRE_BOMB
    accuracySnap: 45
    accuracyAimed: 105
    tuSnap: 25
    tuAimed: 60
  - type: STR_STUN_BOMB
    weight: 2
    power: 80
  - type: STR_STUN_HE_BOMB
    requires:
      - STR_STUN_BOMB
    size: 0.1
    costSell: 7600
    weight: 2
    bigSprite: 38
    floorSprite: 37
    hitSound: 0
    hitAnimation: 0
    power: 80
    damageType: 3
    clipSize: 1
    battleType: 2
  - type: STR_STUN_SMOKE_BOMB
    requires:
      - STR_STUN_BOMB
    size: 0.1
    costSell: 9500
    weight: 2
    bigSprite: 38
    floorSprite: 37
    hitSound: 0
    hitAnimation: 0
    power: 80
    damageType: 9
    clipSize: 1
    battleType: 2
  - type: STR_STUN_FIRE_BOMB
    requires:
      - STR_STUN_BOMB
    size: 0.1
    costSell: 11400
    weight: 2
    bigSprite: 38
    floorSprite: 37
    hitSound: 0
    hitAnimation: 0
    power: 80
    damageType: 2
    clipSize: 1
    battleType: 2
manufacture:
  - name: STR_STUN_BOMB
    space: 1
  - name: STR_STUN_HE_BOMB
    category: STR_AMMUNITION
    requires:
      - STR_STUN_BOMB
    space: 1
    time: 160
    cost: 3500
    requiredItems:
      STR_ELERIUM_115: 1
  - name: STR_STUN_SMOKE_BOMB
    category: STR_AMMUNITION
    requires:
      - STR_STUN_BOMB
    space: 1
    time: 170
    cost: 4375
    requiredItems:
      STR_ELERIUM_115: 1
  - name: STR_STUN_FIRE_BOMB
    category: STR_AMMUNITION
    requires:
      - STR_STUN_BOMB
    space: 1
    time: 180
    cost: 5250
    requiredItems:
      STR_ELERIUM_115: 1
extraStrings:
  - type: en-GB
    strings:
      STR_STUN_HE_BOMB: "Explosive Bomb"
      STR_STUN_SMOKE_BOMB: "Smoke Bomb"
      STR_STUN_FIRE_BOMB: "Incendiary Bomb"
extraStrings:
  - type: en-US
    strings:
      STR_STUN_HE_BOMB: "Explosive Bomb"
      STR_STUN_SMOKE_BOMB: "Smoke Bomb"
      STR_STUN_FIRE_BOMB: "Incendiary Bomb"
extraStrings:
  - type: es-419
    strings:
      STR_STUN_HE_BOMB: "Bomba detonante"
      STR_STUN_SMOKE_BOMB: "Bomba de humo"
      STR_STUN_FIRE_BOMB: "Bomba incendiaria"
extraStrings:
  - type: es-ES
    strings:
      STR_STUN_HE_BOMB: "Bomba detonante"
      STR_STUN_SMOKE_BOMB: "Bomba de humo"
      STR_STUN_FIRE_BOMB: "Bomba incendiaria"
extraStrings:
  - type: fr
    strings:
      STR_STUN_HE_BOMB: "Bombe explosive"
      STR_STUN_SMOKE_BOMB: "Bombe fumigène"
      STR_STUN_FIRE_BOMB: "Bombe incendiaire"
extraStrings:
  - type: ja
    strings:
      STR_STUN_HE_BOMB: "爆薬爆弾"
      STR_STUN_SMOKE_BOMB: "煙爆弾"
      STR_STUN_FIRE_BOMB: "焼夷弾爆弾"









Here's the language bit from Retaliator:

extraStrings:
  - type: en-GB
    strings:
      STR_IMPROVED_INTERCEPTOR: "Improved Interceptor"
      STR_RETALIATOR_UFOPEDIA: "VARIANT OF THE INTERCEPTOR REFITTED WITH AN ALIEN ALLOY AIRFRAME FOR INCREASED SURVIVABILITY AND SOPHISTICATED AVIONICS FOR OPTIMAL INTERDICTIONS."
      STR_RETALIATOR: "RETALIATOR"
  - type: en-US
    strings:
      STR_IMPROVED_INTERCEPTOR: "Improved Interceptor"
      STR_RETALIATOR_UFOPEDIA: "VARIANT OF THE INTERCEPTOR REFITTED WITH AN ALIEN ALLOY AIRFRAME FOR INCREASED SURVIVABILITY AND SOPHISTICATED AVIONICS FOR OPTIMAL INTERDICTIONS."
      STR_RETALIATOR: "RETALIATOR"
  - type: es
    strings:
      STR_IMPROVED_INTERCEPTOR: "Interceptor mejorado"
      STR_RETALIATOR_UFOPEDIA: "VARIANTE DEL INTERCEPTOR DOTADA DE UN FUSELAJE DE ALEACIÓN ALIENÍGENA PARA MAYOR PROTECCIÓN Y AVIÓNICA SOFISTICADA PARA ÓPTIMAS INTERDICCIONES."
      STR_RETALIATOR: "RETALIATOR"
  - type: es-419
    strings:
      STR_IMPROVED_INTERCEPTOR: "Interceptor mejorado"
      STR_RETALIATOR_UFOPEDIA: "Variante del Interceptor dotada de un fuselaje de aleación alienígena para mayor protección y aviónica sofisticada para óptimas interdicciones."
      STR_RETALIATOR: "RETALIATOR"
« Last Edit: December 11, 2014, 04:46:21 am by The Reaver of Darkness »

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: having trouble getting new language files to work
« Reply #1 on: December 10, 2014, 11:51:09 pm »
is the problem with Spanish? or all the languages?

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: having trouble getting new language files to work
« Reply #2 on: December 10, 2014, 11:56:05 pm »
go here
https://falkooxc2.pythonanywhere.com/rulcheck
open rulefile
copypaste your file there ->save-close
test
this time: "property defined multiple times: ['extraStrings']"

instead of
Code: [Select]
extraStrings:
  - type: en-GB
    strings:
      STR_STUN_HE_BOMB: "Explosive Bomb"
..
extraStrings:
  - type: en-US
    strings:
      STR_STUN_HE_BOMB: "Explosive Bomb"
..
extraStrings:
  - type: es-419
    strings:
      STR_STUN_HE_BOMB: "Bomba detonante"
..
extraStrings:
  - type: es-ES
    strings:
      STR_STUN_HE_BOMB: "Bomba detonante"
..
extraStrings:
  - type: fr
    strings:
      STR_STUN_HE_BOMB: "Bombe explosive"
..
extraStrings:
  - type: ja
    strings:
      STR_STUN_HE_BOMB: "爆薬爆弾"
..
use
Code: [Select]
extraStrings:
  - type: en-GB
    strings:
      STR_STUN_HE_BOMB: "Explosive Bomb"
..
  - type: en-US
    strings:
      STR_STUN_HE_BOMB: "Explosive Bomb"
..
  - type: es-419
    strings:
      STR_STUN_HE_BOMB: "Bomba detonante"
..
  - type: es-ES
    strings:
      STR_STUN_HE_BOMB: "Bomba detonante"
..
  - type: fr
    strings:
      STR_STUN_HE_BOMB: "Bombe explosive"
..
  - type: ja
    strings:
      STR_STUN_HE_BOMB: "爆薬爆弾"
..

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: having trouble getting new language files to work
« Reply #3 on: December 11, 2014, 04:46:03 am »
this time: "property defined multiple times: ['extraStrings']"

That was it, thanks!

I can't figure out how to use that tool you linked. It doesn't appear to have a copy+paste spot.