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 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-22-19, 02:07 PM   #1
Mios 4Me
Sonar Guy
 
Join Date: Feb 2019
Posts: 394
Downloads: 38
Uploads: 0


Default Enabling second deck gun?

Is there any way to enable the second 5" deck gun early? Say, 1941?
Mios 4Me is offline   Reply With Quote
Old 05-22-19, 04:25 PM   #2
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Chicago area, which is more dangerous than Omaha Beach.
Posts: 3,906
Downloads: 433
Uploads: 27


Default

Quote:
Originally Posted by Mios 4Me View Post
Is there any way to enable the second 5" deck gun early? Say, 1941?
you can try to do the edits manually and it MAY work. it depends on the mod-pack you are using. but there is no quick-and-easy mod to apply that will make it so.

do you have Notepad skills and experience editing the ActiveUserPlayerUnits.upc file in the Savefolder?
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 05-23-19, 12:12 AM   #3
ETR3(SS)
Ocean Warrior
 
Join Date: Dec 2007
Location: Between test depth and periscope depth
Posts: 3,021
Downloads: 175
Uploads: 16
Default

Define "second 5" deck gun."
__________________


USS Kentucky SSBN 737 (G)
Comms Div 2003-2006
Qualified 19 November 03

Yes I was really on a submarine.
ETR3(SS) is offline   Reply With Quote
Old 05-23-19, 08:00 AM   #4
Sniper297
The Old Man
 
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
Default

Quotes are also used as symbols. ' is foot or feet, " is inch or inches, so 5" would be five inch. He's talking about the 5"25, AKA five inch stubby. GAR class on up has an option for fore and aft 5" deck guns, I just checked in the stock game and that option is already available in 41 for 2000 renown points.

Did a tute once, let's see;

http://www.subsim.com/radioroom/showthread.php?t=211849

Post 22 is where we figured it out, edit the (subtype) .upc file for the upgrade pack. In the \Data\UPCData\UPCUnitsData\UpgradePacks.upc is;

[UpgradePack 25]
ID= Upack5in25calDGDouble
NameDisplayable= 5" 25 cal Deck Guns (Bow and Stern)
FunctionalType= UpFTypeWeaponCannon
UpgradePackSlotType= USDeckGunAdv
Type=NULL
UnitUpgradePackIntervalOptionCurrent= NULL, NULL, 0
UnitUpgradePackIntervalOptions1= 1941-01-01, NULL, 2000
IDLinkUpgradePackElements= 5in25calUS, 5in25calUS}

Change UnitUpgradePackIntervalOptions1= 1941-01-01, NULL, 2000 to UnitUpgradePackIntervalOptions1= 1941-01-01, NULL, NULL and you can get it for free.
Sniper297 is offline   Reply With Quote
Old 05-23-19, 11:04 AM   #5
Mios 4Me
Sonar Guy
 
Join Date: Feb 2019
Posts: 394
Downloads: 38
Uploads: 0


Default

I should have been more clear: I'm looking to activate the second 5"/25 gun that normally becomes available on the Balao class in late '44. I've just finished a career so I'm not sure exactly which mods I will use on the next but am leaning toward "Midway Balao" and "Cheap & Early Torpedoes" plus whatever parts of the GFO supermod that will not conflict with the above.



Code editing skills: in SHIV, I've changed the crew rank parameters but nothing else.



Thanks for that post link, Sniper. I'll pore over it this weekend.


Ideally, I'd like to have a fully-equipped Tench in 1941. Would that be an equivalent level of difficulty?
Mios 4Me is offline   Reply With Quote
Old 05-23-19, 03:45 PM   #6
Sniper297
The Old Man
 
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
Default

Hmmm. I still have 1.4 because I bought and tried 1.5 for a couple months, crashed too often for my tastes. So I got GAR, TAMBOR, GATO, BALAO, no gots TENCH.

Should be able to do it with any sub though, I got a PORPOISE in December 1941 with a late war conning tower, fore and aft 5 inch 25s, fore and aft 40mm Bofors.

I'll be back, gotta write another tutorial for this, see if I can get a BALAO in 1941.
Sniper297 is offline   Reply With Quote
Old 05-23-19, 05:16 PM   #7
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Chicago area, which is more dangerous than Omaha Beach.
Posts: 3,906
Downloads: 433
Uploads: 27


Default

Quote:
Originally Posted by Mios 4Me View Post
I should have been more clear: I'm looking to activate the second 5"/25 gun that normally becomes available on the Balao class in late '44. I've just finished a career so I'm not sure exactly which mods I will use on the next but am leaning toward "Midway Balao" and "Cheap & Early Torpedoes" plus whatever parts of the GFO supermod that will not conflict with the above.



Code editing skills: in SHIV, I've changed the crew rank parameters but nothing else.



Thanks for that post link, Sniper. I'll pore over it this weekend.


Ideally, I'd like to have a fully-equipped Tench in 1941. Would that be an equivalent level of difficulty?
Mios,


please be aware that adding a second deck gun is subject to the submarine definition which is different for each mega-mod. one cannot define one UPC that will work in any mod-situation.


that being said, the easiest way to add a second deck gun, it to decide which gun YOU want to fire when you go to manual fire. We will refer to that as your Default weapon. While in port, configure your sub with your Default weapon and save.
next, change the weapon location and save that to a different savegame. We will refer to that as Other. exit the game.
Go to the Savegame folder for the Default game. Make a copy in the same folder. Select the file. Ctrl+c then Ctrl+v. Done.

