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 03-01-11, 03:47 AM   #1
charognard
Navy Dude
 
Join Date: Feb 2009
Posts: 171
Downloads: 201
Uploads: 0
Default [REQ]Disable Deck Gun by bad Weather

Can someone tell me, or release a little mod for desable deck gun use ( crew or captain ) by bad weather like in GWX ? It d be a good improvement to the game realism.

Ps : Can someone tell me too, where i can find the external torpedo reload time value ? Thx in advance
charognard is offline   Reply With Quote
Old 03-01-11, 04:13 AM   #2
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,226
Downloads: 901
Uploads: 73


Default

I think scripting would be the go for not manning the deck gun in bad weather .
C:\Ubisoft\Silent Hunter 5\data\Scripts\AI\Crew\man_the_deck_gun

I cannot script but it might be as simple as

strategy MAN_THE_DECK_GUN(wp)

if Wp:IsGoodWeather() then
#Wp:ExecuteCommand( "Man_the_deck_gun" );
else
if Wp:IsBadWeather() then
Wp:ScriptCompleted();

I have no idea really .
THE_MASK is offline   Reply With Quote
Old 03-01-11, 04:16 AM   #3
charognard
Navy Dude
 
Join Date: Feb 2009
Posts: 171
Downloads: 201
Uploads: 0
Default

I can rigth some php or html pages... but script no ^^, well if someone can release it, i ll be grateful
charognard is offline   Reply With Quote
Old 03-01-11, 05:13 AM   #4
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

Vikinger made a mod where you can use the deck gun in all condition... maybe you can modif and you can make to react to suit you taste (there are cfg files not scripts so i think you are ok with these files):

here:
http://www.subsim.com/radioroom//dow...o=file&id=1564

@TDW i understood that later in the war years the subs were not carring a deck gun to improuve speed and other uboat performance

can be done something like this in sh5 - maybe if we modif some eqp file or maybe it is more complicate than that?
stoianm is offline   Reply With Quote
Old 03-01-11, 05:28 AM   #5
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
Default

Quote:
Vikinger made a mod where you can use the deck gun in all condition... maybe you can modif and you can make to react to suit you taste (there are cfg files not scripts so i think you are ok with these files):
This mod changes the StormConditions parameter (StormConditions=15,1.0;max wind speed [m/s], max rain intensity [0,1]). But you can already man the guns in bad weather. It seems that modifying this line doesn't have any effect at all. In previous games the deck watch changed raincoats on in a storm conditions but this doesn't work in SH 5.
Rongel is offline   Reply With Quote
Old 03-01-11, 05:34 AM   #6
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

Quote:
Originally Posted by Rongel View Post
This mod changes the StormConditions parameter (StormConditions=15,1.0;max wind speed [m/s], max rain intensity [0,1]). But you can already man the guns in bad weather. It seems that modifying this line doesn't have any effect at all. In previous games the deck watch changed raincoats on in a storm conditions but this doesn't work in SH 5.
i looked inside... i did not tested the mod to see if it work or not... i was suposed if for example you will put wind 0 then your crew man is not using deck or flank gun - so it not affect at all the behavior of crew for dek and flank gun
stoianm is offline   Reply With Quote
Old 03-01-11, 05:43 AM   #7
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
Default

Quote:
i looked inside... i did not tested the mod to see if it work or not... i was suposed if for example you will put wind 0 then your crew man is not using deck or flank gun - so it not affect at all the behavior of crew for dek and flank gun
I have tested it using StormConditions=1,1.0 and several other values, but no, they still man the gun and stand by it even when the wind is blowing 15 meters per sec.

Weird thing is that I remember maybe two times that there has been a log text "Cannot man the deck gun, too rough seas" or something. So it's super rare and I really don't know what it means, is there a working code buried somewhere down there that every once in a while manages to work, I don't know.
Rongel is offline   Reply With Quote
Old 03-01-11, 05:47 AM   #8
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

Quote:
Originally Posted by Rongel View Post
I have tested it using StormConditions=1,1.0 and several other values, but no, they still man the gun and stand by it even when the wind is blowing 15 meters per sec.

Weird thing is that I remember maybe two times that there has been a log text "Cannot man the deck gun, too rough seas" or something. So it's super rare and I really don't know what it means, is there a working code buried somewhere down there that every once in a while manages to work, I don't know.
i think the solution is where sober sugested but i have not programing skills for scripting... maybe somebody else... should be not so complicate
stoianm is offline   Reply With Quote
Old 03-01-11, 05:07 PM   #9
Sepp von Ch.
Sea Lord
 
Join Date: Dec 2009
Location: In my U-552 and Tiger
Posts: 1,732
Downloads: 788
Uploads: 0
Default

Quote:
Originally Posted by stoianm View Post

@TDW i understood that later in the war years the subs were not carring a deck gun to improuve speed and other uboat performance

can be done something like this in sh5 - maybe if we modif some eqp file or maybe it is more complicate than that?
Hello stoianm,

