Special Aircraft Service

Please login or register.

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

Author Topic: Increased sink time for ships  (Read 3098 times)

0 Members and 1 Guest are viewing this topic.

vpmedia

  • Modder
  • member
  • Offline Offline
  • Posts: 6652
  • www.vpmedia.hu/il2
    • VPMEDIA SKINS
Increased sink time for ships
« on: May 23, 2015, 10:27:07 AM »

There was already a mod for 4.09 which made the ships sink slower, so this request is really about converting the old mod to a 4.12 SAS modact version. Here it is: http://ulozto.net/xy6FfbxF/sinktime-zip

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: Increased sink time for ships
« Reply #1 on: May 23, 2015, 10:33:25 AM »

I'll try to research it is possible or not for 4.12.2m with looking at the codes you attached.
Logged

vpmedia

  • Modder
  • member
  • Offline Offline
  • Posts: 6652
  • www.vpmedia.hu/il2
    • VPMEDIA SKINS
Re: Increased sink time for ships
« Reply #2 on: May 23, 2015, 10:39:13 AM »

Thanks, that would be great since this is the final problem I havent yet managed to solve in 4.12. :)

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9556
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Increased sink time for ships
« Reply #3 on: May 23, 2015, 11:41:25 AM »

There was already a mod for 4.09 which made the ships sink slower...
???
I did not know this Mod!  :-X
It works great in my 409_UP2!
The code is very different from the original code 409!
Do you have a link for more information?  :-\
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

vpmedia

  • Modder
  • member
  • Offline Offline
  • Posts: 6652
  • www.vpmedia.hu/il2
    • VPMEDIA SKINS
Re: Increased sink time for ships
« Reply #4 on: May 23, 2015, 12:28:07 PM »

This mod is from 2008, the Allircraftarcade.com topic where it (probably) was pubished is not there anymore.

Catsy

  • Modder
  • member
  • Offline Offline
  • Posts: 41
Re: Increased sink time for ships
« Reply #5 on: May 23, 2015, 04:18:29 PM »

It's done ! (but not tested) ;)
http://catsy.net/Mods/SinkTime_4.12.rar

It shouldn't work with HSFX 7. Asks if you want a HSFX version.

Catsy

Edit :
The code is very different from the original code 409!
It's not so different, just 2 lines changed in the "computeSinkingParams" method. ;)

Code: [Select]
float f6 = Rnd(1000F, 100000F);
tmInterpoEnd = tmInterpoStart + (long)(f2 * f6);
Logged

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: Increased sink time for ships
« Reply #6 on: May 23, 2015, 05:43:59 PM »

Yah! Catsy's reply shows me most clearly what I have to do.

I add its code on my Ship Extention MOD with flexibility, BETA patch 2.20.2.
https://www.sas1946.com/main/index.php/topic,39077.msg516839.html#msg516839


Code: [Select]
- Usage of "SinkTimeMultipiler"
Open your conf.ini in your IL-2 1946 installing ROOT folder and search "[Mods]" section.
When your conf.ini doesn't have "[Mods]" section, add it in its last.

|  [Mods]
|  SinkTimeMultipiler=2.0
This works as making Ships' sinking time extending into twice.

|  [Mods]
|  SinkTimeMultipiler=0.8
This works as making Ships' sinking time shortening into 80%.

The value of SinkTimeMultipiler is allowed from 0.3 to 10.0.
Logged

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9556
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Increased sink time for ships
« Reply #7 on: May 24, 2015, 03:26:13 AM »

The code is very different from the original code 409!
It's not so different, just 2 lines changed in the "computeSinkingParams" method.
Code: [Select]
float f6 = Rnd(1000F, 100000F);
tmInterpoEnd = tmInterpoStart + (long)(f2 * f6);
Yes I found these settings.  ;)
But I was talking in general code where much (especially the first) is very different ...
But most important is that everything works in 409/UP2!
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

Catsy

  • Modder
  • member
  • Offline Offline
  • Posts: 41
Re: Increased sink time for ships
« Reply #8 on: May 24, 2015, 03:36:07 AM »

It's just that the compiler used for this mod was quite different from that used for the 4.09.
In this case, what I do, I recompile 2 classes with the same compiler and decompile again, and here there is much less difference ...
Logged

Pursuivant

  • member
  • Offline Offline
  • Posts: 711
Re: Increased sink time for ships
« Reply #9 on: May 24, 2015, 09:21:56 PM »

Is the sinking time affected by additional damage?

For example, if you keep pumping bombs or torpedoes into a sinking ship, or if a ship is sunk by a 5,000 lb. bomb as opposed to a 500 lb. bomb, will it make a difference in sinking times?

I also believe that one of the official patches increased ship sinking time, although not by as much as they could have increased it.
Logged

vpmedia

  • Modder
  • member
  • Offline Offline
  • Posts: 6652
  • www.vpmedia.hu/il2
    • VPMEDIA SKINS
Re: Increased sink time for ships
« Reply #10 on: May 24, 2015, 10:18:04 PM »

Thanks a lot for the quick action Western0221. :)

Which classfiles do i need in order to be able to use this new SinkTimeMultipiler parameter in the conf.ini? I only need that one feature. (This standalone version http://catsy.net/Mods/SinkTime_4.12.rar isnt working).

western0221

  • Modder
  • member
  • Offline Offline
  • Posts: 6790
  • Live in Japan
    • IL-2 itaki blog
Re: Increased sink time for ships
« Reply #11 on: May 25, 2015, 12:24:09 AM »

Thanks a lot for the quick action Western0221. :)

Which classfiles do i need in order to be able to use this new SinkTimeMultipiler parameter in the conf.ini? I only need that one feature. (This standalone version http://catsy.net/Mods/SinkTime_4.12.rar isnt working).

I'm not sure it's possible to cut out some classfiles from my MOD, but....
Maybe the folder "ShipAIMod" in yesterday's version 2.20.2 patch with 22 classfiles is the minimum to work.
Original 2.20.0 full-set may not be needed for you.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.034 seconds with 24 queries.