Loading [MathJax]/extensions/Safe.js

Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: How to Modify (actually, lengthen) Certain Smoke and Fire Duration  (Read 340 times)

0 Members and 1 Guest are viewing this topic.

Treetop64

  • member
  • Offline Offline
  • Posts: 64

Using MaxVisualDistance conf.ini mod but I also want to lengthen the duration of certain smokes and fires, specifically the destroyed vehicle and tank fires and smokes which, annoyingly, are extinguished seconds after starting.  I have the v4.12 effects files and want to continue using v4.12 effects (was using WxTech's superb effects with the "bolt-on" for v4.13 but it was breaking some parts of the game).

I've studied the relevant .mat and .eff files to no avail, and I've thus far found no info on modifying the duration of fires and smokes, only their characteristics and visible distances.

Thanks.
Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6181
Re: How to Modify (actually, lengthen) Certain Smoke and Fire Duration
« Reply #1 on: July 29, 2023, 12:07:02 AM »

The duration of most smokes and fires are set in the relevant Java classes. Indeed, the stock durations for some are 14 to 17 seconds. Depending on the version of Explosions.class, there can be present a multiplication factor to boost this somewhat.

Another thing you can try, which may override the duration in code, is to set the FinishTime in the .eff file to the duration in seconds you desire. Most effects have this set to -1, meaning it will continue to exist either as long as the duration defined in code or until the effect source is terminated.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Treetop64

  • member
  • Offline Offline
  • Posts: 64
Re: How to Modify (actually, lengthen) Certain Smoke and Fire Duration
« Reply #2 on: July 29, 2023, 01:22:41 PM »

Thanks.

Changed the FinishTime from -1 to 300.0 in the "CarDying" and "TankDying" smoke and fire .eff files, and viewed replays showing such for static and mobile cars and armor, but no change of duration was apparent.  I'm guessing that replays use current parameters for effects, instead of "remembering" old values when originally recorded, and expected fires and smokes to last five minutes, but they didn't.

BTW I went back to your bolt-on effect files and they're working fine now.  Issues may have resulted from closing and restarting IL-2 numerous times in a short period.  And this time I didn't use the train file.

The secondaries are a really nice touch.  Surprising no one else did this.
Logged

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6181
Re: How to Modify (actually, lengthen) Certain Smoke and Fire Duration
« Reply #3 on: July 29, 2023, 02:23:38 PM »

I've added so much new stuff that Explosions.class has more than doubled in length. And that doesn't include some other new effects in other classes.

When I checked stock Explosions.class from 4.09 through to the latest, the lack of notable changes surprised me. Effects are a crucial aspect of a sim where things go bang. ;)  I wish I had got into Java a decade before I did.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 20 queries.