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 08-27-09, 12:20 PM   #1
Mithrandir
Bosun
 
Join Date: Sep 2002
Location: Roma, Italia
Posts: 64
Downloads: 199
Uploads: 0
S-18 class Bug solved?

Dear all,
I write this post to announce that it seems that I finally managed to solve a bug critical for the S-18 class submarine in SH4.
The fact that nobody before me have noticed this terrible bug (I searched a lot the forum but without any result) is clearly an indication that very few people use this old submarine class, so I think that my discovery will be of very low importance... Anyway it can be very useful for those people, like me, that still use it.
All started some time ago when, during a terrible surface combat between my S-18 and a Japanese destroyer, my Engine room was flooded and the diesel engines were damaged (not destroyed). I managed, in some way, to sink the destroyer and I started repairing my sub.
Diesel engines were repaired, the water pumped-out and the submarine was again shining new (except the hull that was damaged to a certain extent, of course!).
So I tried to return to base and... nothing, the sub was sitting in the water like a duck. All repaired but no propulsion power.
Furthermore, when I tried to submerge the sub sunk like a stone as when you have a compartment fully flooded, but all the water was pumped-out!!!
This situation was later experienced several times and all the times with the same result: need to reload a previous save.
I decided that it was necessary to find a solution...
Using S3ditor I discovered that the S-18 (the only sub with this bug) was also the only sub with a type 29 zone in the "subname.zon" file.
After reading a post on the forum on the zones in "subname.zon" file, I noticed that the effect of this zone is to stop propulsion in case of complete flooding of the parent.
This zone seems also not prone to repair and to water pumping, so is this zone that causes the bug.
I decided to remove the node of this zone from the zon file and I tested it in several combats (offering the stern to the enemy guns to let them hit the engine room): the sub behaviour in case of engine room damage and complete flooding was now perfect. The diesel engines can be damaged, repaired and destroyed and the sub, once repaired behaves normally for what concerns propulsion power and submerging.
More surprisingly: reloading one of the saved games with the sub struct in the ocean with no propulsion power after the engine room flooding, the problem disappeared and, after repairs it returned to sail perfectly!
Personally I think that the presence of zone 29 in the s18 class (only in the s18 class) is an error made when Ubisoft corrected a similar bug in all the other subs in one of their official patch.
May I ask if there is someone of you that still use the s-18 interested in testing this solution?
Bye,
Mith

Last edited by Mithrandir; 08-28-09 at 12:35 AM.
Mithrandir is offline   Reply With Quote
Old 08-27-09, 01:10 PM   #2
vickers03
Pooped from posting
 
Join Date: May 2007
Location: germany
Posts: 999
Downloads: 712
Uploads: 37


Default

good find keep on modding
vickers03 is offline   Reply With Quote
Old 08-27-09, 01:35 PM   #3
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 359
Downloads: 43
Uploads: 0
Default

I need to take a look at the S18 files to confirm something ..... the zone 29 SHOULD only have the effect you've found on a sub with one or two propellers .....I have used zone 29 in reverse on the TSWSM .... to provide ships with 3 damageable propulsion zones (many large ships had prot,starboard and centre turbine rooms)..... zone 29 will propell any propellers byond the first two, and will drive the first two regardless of whether or not zones 21 & 55 are present if there are two or less props (I think from memory) so if it gets flooded, it takes out all propulsion on a unit with two or less props. On a ship with four props ... it has the rather pleasant effect I was looking for for large capital ships.
polyfiller is offline   Reply With Quote
Old 08-28-09, 12:29 AM   #4
Mithrandir
Bosun
 
Join Date: Sep 2002
Location: Roma, Italia
Posts: 64
Downloads: 199
Uploads: 0
Default

polyfiller,
I agree with you on the utility of this zone for ships, but putting it on a sub is, in my opinion, a mistake... And a confirmation to this seems to be the fact that in all othes US subs in the game this zone is not present!

Bye,
Mith
Mithrandir is offline   Reply With Quote
Old 08-28-09, 06:41 PM   #5
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 359
Downloads: 43
Uploads: 0
Default