open the Default savegame then the Other savegame using Notepad Notepad.
Go to the Other file and find the weapon. Probably Compartment 7, 8, or 9. Select the text beginning with this line
[UserPlayerUnit 1.Compartment 9.WeaponSlot 1]
and include all of the Weaponslot1 and all of the subsequent section titled [UserPlayerUnit 1.Compartment 9.WeaponSlot 1.Weapon].
Should be 30-some lines of text. Copy the text. Ctrl-c, Rt Click-copy, any way you know how.
switch over to the Default file. find the same two sections. Select them. Paste the text over what you see. Ctrl-v, Rt. Click-paste. whatever.
The next few sections after the .Weapon section will be crew slots. Delete the text "AdditionalRepository" leaving a space between the crew number and CrewmemberSlot. Do this for all of the gun crew. Could be as few as two and as many as six. Depends on the mod.
now the last piece, save the Default file.
Run SH4 and load the Default game. Go to the Crew Management screen and you should see two gun crews. Voila.
Have fun. Be careful with those guns....and the ammo.
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 05-23-19, 11:42 PM   #8
Mios 4Me
Sonar Guy
 
Join Date: Feb 2019
Posts: 394
Downloads: 38
Uploads: 0


Default

Awesome! Thanks for all the help, guys. I'm going to wipe everything, reinstall 1.5 and give it a shot this weekend or next.

Sniper - interesting that the Gar class has that option from the beginning. It doesn't show up on the Balao until late '44, almost too late for any real fun.
Mios 4Me is offline   Reply With Quote
Old 05-24-19, 12:38 AM   #9
Sniper297
The Old Man
 
Join Date: Dec 2005
Location: Philadelphia Shipyard Brig
Posts: 1,386
Downloads: 160
Uploads: 19
Default

Yeah, I'm mainly a Sargo driver, never paid that much attention to the others, but I tried the Gar to see if it had the option for double five inch stubbies in 41, and it did. Anyway copied the default folder and started hacking, here's what I got;

http://www.subsim.com/radioroom/showthread.php?t=241297

The copy/paste for the Gato to Porpoise should also work for the Tench, "AcceptedTypes=USDeckGunBasic, USDeckGunAdv" is the key for double deck guns, I suspect the Narwhal also has that line.
Sniper297 is offline   Reply With Quote
Old 12-06-22, 09:19 PM   #10
Telpher
Swabbie
 
Join Date: Jan 2020
Location: Gdansk.Poland
Posts: 6
Downloads: 25
Uploads: 0
Default

i've reset all date's to null,null.change renown to 0. and works.but one small thing ,fore gun will be used by ai,ster by player.i dont find yet how change this.maybe if edit crew /sub->add 2 more ,and make active slots for them. second thing i dont find how change between them so i could use and shoot.both of them.maybe someone ...
Telpher is offline   Reply With Quote
Old 12-06-22, 10:54 PM   #11
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Chicago area, which is more dangerous than Omaha Beach.
Posts: 3,906
Downloads: 433
Uploads: 27


Default

Quote:
Originally Posted by Telpher View Post
i've reset all date's to null,null.change renown to 0. and works.but one small thing ,fore gun will be used by ai,ster by player.i dont find yet how change this.maybe if edit crew /sub->add 2 more ,and make active slots for them. second thing i dont find how change between them so i could use and shoot.both of them.maybe someone ...
you will not be able to do operate both weapons.
it is a feature of SH4 that cannot be changed.
when you are allowed to install fore and aft deck guns, you will only be able to operate one manually. the other will have to be operated by your crew.
it is the way it is.
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 12-07-22, 09:51 AM   #12
1Patriotofmany
Commander
 
1Patriotofmany's Avatar
 
Join Date: Jul 2017
Posts: 446
Downloads: 95
Uploads: 0
Default

Second deck gun on japanese subs works in the japanese sub mod.
1Patriotofmany is offline   Reply With Quote
Old 12-07-22, 10:36 AM   #13
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Chicago area, which is more dangerous than Omaha Beach.
Posts: 3,906
Downloads: 433
Uploads: 27


Default

Quote:
Originally Posted by 1Patriotofmany View Post
Second deck gun on japanese subs works in the japanese sub mod.
do you mean to say that the player can manually operate both weapons?
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 12-07-22, 05:34 PM   #14
1Patriotofmany
Commander
 
1Patriotofmany's Avatar
 
Join Date: Jul 2017
Posts: 446
Downloads: 95
Uploads: 0
Default

Quote:
Originally Posted by KaleunMarco View Post
do you mean to say that the player can manually operate both weapons?
No sorry ai shoots one while you use other. IIRC you can chose which deck gun to operate.
1Patriotofmany is offline   Reply With Quote
Old 12-07-22, 06:35 PM   #15
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Chicago area, which is more dangerous than Omaha Beach.
Posts: 3,906
Downloads: 433
Uploads: 27


Default

Quote:
Originally Posted by 1Patriotofmany View Post
No sorry ai shoots one while you use other. IIRC you can chose which deck gun to operate.
yeah, no.
i believe we are stuck operating the stern gun manually.
the fore gun shoots automagically when you crew it.
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco 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 08:52 AM.


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