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 06-05-08, 05:04 PM   #1
clayp
The Old Man
 
Join Date: Mar 2007
Posts: 1,554
Downloads: 340
Uploads: 0
Having a problem

Trying to get more torpedos on the boat I changed the Gato UPC file thusley

[UserPlayerUnit 1.Compartment 1.Bunker 1] ; Stern Torpedo Room
ID=SternTorpedoRoom
Capacity=6 -----was 4+2
IDLinkAmmunitionIntervalDefault1= NULL, 1941-11-01, Mk14Torpedo, 6---was 4+2
IDLinkAmmunitionIntervalDefault2= 1941-11-01, 1944-06-31, Mk14Torpedo, 4, Mk18Torpedo, 3-----was 1+2
IDLinkAmmunitionIntervalDefault3= 1941-11-01, 1944-12-31, Mk14Torpedo, 3, Mk18Torpedo, 4----was 2+2
IDLinkAmmunitionIntervalDefault4= 1941-11-01, NULL, Mk14Torpedo, 2, Mk18Torpedo, 4----was 2+2,
Mk27Torpedo, 1

[UserPlayerUnit 1.Compartment 5.Bunker 1] ; Forward Torpedo Room
ID=BowTorpedoRoom
Capacity=12-----was 10+2
IDLinkAmmunitionIntervalDefault1= NULL, 1941-11-01, Mk14Torpedo, 12----was 10 +2
IDLinkAmmunitionIntervalDefault2= 1941-11-01, 1944-06-31, Mk14Torpedo, 4, Mk18Torpedo, 4, Mk23Torpedo, 5----was 3 +2
IDLinkAmmunitionIntervalDefault3= 1941-11-01, 1944-12-31, Mk14Torpedo, 6, Mk18Torpedo, 4, Mk23Torpedo, 3----was 1 +2
IDLinkAmmunitionIntervalDefault4= 1941-11-01, NULL, Mk14Torpedo, 5, Mk18Torpedo, 8----was 6 +2

per the example given here..

for example if you want to increase reserve capacity for a Balao
C:\Program Files\Ubisoft\Silent Hunter 4 Wolves of the Pacific\Data\Submarine\NSS_Balao
[UserPlayerUnit 1.Compartment 1.Bunker 1] ; Stern Torpedo Room
ID=SternTorpedoRoom
Capacity=6<---was 4
IDLinkAmmunitionIntervalDefault1= NULL, 1943-12-31, Mk14Torpedo, 6<---was 4
IDLinkAmmunitionIntervalDefault2= 1944-01-01, 1944-06-31, Mk14Torpedo, 3, Mk18Torpedo, 3<---was 1
IDLinkAmmunitionIntervalDefault3= 1944-07-01, 1944-12-31, Mk14Torpedo, 2, Mk18Torpedo, 4<---was 2
IDLinkAmmunitionIntervalDefault4= 1945-01-01, NULL, Mk14Torpedo, 1, Mk18Torpedo, 4<---was 2, Mk27Torpedo, 1
[UserPlayerUnit 1.Compartment 5.Bunker 1] ; Forward Torpedo Room
ID=BowTorpedoRoom
Capacity=12<---was 10
IDLinkAmmunitionIntervalDefault1= NULL, 1943-12-31, Mk14Torpedo, 12<---was 10
IDLinkAmmunitionIntervalDefault2= 1944-01-01, 1944-06-31, Mk14Torpedo, 3, Mk18Torpedo, 4, Mk23Torpedo, 5<---was 3
IDLinkAmmunitionIntervalDefault3= 1944-07-01, 1944-12-31, Mk14Torpedo, 5, Mk18Torpedo, 4, Mk23Torpedo, 3<---was 1
IDLinkAmmunitionIntervalDefault4= 1945-01-01, NULL, Mk14Torpedo, 4, Mk18Torpedo, 8<---was 6
Start a career, pick a Balao and your off!
C:\Program Files\Ubisoft\Silent Hunter 4 Wolves of the
Pacific\Data\Submarine\NSS_Balao\NSS_Balao.upc
tihs is what I have in my saved game folder right now.
[UserPlayerUnit 1.Compartment 1.Bunker 1]
ID=SternTorpedoRoom
Capacity=6.000000
IDLinkAmmunitionLoaded=Mk23Torpedo,6
[UserPlayerUnit 1.Compartment 5.Bunker 1]
ID=BowTorpedoRoom
Capacity=12.000000
IDLinkAmmunitionLoaded=Mk23Torpedo,12

