aliens

Author Topic: [SOLVED] explosionSpeed doesn't work  (Read 3466 times)

Offline shinr

  • Colonel
  • ****
  • Posts: 139
    • View Profile
[SOLVED] explosionSpeed doesn't work
« on: August 05, 2015, 03:24:44 pm »
Context: Unlike in the vanilla games where the animation speed of projectile hit splashes and explosions was tied to the Fire Speed buttons, in OpenXcom the splash/explosion animations stay the same regardless of fire speed slider's position, which annoyed me since I found the default animation speed too slow. When I asked about it, Warboy provided a solution: add explosionSpeed: X (where x is -5 to 5) to every weapon clip (or weapon itself in case Lasers) in the items.rul, and it worked.

Now, coming back from hiatus (last time I played was before the new mod system) for my favorite TFTD, I tried to do the same but it doesn't work, the game gives an error at launch: (yaml-cpp: error at line x, column y: illegal tab when looking for indentation)

Am I doing something wrong or was the explosionSpeed function removed?
« Last Edit: August 06, 2015, 07:53:57 am by shinr »

Offline yrizoud

  • Commander
  • *****
  • Posts: 1014
    • View Profile
Re: [HELP] explosionSpeed doesn't work
« Reply #1 on: August 05, 2015, 03:31:07 pm »
More likely a "typing" error in your file. Be extremely careful with TAB characters and the number of spaces.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: [HELP] explosionSpeed doesn't work
« Reply #2 on: August 05, 2015, 03:39:23 pm »
use notepad++ and set it to use 4 spaces instead of tab. set the format highlighting to yaml and look for any red lines. red lines means there is probably a tab character at the start of that line, remove it and replace it with the appropriate number of spaces.
the tab key is the yaml library's nemesis, don't let them meet.

Offline shinr

  • Colonel
  • ****
  • Posts: 139
    • View Profile
Re: [HELP] explosionSpeed doesn't work
« Reply #3 on: August 05, 2015, 03:41:27 pm »
It worked, thank you!

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: [HELP] explosionSpeed doesn't work
« Reply #4 on: August 05, 2015, 04:27:21 pm »
More likely a "typing" error in your file. Be extremely careful with TAB characters and the number of spaces.

NEVER EVER USE TABS in YAML!
Always use spaces to indent, or you are welcome into yaml-cpp error hell.

EDIT: Sorry for shouting this out loud.