Yes, agreed ... it's a hangover from having "magic" zone number which impact the game in a way that can only be determined / changed via the main game engine code. Not sure if this was laziness on the part of the devs or a deliberate ploy to make modding difficult.

I know what my money would be on
polyfiller is offline   Reply With Quote
Old 08-29-09, 05:56 AM   #6
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Quote:
Originally Posted by polyfiller View Post
Yes, agreed ... it's a hangover from having "magic" zone number which impact the game in a way that can only be determined / changed via the main game engine code. Not sure if this was laziness on the part of the devs or a deliberate ploy to make modding difficult.

I know what my money would be on

could there be such "magic" or "evil" zone in the Uboot add-on ?

with the same numbers as the US zones my IJN Boats get damaged and sunk faaaar tooo easily.

could you take a look at my IBDM Polyfiller or maybe you already know ?

I know that Observer's uboot damage model uses fleetboat zones !

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 08-29-09, 08:23 AM   #7
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,900
Downloads: 135
Uploads: 52


Default

I wonder.... If a real submarine were damaged by gunfire, could they repair holes in the hull and submerge normally? If engines were hit by 5" shells from a destroyer, is there any chance that engine would ever work again, or would it need replacement?

I'd say the devs got it right on the S-18 and the OTHER subs are all bugged.

Just the same, great detective work and find. Keep up the good work!

By the way, Ducimus has performed some similar work in the developement of Trigger Maru Overhauled 1.7 and 1.8 beta. You might look into that. He's emphasized unhooking parent and child relationships to make systems more repairable. Since I don't do it myself you'd have to talk to him over at Submarine Sim Central to swap actual useful information and techniques.

I'm just a small time modder and cheerleader, not a pro.

Edit: fixed the link!

Last edited by Rockin Robbins; 08-31-09 at 12:00 PM.
Rockin Robbins is offline   Reply With Quote
Old 08-29-09, 08:55 AM   #8
GerritJ9
Sonar Guy
 
Join Date: May 2007
Location: Netherlands
Posts: 389
Downloads: 47
Uploads: 6
Default

I saw exactly the behaviour Mithrandir describes last night on an S-18 class, coincidentally- engines repaired (both diesels and electric motors), yet no propulsion at all and sank like a stone when diving to use the electrics.
While hull damage may well make diving impossible until repaired, it should be possible to motor away on the surface if the machinery is intact/repaired.
Whether engines actually could be repaired or not would depend on damage level- IRL, "Damaged" could mean replacing a cylinder head, liner, piston or bearing shells for instance. "Destroyed" could mean a broken crankshaft, piece blown from the cylinder block casting or some other terminal and irreparable damage.
Getting back to base might well prove impossible eventually if you are stuck in the middle of hostile territory and can't submerge though........ but at least you could try!
And yes, I'd very much like to test this fix!
__________________
Quamvis Patiens Acris

My SH3/SH4 mods: http://www.gamefront.com/files/user/GerritJ9
GerritJ9 is offline   Reply With Quote
Old 08-29-09, 11:33 AM   #9
pythos
Grey Wolf
 
Join Date: May 2005
Location: Somewhere over there
Posts: 834
Downloads: 46
Uploads: 0
Default

This is possibly a little off topic, but still deals with damaged subs acting more damaged than they appear.

It was my understanding that german subs could stay afloat, with one compartment flooded, and American boats two. But in SH4 if one compartment is flooded you sink like a stone.

Case in point. I got shelled and got my stern bulkhead destroyed, that resulted in this compartment flooding. I would think in real life that compartment would get closed off by watertight doors, and the boat would make way as best as it could to refuge, if not base.

In my case only the stern torpedo room was flooded no other. (The destroyer disappeared into the fog from whence it came and did not come back). I was dieseling along on the surface at flank, and effected repairs. Then my boat went down....bow first.

But the damage was in the stern.

I need to do more research about the compartment flooding, but if anyone knows can you provide answers?
pythos is offline   Reply With Quote
Old 08-29-09, 11:47 PM   #10
Highbury
The Old Man
 