It works and puts the torpedos in but then I get the old SH4 has encountered a problem and must close,etc,etc...Can anyone help me and tell me whats wrong?
__________________
clayp


Last edited by clayp; 06-08-08 at 12:27 PM.
clayp is offline   Reply With Quote
Old 06-05-08, 06:26 PM   #2
LukeFF
Silent Hunter
 
Join Date: Apr 2005
Location: Riverside, California
Posts: 3,610
Downloads: 41
Uploads: 5
Default

Your default dates are overlapping and conflicting with each other.
__________________


ROW Sound Effects Contributor
RFB Team Leader
LukeFF is offline   Reply With Quote
Old 06-05-08, 06:52 PM   #3
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Have to change the internal storage allowances in the sim file via S3D. Won't do anything but CTD until you do.
Ducimus is offline   Reply With Quote
Old 06-06-08, 04:16 PM   #4
clayp
The Old Man
 
Join Date: Mar 2007
Posts: 1,554
Downloads: 340
Uploads: 0
Quote:
Originally Posted by Ducimus
Have to change the internal storage allowances in the sim file via S3D. Won't do anything but CTD until you do.
Sorry guy's was having trouble connecting to the site..

Luke I will go over the dates..

Ducimus..I have been tring to figure out the S3D but not having a lot of luck.Cant find any help files or tutoriles for it...
__________________
clayp

clayp is offline   Reply With Quote
Old 06-06-08, 05:25 PM   #5
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Im going by memory here, but....

Open up your gato sim file in S3D.

Somewhere in the property tree you'll fine references to torpedo storage. Internal, and external storage. External wont have anything in it. Internal storage, if you expand the list there, you'll see a bunch of I's. There properties of what can be stored there, but anyway, click on this tree (right hand side of the tool), then right click on this list of I's., and then select "Add array item".

Mimic what is already in place there. For example stern internal storage will probably have 4 array items. If you want 6 fish stored there, then you must add TWO items to this array for a total of 6. (array meaning the little tree your seeing there in the stern internal storage in laymans terms).

The number in the torpedo storage bunker in the UPC file (fore or aft), must not exceed the size of the torpedo storage array (fore or aft) in the sim file.
Ducimus is offline   Reply With Quote
Old 06-07-08, 03:01 PM   #6
clayp
The Old Man
 
Join Date: Mar 2007
Posts: 1,554
Downloads: 340
Uploads: 0
Default

Quote:
Originally Posted by Ducimus
Im going by memory here, but....

Open up your gato sim file in S3D.

Somewhere in the property tree you'll fine references to torpedo storage. Internal, and external storage. External wont have anything in it. Internal storage, if you expand the list there, you'll see a bunch of I's. There properties of what can be stored there, but anyway, click on this tree (right hand side of the tool), then right click on this list of I's., and then select "Add array item".

Mimic what is already in place there. For example stern internal storage will probably have 4 array items. If you want 6 fish stored there, then you must add TWO items to this array for a total of 6. (array meaning the little tree your seeing there in the stern internal storage in laymans terms).

The number in the torpedo storage bunker in the UPC file (fore or aft), must not exceed the size of the torpedo storage array (fore or aft) in the sim file.
What # is the "STORAGE BUNKER" in the UPC I dont see it,must be blind....
__________________
clayp

