OpenXcom Forum

Modding => Work In Progress => Topic started by: shinr on August 05, 2015, 03:24:44 pm

Title: [SOLVED] explosionSpeed doesn't work
Post by: shinr 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?
Title: Re: [HELP] explosionSpeed doesn't work
Post by: yrizoud 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.
Title: Re: [HELP] explosionSpeed doesn't work
Post by: Warboy1982 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.
Title: Re: [HELP] explosionSpeed doesn't work
Post by: shinr on August 05, 2015, 03:41:27 pm
It worked, thank you!
Title: Re: [HELP] explosionSpeed doesn't work
Post by: hellrazor 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.