Join Date: Oct 2005
Location: 51.557, -0.102
Posts: 1,311
Downloads: 177
Uploads: 0
Default

As my sig shows, I use the S-18s in pretty much all my Pacific careers I love the little thing. I'd be interested in looking at your fix.

If I may be so bold as to make a request, since you are poking around in S-18 files anyways... can you maybe try to figure out why it is the only sub in the game (or at least of all the ones I have tried, including modded U-Boats) that the radio does not cut out when submerged? It plays loud and clear no matter how deep.

Thanks!
Highbury is offline   Reply With Quote
Old 08-30-09, 08:57 AM   #11
ETR3(SS)
Ocean Warrior
 
Join Date: Dec 2007
Location: Between test depth and periscope depth
Posts: 3,021
Downloads: 175
Uploads: 16
Default

Quote:
Originally Posted by Rockin Robbins View Post
Your link seems a little...off

Quote:
Forbidden

You don't have permission to access /radioroom/Working alongside church planters, sponsor churches, and associations in Missouri to plant churches, Ken McCune knows the importance of a shared vision to reach people with the Gospel. Collaboration and teamwork are keys to discovering needs for new churches and the best people to plant them. Your commitment to reaching people through the Cooperative Program is also key for Ken and his wife, SHYRE, passionately pursue lost people living in Missouri. Your support helped equip Ken for this important ministry while he was in seminary and new enables him to carry out God’s call on his life. Please join Ken and Shyre in asking God to plant and raise up 10 healthy new churches in his area this year. on this server.
__________________


USS Kentucky SSBN 737 (G)
Comms Div 2003-2006
Qualified 19 November 03

Yes I was really on a submarine.
ETR3(SS) is offline   Reply With Quote
Old 08-30-09, 12:33 PM   #12
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Quote:
Originally Posted by ETR3(SS) View Post
Your link seems a little...off

here :

http://forum.kickinbak.com/viewforum...6957bb29d8c759

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 08-31-09, 07:46 AM   #13
Mithrandir
Bosun
 
Join Date: Sep 2002
Location: Roma, Italia
Posts: 64
Downloads: 199
Uploads: 0
Default

Hallo all,
I discovered another thing on the S-18.
It is the only sub in which the tag "is diesel-electric" in "subname.sim" is set to false. This is the reason why it recharges so slowly the batteries. Changed to true the recharge is much faster.

I would like to put the fix, JSGME-ready, on subsim forum for download, any suggestion on how to do this?

Bye,
Mith
Mithrandir is offline   Reply With Quote
Old 08-31-09, 08:27 AM   #14
ETR3(SS)
Ocean Warrior
 
Join Date: Dec 2007
Location: Between test depth and periscope depth
Posts: 3,021
Downloads: 175
Uploads: 16
Default

Quote:
Originally Posted by Mithrandir View Post
Hallo all,
I discovered another thing on the S-18.
It is the only sub in which the tag "is diesel-electric" in "subname.sim" is set to false. This is the reason why it recharges so slowly the batteries. Changed to true the recharge is much faster.

I would like to put the fix, JSGME-ready, on subsim forum for download, any suggestion on how to do this?

Bye,
Mith
There's two ways to do this. 1. You can give the file to someone with file uploading privileges for them to upload to the site or 2. you can go to the Downloads page and there is a link on the left side to "become one of the modmen" which is sending Neal a PM requesting upload ability.
__________________


USS Kentucky SSBN 737 (G)
Comms Div 2003-2006
Qualified 19 November 03

Yes I was really on a submarine.
ETR3(SS) is offline   Reply With Quote
Old 08-31-09, 11:59 AM   #15
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,900
Downloads: 135
Uploads: 52


Default

Quote:
Originally Posted by ETR3(SS) View Post
Your link seems a little...off
Now THAT's what I call "off!" Let's see if we can change that. Let's try Submarine Sim Cental. Testing...testing.....

It works!
Rockin Robbins 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 12:30 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.