Author Topic: [FIXED] Vapor trails issue in OXCE 7.9  (Read 1080 times)

Offline Dioxine

  • Commander
  • *****
  • Posts: 5435
  • punk not dead
    • View Profile
    • Nocturnal Productions
[FIXED] Vapor trails issue in OXCE 7.9
« on: May 14, 2023, 01:42:48 pm »
After upgrading from 7.8 to 7.9, vapor trails started to display wrong colors in XPZ. Eg. flamethrower is now blue with a tint of yellow, instead of full yellow. What happened? How to fix it? Can it be fixed mod-side?
« Last Edit: May 16, 2023, 09:42:50 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8682
    • View Profile
Re: Vapor trails issue in OXCE 7.9
« Reply #1 on: May 14, 2023, 02:18:30 pm »
Likely a code issue, I will check.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8682
    • View Profile
Re: Vapor trails issue in OXCE 7.9
« Reply #2 on: May 14, 2023, 03:03:44 pm »
@Yankes: the change appeared in this commit: https://github.com/MeridianOXC/OpenXcom/commit/a9d8e11eb3dd0d21d1b4a55fc7a89d878a7e908a

Please review.

Offline Yankes

  • Commander
  • *****
  • Posts: 3228
    • View Profile
Re: Vapor trails issue in OXCE 7.9
« Reply #3 on: May 14, 2023, 03:08:16 pm »
Can I have screenshots of affected vapors (before and after upgrade, or at least what exactly weapon to test)?
I did try to preserve old coloring, like I make sure that vanilla vapors look same.
Probably some specific configs after change start work different than before.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8682
    • View Profile
Re: Vapor trails issue in OXCE 7.9
« Reply #4 on: May 14, 2023, 03:15:24 pm »
Weapon Flamethrower, ammo Fuel Tank.

Save attached.

Videos before and after attached.

Offline Yankes

  • Commander
  • *****
  • Posts: 3228
    • View Profile
Re: Vapor trails issue in OXCE 7.9
« Reply #5 on: May 14, 2023, 03:17:08 pm »
Thanks for that, I will check it today

Offline Yankes

  • Commander
  • *****
  • Posts: 3228
    • View Profile
Re: Vapor trails issue in OXCE 7.9
« Reply #6 on: May 15, 2023, 02:51:01 am »
In OXCE 7.9.4 it should be fixed, I did not check for value roll over and for values and opacity bigger 10 you get sometimes 0 instead max of 255.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5435
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Vapor trails issue in OXCE 7.9
« Reply #7 on: May 15, 2023, 06:30:21 pm »
Flamethrowers work properly again. Thanks. If something else is still bugged - will report.

Offline Yankes

  • Commander
  • *****
  • Posts: 3228
    • View Profile
Re: Vapor trails issue in OXCE 7.9
« Reply #8 on: May 15, 2023, 08:38:33 pm »
btw, in 7.9 you can have muli color "flame".
Code: [Select]
      - #custom colors levels
        - [ 60, 160, 0,  15 ]
        - [ 40, 30, 30,  10 ]
        - [ 130, 20, 20,   5 ]
        - [ 20, 20, 120,   2 ]
Each step can have different color and transparency:
https://www.youtube.com/watch?v=tieJPHsf55Q