SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter 4: Wolves of the Pacific (https://www.subsim.com/radioroom/forumdisplay.php?f=202)
-   -   Enabling second deck gun? (https://www.subsim.com/radioroom/showthread.php?t=241277)

Mios 4Me 05-22-19 02:07 PM

Enabling second deck gun?
 
Is there any way to enable the second 5" deck gun early? Say, 1941? :)

KaleunMarco 05-22-19 04:25 PM

Quote:

Originally Posted by Mios 4Me (Post 2610802)
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?

ETR3(SS) 05-23-19 12:12 AM

Define "second 5" deck gun."

Sniper297 05-23-19 08:00 AM

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.

Mios 4Me 05-23-19 11:04 AM

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?

Sniper297 05-23-19 03:45 PM

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.

KaleunMarco 05-23-19 05:16 PM

Quote:

Originally Posted by Mios 4Me (Post 2610979)
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.:haha:
:salute:

Mios 4Me 05-23-19 11:42 PM

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.

Sniper297 05-24-19 12:38 AM

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.

Telpher 12-06-22 09:19 PM

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 ...

KaleunMarco 12-06-22 10:54 PM

Quote:

Originally Posted by Telpher (Post 2841377)
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. :wah:

1Patriotofmany 12-07-22 09:51 AM

Second deck gun on japanese subs works in the japanese sub mod.

KaleunMarco 12-07-22 10:36 AM

Quote:

Originally Posted by 1Patriotofmany (Post 2841462)
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?
:timeout:

1Patriotofmany 12-07-22 05:34 PM

Quote:

Originally Posted by KaleunMarco (Post 2841469)
do you mean to say that the player can manually operate both weapons?
:timeout:

No sorry ai shoots one while you use other. IIRC you can chose which deck gun to operate.

KaleunMarco 12-07-22 06:35 PM

Quote:

Originally Posted by 1Patriotofmany (Post 2841518)
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.


All times are GMT -5. The time now is 09:49 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.