Author Topic: [Solved] Weapon vapor trails are not working?  (Read 1905 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
[Solved] Weapon vapor trails are not working?
« 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.



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
« Last Edit: February 12, 2023, 12:07:36 pm by Meridian »

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Weapon vapor trails are not working?
« Reply #1 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.
« Last Edit: December 14, 2021, 07:05:39 pm by The Martian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9090
    • View Profile
Re: Weapon vapor trails are not working?
« Reply #2 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

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: [SOLVED] Weapon vapor trails are not working?
« Reply #3 on: December 21, 2021, 10:43:07 am »
Thank you.