SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   Having a problem (https://www.subsim.com/radioroom/showthread.php?t=137731)

clayp 06-05-08 05:04 PM

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?:damn:

LukeFF 06-05-08 06:26 PM

Your default dates are overlapping and conflicting with each other.

Ducimus 06-05-08 06:52 PM

Have to change the internal storage allowances in the sim file via S3D. Won't do anything but CTD until you do.

clayp 06-06-08 04:16 PM

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

Ducimus 06-06-08 05:25 PM

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.

clayp 06-07-08 03:01 PM

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

W4lt3r 06-07-08 03:30 PM

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)

clayp 06-07-08 09:12 PM

Thank you W4.....:D

clayp 06-08-08 12:35 PM

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....:damn: :damn: :damn: What the BLEEP am I doing wrong?????

W4lt3r 06-08-08 01:41 PM

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)

peabody 06-08-08 05:02 PM

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....:damn: :damn: :damn: What the BLEEP am I doing wrong?????

Clay, three head beats, you must be upset. :lol:
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. :lol:

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




clayp 06-08-08 10:18 PM

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....:D
:damn: :damn: :damn: :damn:

peabody 06-09-08 12:09 AM

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

clayp 06-09-08 12:22 AM

Thanks Peabody.let me try it when I get time tomorrow after doctor appointments with this info...:D I'm on 1.4 with my own mod..I changed the dates to reflect 1941 to work with my mod...

peabody 06-09-08 01:00 AM

Quote:

Originally Posted by clayp
Thanks Peabody.let me try it when I get time tomorrow after doctor appointments with this info...:D 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

clayp 06-09-08 08:45 PM

Peabody I'll try chanding the dates also..Didnt get anything done today due to the doctors appointments....

peabody 06-09-08 09:55 PM

Quote:

Originally Posted by clayp
Peabody I'll try chanding the dates also..Didnt get anything done today due to the doctors appointments....

Know what you mean, sometimes life gets in the way of fun.:lol: In fact I have a Dr appt. this Friday and it's the 13th, hope I make it through.
But we will get your stuff working somehow. I am new to this stuff too and I know how frustrating it can be sometimes. I looked for three days for one thing that just wouldn't work. Turned out to be a 1 where it should have been a 2 and I was looking in all the wrong places so I didn't see it.

Peabody

clayp 06-10-08 04:24 PM

Clayp waves the white flag....:damn: :damn: :damn: ..:down:

peabody 06-11-08 08:10 PM

Quote:

Originally Posted by clayp
Clayp waves the white flag....:damn: :damn: :damn: ..:down:

Sorry clay you can't, we don't take prisoners, we can't afford to feed them:lol:. It's possible that the torpedos you are trying to use are not available in 1941. I'm on 1.5 so I don't know if there is a difference.

So, if you have backups of the .upc file and the Gato.sim file we can try it slow and see if it works. Here are the files for the .upc, I made them 6 and 12. And at each interval the torps add up to 6 and 12. We will just set up to see if you get the extra torps first then worry about the dates and type of torpedo later.
So, put these files in the NSS_Gato.upc file in place of what you had. I just made the totals what you wanted but didn't put the dates as all 1941, only the first one and that is available from the beginning until 1943.

[UserPlayerUnit 1.Compartment 1.Bunker 1] ; Stern Torpedo Room
ID=SternTorpedoRoom
Capacity=6
IDLinkAmmunitionIntervalDefault1= NULL, 1943-12-31, Mk14Torpedo, 6
IDLinkAmmunitionIntervalDefault2= 1944-01-01, 1944-06-31, Mk14Torpedo, 3, Mk18Torpedo, 2, Mk23Torpedo, 1
IDLinkAmmunitionIntervalDefault3= 1944-07-01, 1944-12-31, Mk14Torpedo, 1, Mk18Torpedo, 1, Mk23Torpedo, 4
IDLinkAmmunitionIntervalDefault4= 1945-01-01, NULL, Mk14Torpedo, 4, Mk18Torpedo, 2


[UserPlayerUnit 1.Compartment 5.Bunker 1] ; Forward Torpedo Room
ID=BowTorpedoRoom
Capacity=12
IDLinkAmmunitionIntervalDefault1= NULL, 1943-12-31, Mk14Torpedo, 12
IDLinkAmmunitionIntervalDefault2= 1944-01-01, 1944-06-31, Mk14Torpedo, 3, Mk18Torpedo, 4, Mk23Torpedo, 5
IDLinkAmmunitionIntervalDefault3= 1944-07-01, 1944-12-31, Mk14Torpedo, 5, Mk18Torpedo, 4, Mk23Torpedo, 3
IDLinkAmmunitionIntervalDefault4= 1945-01-01, NULL, Mk14Torpedo, 4, Mk18Torpedo, 8

OK, now the fun part Silent 3ditor.

Open S3d
Load the NSS_Gato.sim

When you have the .sim file open like this:
1. Click the plus sign beside wpn_SubTorpedoSys
2. Select the one that is highlighted in blue below.
3. Click the plus signs on the right side, this is where you need to work.
4. The tubes MUST stay at 10 because you have 10 tubes, this is NOT the storage area. So if you have more than 10 on the tubes you have to click the plus sign and select the extras and delete them.
5. Where you want to be is "Rooms"
http://home.roadrunner.com/%7Epeabody/SH4/clay.jpg

Next pic below:
1. Rooms is where you add the extra storage
2. You want "Storage" to be 12 (0 through 11).
3. If it is "Storage [10] then Right Click on Storage and select "Add Array Item"
That will give you [11] Do it again and it will give you "Storage[12]" and you are done with the 'Fore'
http://home.roadrunner.com/%7Epeabody/SH4/clay2.jpg

Now go to Aft:
1 On this one I put in too many to show you what to do.
2. It says "Storage[7]" but notice the last one is number 6. But because it starts at zero and not 1 there are 7 and you only want 6.
3. So if you have too many, select the last one and either hit the 'delete' key on your keyboard or you can select the last one and RIGHT CLICK and select "Remove Array item" from the menu.
That was only to show you what to do if you add too many. Step four below is what it really shoud be when you open it, if you haven't made any changes. And this is the same way you would remove tubes if you made a mistake and added the storage in the "Tube" section by mistake and need to get rid of them. And to show you that even though the last one is [6]=I there are really 7 of them and that's one too many. Just remember the number in "Storage[6]" is what you want to be right.


4 If Aft storage says [4] then you do the same as above. Select "Storage[4]" Right click and pick 'Add Array Item' that will make 'Storage[5], do it again and you have 'Storage[6] which is what you want.

http://home.roadrunner.com/%7Epeabody/SH4/clay3.jpg

NOW the most important part, don't forget to save it. Same as any other program: File, Save.

When you are finished:
The Tube should be Tube[10]

Fore/Storage should be Storage[12]
Aft/ Storage should be Storage[6]


I hope this helps get you where you are headed. If you get it to work and it doesn't crash, go to the torpedo room on the sub and see if you actually have 12 and 6. Then if you need to work on changing dates we can do that next.

Peabody

clayp 06-11-08 08:29 PM

Gee Peabody I dont know what to say..THANK YOU..isnt enough...:up: I will work on this tomorrow...It was really frustrateing me and thats bad for my health..:yep: I'm not as sick as Dave was but pretty close...


All times are GMT -5. The time now is 06:40 PM.

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.