View Single Post
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,922
Downloads: 436
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