I use Magnum´s great mod Open Horizont with the campaign 1943-45 (http://www.subsim.com/radioroom/showthread.php?t=178257) and when I use VIIC/41, I have in bunker a option "enable the deck gun" (standard is VIIC/41 U-Boat without the deck gun). I love this option because on 14 November 1942, the BdU ordered the removal of deck guns from type VII U-Boats to compensate the weight of the increased Flak armament (not the case for submarines in Arctic ocean).
Because I constantly move in the North Atlantic, I do not have on my VIIC/41 U-boat the deck gun asi in real life.
__________________
U-552
Tiger
IDF
Sepp von Ch. is offline   Reply With Quote
Old 03-01-11, 05:09 PM   #10
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

Quote:
Originally Posted by Josef von Posorschitz View Post
Hello stoianm,

I use Magnum´s great mod Open Horizont with the campaign 1943-45 (http://www.subsim.com/radioroom/showthread.php?t=178257) and when I use VIIC/41, I have in bunker a option "enable the deck gun" (standard is VIIC/41 U-Boat without the deck gun). I love this option because on 14 November 1942, the BdU ordered the removal of deck guns from type VII U-Boats to compensate the weight of the increased Flak armament (not the case for submarines in Arctic ocean).
Because I constantly move in the North Atlantic, I do not have on my VIIC/41 U-boat the deck gun asi in real life.
- thanks - i use magnum mod also but i did not know - and he did not told me
very cool - i will try that
stoianm is offline   Reply With Quote
Old 03-07-11, 12:09 PM   #11
mobucks
Seasoned Skipper
 
Join Date: Jan 2010
Posts: 713
Downloads: 209
Uploads: 0
Default

I had a

"Cannot use deck gun weather too rough" Report yesterday,
we all know you can use DG regardless of weather, but it seems this report is spoken when trying to issue command to man/fire deck gun, while the gun is completely submerged by for example a tall wave.

Im no programmer, but it seems a call is made to see if decgun is submerged before allowing AI to use it. This seems to happen in real time, as the gunners will stop for a second if a huge wave rolls over them and continue when the wave is past.

Perhaps a timer can be added to this function? Meaning, if deckgun gets submerged, the crew cannot use it for X seconds, till hopefully another large wave covers it, continuing the cycle.

Anyone more knowledgeable willing to shed some light on if the above is possible, what files to look at, ect?

[EDIT] Oops looks like Sober already awnsered where and what to do, so lets work on a script! Im lookin at other scripts seeing if i can canibalize anything relevant.
mobucks is offline   Reply With Quote
Old 03-07-11, 12:13 PM   #12
stoianm
Ocean Warrior
 
Join Date: Dec 2010
Location: Montreal, Canada
Posts: 2,776
Downloads: 833
Uploads: 11
Default

Quote:
Originally Posted by mobucks View Post
I had a

"Cannot use deck gun weather too rough" Report yesterday,
we all know you can use DG regardless of weather, but it seems this report is spoken when trying to issue command to man/fire deck gun, while the gun is completely submerged by for example a tall wave.

Im no programmer, but it seems a call is made to see if decgun is submerged before allowing AI to use it. This seems to happen in real time, as the gunners will stop for a second if a huge wave rolls over them and continue when the wave is past.

Perhaps a timer can be added to this function? Meaning, if deckgun gets submerged, the crew cannot use it for X seconds, till hopefully another large wave covers it, continuing the cycle.

Anyone more knowledgeable willing to shed some light on if the above is possible, what files to look at, ect?
A good friend of mine writted me this:
,,I just changed that setting (timedelay for bad weather) to 1 sec and my crew un-maned the gun with a big wave

Note: this will also switch of your radar ''

i did not tested yet but i supouse is working as he described
stoianm is offline   Reply With Quote
Old 03-07-11, 12:43 PM   #13
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Yes, there in an option in TDW Ui .PY where a time delay was introduced
to prevent large wave switching off the radar. This also stopped
the very annoying habit of your engines switch back and fore from
battery.

The setting is at 5 seconds. If you change this the deck gun will
unman in bad weather but you will aslo get the above things.

You can also stop the radar and battery switching by having a
TC of more than 32.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 03-07-11, 02:59 PM   #14
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
Default

Thanks for the info, didn't know this!

However, I tested this but it had no effect at all. It may be because I didn't disable and re-enable TDW's Ui mod, I just edited the useroptions.py and saved it again (EDIT: I mean that I edited the useroptions.py in SH5/data/scripts/menu- folder!). I thought that this would be enough normally, but I may be wrong. Any other results anyone?

Even if this works, it's not a perfect solution, so new script to fix this would be awesome. Too bad I can't help, don't know anything about it.

Last edited by Rongel; 03-07-11 at 03:15 PM.
Rongel is offline   Reply With Quote
Old 03-07-11, 03:16 PM   #15
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by Rongel View Post
Thanks for the info, didn't know this!

However, I tested this but it had no effect at all. It may be because I didn't disable and re-enable TDW's Ui mod, I just edited the useroptions.py and saved it again. I thought that this would be enough normally, but I may be wrong. Any other results anyone?

Even if this works, it's not a perfect solution, so new script to fix this would be awesome. Too bad I can't help, don't know anything about it.
I tested this in a historical mission (had to reload to get the wave height to take effect) and each big wave sent crew off the gun.

There is a lot of script about the deckgun in "C:\Ubisoft\Silent Hunter 5\data\Scripts\Menu\Page layout" :-


Quote:
item.Name == "WA Man the deck gun":
if crewondeckmode == ManDeckGunMode:
if PL_UnderWater:
Game.SubmarineCommands.ExecuteCommand( "Deactivate_deck_gun_team" )
SetCrewOnDeckMode( WatchCrewMode )
item.VisibleBitmapIndex = BitmapIndex_NotAvailable
else:
item.VisibleBitmapIndex = BitmapIndex_Selected
else:
if PL_UnderWater:
item.VisibleBitmapIndex = BitmapIndex_NotAvailable
else:
item.VisibleBitmapIndex = BitmapIndex_NotSelected
So any change to this would really need to come from TDW as this page is updated a lot.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Reply


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 01:43 AM.


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