clayp is offline   Reply With Quote
Old 06-07-08, 03:30 PM   #7
W4lt3r
Ensign
 
Join Date: Apr 2008
Posts: 222
Downloads: 46
Uploads: 0
Default

Just search with "bunker", you should eventually find the part in the UPC files that determines how much storage space you have on the sub. Alter the .sim and upc file to same amounts (example, my 688i got 36 on forward torpedo bunker, and 36 torpedo storage on my .sim file at front torpedo space)
W4lt3r is offline   Reply With Quote
Old 06-07-08, 09:12 PM   #8
clayp
The Old Man
 
Join Date: Mar 2007
Posts: 1,554
Downloads: 340
Uploads: 0
Default

Thank you W4.....
__________________
clayp

clayp is offline   Reply With Quote
Old 06-08-08, 12:35 PM   #9
clayp
The Old Man
 
Join Date: Mar 2007
Posts: 1,554
Downloads: 340
Uploads: 0
Ok guy's I'm not getting it....I edited the UPC file with notepad like this....

[UserPlayerUnit 1.Compartment 1.Bunker 1] ; Stern Torpedo Room
ID=SternTorpedoRoom
Capacity=6 -----was 4+2
IDLinkAmmunitionIntervalDefault1= NULL, 1941-11-01, Mk14Torpedo, 6---was 4+2
IDLinkAmmunitionIntervalDefault2= 1941-11-01, 1944-06-31, Mk14Torpedo, 4, Mk18Torpedo, 3-----was 1+2
IDLinkAmmunitionIntervalDefault3= 1941-11-01, 1944-12-31, Mk14Torpedo, 3, Mk18Torpedo, 4----was 2+2
IDLinkAmmunitionIntervalDefault4= 1941-11-01, NULL, Mk14Torpedo, 2, Mk18Torpedo, 4----was 2+2,
Mk27Torpedo, 1

[UserPlayerUnit 1.Compartment 5.Bunker 1] ; Forward Torpedo Room
ID=BowTorpedoRoom
Capacity=12-----was 10+2
IDLinkAmmunitionIntervalDefault1= NULL, 1941-11-01, Mk14Torpedo, 12----was 10 +2
IDLinkAmmunitionIntervalDefault2= 1941-11-01, 1944-06-31, Mk14Torpedo, 4, Mk18Torpedo, 4, Mk23Torpedo, 5----was 3 +2
IDLinkAmmunitionIntervalDefault3= 1941-11-01, 1944-12-31, Mk14Torpedo, 6, Mk18Torpedo, 4, Mk23Torpedo, 3----was 1 +2
IDLinkAmmunitionIntervalDefault4= 1941-11-01, NULL, Mk14Torpedo, 5, Mk18Torpedo, 8----was 6 +2

So it looks to me like "10" torps were added to the BOW bunker and "10" torps added to the Stern bunker...Ok so I went to the Gato SIM file in the Slient Editor and added "10" TORPS to the Bow bunker and "10" to the Stern...Its dosent work,still crashes.... What the BLEEP am I doing wrong?????
__________________
clayp

clayp is offline   Reply With Quote
Old 06-08-08, 01:41 PM   #10
W4lt3r
Ensign
 
Join Date: Apr 2008
Posts: 222
Downloads: 46
Uploads: 0
Default

WAit a minute, you edited the Ammunition interval values? You should return their values to their standard ones and just adjust the capacity of the sub's bunkers. NOTHING Else.

Readjust the IDLinkAmmunitionIntervalDefault 1-4 back to their standard values. After that you should be good to go.
If you want 10 more torpedoes, you just add +10 to the Capacity, (26 -> 36, example) And then adjust the .sim file to the corresponding amount of torpedoes that is shown on the UPC Capacity ( if .sim has 26 nodes, and UPC has 36, you add nodes into the torpedo storage bow/stern until it matches with the UPC files capacity)
W4lt3r is offline   Reply With Quote
Old 06-08-08, 05:02 PM   #11
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by clayp
Ok guy's I'm not getting it....I edited the UPC file with notepad like this....

