OpenXcom Forum

OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Support => Topic started by: The Martian on December 14, 2021, 06:37:53 pm

Title: [Solved] Weapon vapor trails are not working?
Post by: The Martian on December 14, 2021, 06:37:53 pm
I just noticed that weapons that had previously been leaving vapor trails are no longer doing so in TFTD.

(https://openxcom.org/forum/index.php?action=dlattach;topic=10278.0;attach=55396)

I'm sure this was working earlier, but I think I've updated OXCE since then. Unfortunately I only just noticed the lack of vapor trails so I can't pin down when exactly it stopped working.

I'm running the linux version of OXCE V7.1.4 (v2021-10-24)


Here is some example code that isn't producing vapor:
Code: [Select]
items:
# [=] Debug Weapon for testing vapor trails [=]
  - type: STR_DEBUG_TEST_WEAPON
    size: 0.1
    costSell: 20000
    weight: 7
    bigSprite: 1
    floorSprite: 1
    handSprite: 0
    bulletSprite: 5
    fireSound: 1
    hitSound: 31
    hitAnimation: 46
    power: 1
    damageType: 4
    accuracyAuto: 28
    accuracyAimed: 68
    tuAuto: 1
    tuAimed: 1
    clipSize: -1
    battleType: 1
    invWidth: 1
    invHeight: 3
    vaporColor: 0
    vaporDensity: 50 # At density 50 'something' should be visible
    vaporProbability: 100 # 100% of the time a trail should be created.


Is this happening to anyone else or is it just on my end?

For convenience I've attached an example mod to this post:
Test Vapor Mod.zip  (https://openxcom.org/forum/index.php?action=dlattach;topic=10278.0;attach=55395)
Title: Re: Weapon vapor trails are not working?
Post by: The Martian on December 14, 2021, 06:54:20 pm
I've done a bit more testing and confirmed that vapor trails work in X-Com: UFO Defense, only X-COM: Terror From the Deep seems to be effected.
(https://openxcom.org/forum/index.php?action=dlattach;topic=10278.0;attach=55398) (https://openxcom.org/forum/index.php?action=dlattach;topic=10278.0;attach=55400)
Title: Re: Weapon vapor trails are not working?
Post by: Meridian on December 15, 2021, 12:23:51 am
The vaporColor indices are mod-specific since OXCE 7.1, not global anymore.

If you want to use a vapor color from a parent mod, you need to specify it explicitly, for example:

Code: [Select]
  vaporColor: { mod: xcom2, index: 0 }

instead of

Code: [Select]
  vaporColor: 0
Title: Re: [SOLVED] Weapon vapor trails are not working?
Post by: The Martian on December 21, 2021, 10:43:07 am
Thank you.  (https://openxcom.org/forum/Themes/InsidiousV1-k/images/post/thumbup.gif)