SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-05-13, 12:06 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I might have a solution for gap's idea. It hit me while I was out riding one of my motorcycles (funny how things happen like this!).

What I can do is hook into when you ask for new ordered bell and new ordered speed. If you ask for new ordered bell then I set a bit denoting this. If you ask for new ordered speed I clear the bit. This bit will then be used when transitioning from surfaced/submerged states. If the bit is set then I know to update each engine's ordered speed with the appropriate engine ratio (if surfacing then use the diesel ratios, if submerging then use the electric ratios). If this bit is clear then I do not update each engine's ordered speed because the game will update them with the ordered speed the player selected. Seems to be a viable option. Now to code it in and see...
TheDarkWraith is offline   Reply With Quote
Old 07-05-13, 01:24 PM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
What I can do is hook into when you ask for new ordered bell and new ordered speed...
I think I grasped your idea. Brilliant method, let'see if it works now
gap is offline   Reply With Quote
Old 07-05-13, 03:11 PM   #3
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

Planes leaving from an airfield when spotted in an enemy port next
Does a docked carrier have planes taking off ?
THE_MASK is offline   Reply With Quote
Old 07-05-13, 03:18 PM   #4
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

Yes, there definitely need to be more repercussions for entering an enemy port and blowing stuff up. Could you code it so that planes come and patrol above the port you were detected in? Or even make it so that there's a chance of some sort of enemy patrol vessel arriving (maybe a torpedo boat)?
Sartoris is offline   Reply With Quote
Old 07-05-13, 03:24 PM   #5
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by sober View Post
Planes leaving from an airfield when spotted in an enemy port next
Does a docked carrier have planes taking off ?
Quote:
Originally Posted by Sartoris View Post
Yes, there definitely need to be more repercussions for entering an enemy port and blowing stuff up. Could you code it so that planes come and patrol above the port you were detected in? Or even make it so that there's a chance of some sort of enemy patrol vessel arriving (maybe a torpedo boat)?
Trevally explained it somewhere, I can't find it right now, plane(s) + port = CTD..
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 07-05-13, 03:43 PM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by volodya61 View Post
Trevally explained it somewhere, I can't find it right now, plane(s) + port = CTD..
Hi Volodya,

I think Trevally was referring to enemy planes in friendly ports, or friendly planes in in enemy ports. As far as planes and ports are on the same side (an there are not too many alien units around), there shouldn't be problems of any sort
gap is offline   Reply With Quote
Old 07-05-13, 03:52 PM   #7
Sartoris
Captain
 
Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
Hi Volodya,

I think Trevally was referring to enemy planes in friendly ports, or friendly planes in in enemy ports. As far as planes and ports are on the same side (an there are not too many alien units around), there shouldn't be problems of any sort
Yeah, that's how I remember it, too.
Sartoris is offline   Reply With Quote
Old 07-05-13, 03:43 PM   #8
Alky
Lieutenant
 
Join Date: Jun 2007
Location: Abbotsford BC Canada
Posts: 258
Downloads: 141
Uploads: 0
Default

Where can I find the patch to update SH5 to 1.20 ?? The GU updater doesn't work. Thanx.
__________________

Alky is offline   Reply With Quote
Old 07-05-13, 07:48 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by sober View Post
Planes leaving from an airfield when spotted in an enemy port next
Does a docked carrier have planes taking off ?
Good idea. Should be easy to code in. Yes docked carriers will have planes taking off. I know where the bit is though that says dockedship I'm just not using it currently. Reason being is I don't fully understand what this does/doesn't do yet.

Quote:
Originally Posted by Sartoris View Post
Yes, there definitely need to be more repercussions for entering an enemy port and blowing stuff up. Could you code it so that planes come and patrol above the port you were detected in? Or even make it so that there's a chance of some sort of enemy patrol vessel arriving (maybe a torpedo boat)?
I need to make the airfields do what the carriers now do

Last edited by TheDarkWraith; 07-05-13 at 08:20 PM.
TheDarkWraith is offline   Reply With Quote
Old 07-05-13, 08:14 PM   #10
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
I need to make the airfields do what the carriers now do
Can you introduce a random delay, for simulating aircrews not being ready? Possibly veterancy related: the lesser trained airgroups, the higher the chance of them not being immediately ready, and the longer the random delay range.

P.S. could be:

delay chance = C * (1 - AM)
maximum delay = D * (1 - AM)

where AM is the veterancy related Airbase Modifier (AirStrikes.cfg), and C and D are conveniently set absolute maximums (50% and 15 min, for instance).

Using my numbers with IRAI airbase modifiers, we would have (delay chance / maximum allowed delay):

Poor Airbase: 37.5% / 11.25 min
Novice Airbase: 30% / 9 min
Competent Airbase: 15% / 4.5
Veteran Airbase: 10% / 3 min
Elite Airbase: 0% / 0 min

Indeed, if you like my idea but you think that it would introduce too much delay, we could further reduce the above numbers, and/or we could use a power of Airbase Modifiers in order to increase the difference between different training levels.

Last edited by gap; 07-05-13 at 08:47 PM.
gap is offline   Reply With Quote
Old 07-05-13, 08:20 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Can you introduce a random delay, for simulating aircrews not being ready? Possibly veterancy related: the lesser trained airgroups, the higher the chance of them not being immediately ready, and the longer the random delay range.
That one is easy to do. For the carriers I set the logic steps value to 0 to force the game to check for airstrikes and then spawn the new air units (via my new code) immediately. Instead of setting the logic steps to 0 I'll just leave the value as is for airbases. Thus it will take 91.0 X logic steps remaining before the airfield reacts. So minimum time could be 91.0 seconds, maximum could be logic steps defined in airstrike.cfg X 91.0 seconds
TheDarkWraith is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.