[UserPlayerUnit 1.Compartment 1.Bunker 1] ; Stern Torpedo Room
ID=SternTorpedoRoom
Capacity=6 -----was 4+2
IDLinkAmmunitionIntervalDefault1= NULL, 1941-11-01, Mk14Torpedo, 6---was 4+2
IDLinkAmmunitionIntervalDefault2= 1941-11-01, 1944-06-31, Mk14Torpedo, 4, Mk18Torpedo, 3-----was 1+2
IDLinkAmmunitionIntervalDefault3= 1941-11-01, 1944-12-31, Mk14Torpedo, 3, Mk18Torpedo, 4----was 2+2
IDLinkAmmunitionIntervalDefault4= 1941-11-01, NULL, Mk14Torpedo, 2, Mk18Torpedo, 4----was 2+2,
Mk27Torpedo, 1

[UserPlayerUnit 1.Compartment 5.Bunker 1] ; Forward Torpedo Room
ID=BowTorpedoRoom
Capacity=12-----was 10+2
IDLinkAmmunitionIntervalDefault1= NULL, 1941-11-01, Mk14Torpedo, 12----was 10 +2
IDLinkAmmunitionIntervalDefault2= 1941-11-01, 1944-06-31, Mk14Torpedo, 4, Mk18Torpedo, 4, Mk23Torpedo, 5----was 3 +2
IDLinkAmmunitionIntervalDefault3= 1941-11-01, 1944-12-31, Mk14Torpedo, 6, Mk18Torpedo, 4, Mk23Torpedo, 3----was 1 +2
IDLinkAmmunitionIntervalDefault4= 1941-11-01, NULL, Mk14Torpedo, 5, Mk18Torpedo, 8----was 6 +2

So it looks to me like "10" torps were added to the BOW bunker and "10" torps added to the Stern bunker...Ok so I went to the Gato SIM file in the Slient Editor and added "10" TORPS to the Bow bunker and "10" to the Stern...Its dosent work,still crashes.... What the BLEEP am I doing wrong?????
Clay, three head beats, you must be upset.
You didn't add 10 torpedos, you added 2 and 2.
Capacity=12-----was 10+2 You added 2 torpedos here ,forward bunker.
Capacity=6 -----was 4+2 You added 2 here, aft bunker.

The other numbers are what what topedos are available at different times during the war. Notice the different dates in the line and the different torpedos available at those dates.. So you don't add them up to get how many you added, just use how much you changed the 'Total' or "Capacity". If your frig 'Capacity' will only hold a six pack today and a six pack tomorrow and a six pack the next day. It still only holds 6 at one time.

So, you can go through 2000 torpedos during the war but the 'capacity' tells you how many you can hold at one time and that is the number you need to have in the sim file.

So, if your capacity changed by 2 you only need to add two to the .sim file. And one note: notice in the "Storage" part of the sim it will say for example:
Storage[12]
but below will be numbered 0 through 11. So make sure you stop at 11 because the numbering doesn't start with 1, it starts with 0.
And for the aft:
Storage[6]
will be numbered 0 through 5.

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 06-08-08, 10:18 PM   #12
clayp
The Old Man
 
Join Date: Mar 2007
Posts: 1,554
Downloads: 340
Uploads: 0
Ok I will try a couple of times again tomorrow and if it dosent work I'm gonna have to give up..I'm just not getting it for some reason and still trying to figure out the seditor...Thanks everyone for the help....
__________________
clayp

clayp is offline   Reply With Quote
Old 06-09-08, 12:09 AM   #13
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by clayp
Trying to get more torpedos on the boat I changed the Gato UPC file thusley

