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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-29-10, 11:25 AM   #1
audessy
Electrician's Mate
 
Join Date: Dec 2008
Posts: 133
Downloads: 132
Uploads: 0
Default Upgradeable Weapons Interchangeable surface ship guns

Currently I'm compiling a bunch of surface ships together. I ran into an issue I could use your help for. I'm working on making the guns interchangeable but what happens is only the player controlled turret changes. I know it's possible to have them all changed. So far I've been working through the UPC files but I have a feeling there's more to it than that.

I've seen it done in SH3 with the Scharnhorst by ChineseU-47. You could switch from 11 inch triples to Bismarck's 14.96 duals. Any help would be appreciated.
audessy is offline   Reply With Quote
Old 03-31-10, 09:37 PM   #2
audessy
Electrician's Mate
 
Join Date: Dec 2008
Posts: 133
Downloads: 132
Uploads: 0
Default

*Bump*
audessy is offline   Reply With Quote
Old 03-31-10, 11:06 PM   #3
VonHesse
Sailor Man
 
Join Date: Oct 2009
Location: Dieser verdammte Platz
Posts: 239
Downloads: 43
Uploads: 0
Default

I've only done a tiny bit of modding myself, nothing worth releasing, so I'm not sure how much help I can be. However, to change a sub's standard deck gun to one of your choosing does require more than just modding the UPC file. If I recall correctly, (and I probably don't) you need to add the gun you want to the "USSupParts" file (modify and re-map the gun's .dat and .sim file.). Then add that gun to the "Weapons.upc"file, as well as the "UpgradePacks.upc" After that, you can add the gun to the sub's UPC file. Also, AA guns are tied to the conning tower in the "Objects" folder.

I'm sure that I'm making no sense, since I've barely got the hang of this myself, but ETR3(SS) did a very good and thorough tutorial on adding and modifying guns in SH4. I'll see if I can find a link for it. That should help you more than my sensless ramblings.

EDIT: Here it is (I hope) : http://www.subsim.com/radioroom/showthread.php?t=162021

Good luck, hope that helps
VonHesse is offline   Reply With Quote
Old 04-01-10, 02:41 AM   #4
audessy
Electrician's Mate
 
Join Date: Dec 2008
Posts: 133
Downloads: 132
Uploads: 0
Default

Well I'm trying to do this for surface ships but it looks like ubi hard coded all this crap in. You have to use a different gun for the "player" turret and another type for everything else. I think they actually went through more work than it's worth to make it like this. I'm convinced it's impossible to make the IJN Ise's 6 gun turrets upgrade from the interface. Oh well...

12 hours and nothing accomplished. Yay.
audessy is offline   Reply With Quote
Old 04-01-10, 03:01 AM   #5
audessy
Electrician's Mate
 
Join Date: Dec 2008
Posts: 133
Downloads: 132
Uploads: 0
Default

"The guns for Ships are in the shipname.eqp file with dates."

I tried that. The "A" turret doesn't change. Plus it's really not what I was going for. I wanted to have these upgrades in game at the expense of renown for ease of use of the player.

My next question is there a way that I can disable the "player turret" and allow the ship to use all the same gun data from the library/shipparts file? If possible while still having a gun crew and being able to assign targets?

It appears there's no way I can make every gun use the gun files in library/(ger/us)subparts. I hope someone can prove me wrong though.

If I can overcome this I'm releasing a really fun mod. So far I've done a lot but I'm stuck here. Imagine using a Ise/Fuso and having the Kriegsmarine 11 inch triples on them for commerce raiding.
audessy is offline   Reply With Quote
Old 04-01-10, 01:15 PM   #6
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by audessy View Post
"The guns for Ships are in the shipname.eqp file with dates."

I tried that. The "A" turret doesn't change. Plus it's really not what I was going for. I wanted to have these upgrades in game at the expense of renown for ease of use of the player.
You have to keep in mind to make a ship playable you basically make it a sub. A sub's upc file has entries for guns that are on a sub and entries to upgrade those guns. Usually a fore or aft deck gun and up to three flakguns depending on the upc file. And if you look there is a section in the upc file called Funtional Subsystem which also enters into the mix, these are the items that the 'sub' can put on the sub, and have entries in the upc that coincide with them.
To answer the other part of the question, for "ease of use of the player" it would be much easier to make a change in the eqp file by date so all the guns change than to try to make them all a renown purchase. If that is possible, since I never tried it I can't comment on that. And if it did work, there are 34 guns on the Ise.

If by 'A' turret you mean the playable gun, then the entry in the Ship.upc or upcge file will take priority over the entry in the .eqp file. So if you want the same gun, you need to make the change in the upc. And as Vonhesse pointed out there is more to it.

Quote:
My next question is there a way that I can disable the "player turret" and allow the ship to use all the same gun data from the library/shipparts file? If possible while still having a gun crew and being able to assign targets?
The non-playable guns come with a crew to man them, it is part of the gun definition. And assigning targets is as simple as using the binoculars and select the ship you want them to shoot at. And if you want to disable the 'player turret' it must be done in the upc file.

Quote:
It appears there's no way I can make every gun use the gun files in library/(ger/us)subparts. I hope someone can prove me wrong though.

If I can overcome this I'm releasing a really fun mod. So far I've done a lot but I'm stuck here. Imagine using a Ise/Fuso and having the Kriegsmarine 11 inch triples on them for commerce raiding.
The Ise has 34 guns and of that 6 are 14 inch doubles and 14 are 6 inch singles. (the rest are flak guns) I think they can hold their own against "Commerce" without much changing of guns.

I am not trying to discourage you from your project. Just to keep in mind that your 'ship' once it is made playable becomes a sub and you will have to deal with the 'sub' files which are not designed by default to do what you want to do. So there is some work to be done. And you are trying to mix and match Fleet boat guns with Uboat guns, which means some may have to be moved, cloned and renamed and then deal with the fact that they are not in the upgradepacks.upc or the weapons.upc.
Another thing that makes a difference is what sub was used to build the Ise/Fuso that you want to MOD. So there are some missing details to give you a specific answer.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 04-01-10, 12:48 AM   #7
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by audessy View Post
Currently I'm compiling a bunch of surface ships together. I ran into an issue I could use your help for. I'm working on making the guns interchangeable but what happens is only the player controlled turret changes. I know it's possible to have them all changed. So far I've been working through the UPC files but I have a feeling there's more to it than that.

I've seen it done in SH3 with the Scharnhorst by ChineseU-47. You could switch from 11 inch triples to Bismarck's 14.96 duals. Any help would be appreciated.
The guns for Ships are in the shipname.eqp file with dates.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody 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 10:15 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.