[UserPlayerUnit 1.Compartment 1.Bunker 1] ; Stern Torpedo Room
ID=SternTorpedoRoom
Capacity=6 -----was 4+2
IDLinkAmmunitionIntervalDefault1= NULL, 1941-11-01, Mk14Torpedo, 6---was 4+2
IDLinkAmmunitionIntervalDefault2= 1941-11-01, 1944-06-31, Mk14Torpedo, 4, Mk18Torpedo, 3-----was 1+2
IDLinkAmmunitionIntervalDefault3= 1941-11-01, 1944-12-31, Mk14Torpedo, 3, Mk18Torpedo, 4----was 2+2
IDLinkAmmunitionIntervalDefault4= 1941-11-01, NULL, Mk14Torpedo, 2, Mk18Torpedo, 4----was 2+2,
Mk27Torpedo, 1

[UserPlayerUnit 1.Compartment 5.Bunker 1] ; Forward Torpedo Room
ID=BowTorpedoRoom
Capacity=12-----was 10+2
IDLinkAmmunitionIntervalDefault1= NULL, 1941-11-01, Mk14Torpedo, 12----was 10 +2
IDLinkAmmunitionIntervalDefault2= 1941-11-01, 1944-06-31, Mk14Torpedo, 4, Mk18Torpedo, 4, Mk23Torpedo, 5----was 3 +2
IDLinkAmmunitionIntervalDefault3= 1941-11-01, 1944-12-31, Mk14Torpedo, 6, Mk18Torpedo, 4, Mk23Torpedo, 3----was 1 +2
IDLinkAmmunitionIntervalDefault4= 1941-11-01, NULL, Mk14Torpedo, 5, Mk18Torpedo, 8----was 6 +2
I checked my Gato file and it isn't anything like that one. Are you using 1.4 or 1.5 Clay?
I see mistakes with the numbers but the dates are kind of strange too, did you change them?

But for the numbers:
Look at the Stern bunker, you want 6 so 'capacity=6' good.
Now Default1 you have MK14=6 good.
Now Default2 you have MK14=4 and MK18=3 That's makes 7...too many,change one.
Now Default3 you have MK14=3 and MK18=4 That's 7 get rid of one.
Now Default4 you have MK14=2 and MK18=4 and MK27=1 that's 7. too many.

It is the same with the forward torpedo room, 2,3,and4 all have 13 torpedos. I don't know if that's what is causing the crash or if the game ignores the extra. I'm new at this modding myself.
Try changing them and if you still have a problem it is probably in the .sim with S3D and I could go in and set mine to 6 and 12 and if it works, I could post screen shots of what it should look like.

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 06-09-08, 12:22 AM   #14
clayp
The Old Man
 
Join Date: Mar 2007
Posts: 1,554
Downloads: 340
Uploads: 0
Thanks Peabody.let me try it when I get time tomorrow after doctor appointments with this info... I'm on 1.4 with my own mod..I changed the dates to reflect 1941 to work with my mod...
__________________
clayp

clayp is offline   Reply With Quote
Old 06-09-08, 01:00 AM   #15
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by clayp
Thanks Peabody.let me try it when I get time tomorrow after doctor appointments with this info... I'm on 1.4 with my own mod..I changed the dates to reflect 1941 to work with my mod...
Ok, then you shouldn't have the dates overlap, I don't think. Default1 should end and Default2 should pick up from that date to another.

Example;
Default1 1941-12-01, 1942-6-15
Default2 1942-6-16, 1942-12-25


First one ends 1942-06-15 and the next one starts the next day. This file you are editing is what is loaded on the sub if you don't select anything or if you play a single mission.
If you need 1941 for your mod you could make all the dates in 1941 as long as the torpedo is available in 1941. Like, Jan to March then March to June etc.
I think if they overlap like yours it just selects the first one, so the rest are really useless unless the dates are different. But it may also be causing the problem if you have a 1941 date and one torpedo isn't available until 1943.

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

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 06:01 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.