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)
-   -   [WIP] Improved Ship Physics (https://www.subsim.com/radioroom/showthread.php?t=211235)

SilentPrey 06-17-15 12:50 AM

Quote:

Well, the stock scene.dat file from SH3 has smaller waves than what I usually use. The main point of interest is that in SH3 a sub will pitch and roll as you submerge, even to periscope depth or deeper. I took a type VIIb down to 25 or 30 m and there was still a little movement. I couldn't go deeper as the water was shallow. With the same scene.dat file in SH4 (using a S-18) the boat ceases to pitch or roll, very soon after you dive. It seems to stop between 26 and 30 ft., and after that, it is like being on rails. This is true, even when the waves are very large, and the shears/tower are periodically exposed - very unrealistic.
It sounds like Ubi didn't convert from metric to imperial and just used 25-30 for both when setting max depth for wave effect. In meters it's right, in feet it's far too shallow.

TorpX 06-17-15 01:01 AM

No, that's not it.

In sh3 the wave influence seems to gradually lessen. In sh4 it just stops below the surface. The difference is dramatic.

I've tried changing many factors to improve it, but it seems to be a hard coded thing.

Btw, in SHCE it worked quite well too. I remember if you had to make a high speed sprint underwater, in rough seas, in SHCE you had to go down to 90 or 100 ft. move fast, then come up to p/s depth to make an observation. Of course, SHCE was a simpler game; there were only 3 sea-states; but at least they got them right.



Hitman 06-17-15 10:30 AM

Quote:

With the same scene.dat file in SH4 (using a S-18) the boat ceases to pitch or roll, very soon after you dive. It seems to stop between 26 and 30 ft., and after that, it is like being on rails. This is true, even when the waves are very large, and the shears/tower are periodically exposed - very unrealistic.
Ah I see. So the SH3 scene.dat did not work. I don't think it is there, in any case, as it just controls what the sea looks like, but not how the units react to it. Must be elsewhere. Have you checked if the UBoats in Operation Monsoon also stop rocking at peri depth? If the parameters in them were directly copied over and they stop rocking then it's clearly something in the Unit's configuration and the scope of your search is much narrower. If not, then it's probably hardcoded and lost in the transition to SH4, as you suggest.

Quote:

Does anyone know how to add boxes/slots in the crew page?
That must be in the menu-ini, which controls what you see in the GUI, including slots in the sub crew management screen. You will have both to create the graphical slot and to tell the game what it is, should easy by just copying the entries of an existing slot. Placing it might be a bit of trial and error, though.

You can compare the RFB menu-ini with the stock one to see where it was added.

aanker 06-17-15 01:39 PM

Quote:

Originally Posted by Hitman (Post 2321844)
...... then it's probably hardcoded and lost in the transition to SH4, as you suggest.

Quote:

Does anyone know how to add boxes/slots in the crew page?
That must be in the menu-ini, which controls what you see in the GUI, including slots in the sub crew management screen. You will have both to create the graphical slot and to tell the game what it is, should easy by just copying the entries of an existing slot. Placing it might be a bit of trial and error, though.

You can compare the RFB menu-ini with the stock one to see where it was added.

If you just want boxes, here is Crew Berthing. For example, to add Crew Berthing to the NARWHAL crew screen, this worked:

\Data\Submarine\NSS_Narwhal\NSS_Narwhal.upc

[UserPlayerUnit 1.Compartment 6] <----- need to insert and change numbers for 7, 8, etc
CompartmentType= 2
StatusActive= No
ID= GatoCrewBerthing <----------------------------- points to valid ID
NameDisplayable= Crew Quarters
Type=NULL
FunctionalType= SensorsRoom
MechanicalCoef= 0 ;0..1
ElectricsCoef= 0 ;0..1
GunsCoef= 0 ;0..1
WatchmanCoef= 0 ;0..1
WatchStandingCoef= 0.048
MaintenanceCoef= 0.0144
RepairsCoef= 0.072
ReloadingweaponCoef= 0.072
SleepCoef= -0.12
LeadersSlots=0
CrewMembersSlots= 10 <------------------------------- 10 boxes
EffciencyDenominator=5
EffciencyDenominatorBS=5
Hitpoints=200
CrewExposure=0.075
EquipmentsExposure=0.1
WeaponsExposure=0.1
ExternalDamageZoneTypeID3D= -1
DamageDescription1= NULL, 0, 1, 0, 1, 1, No Damage, 0, 0, NULL, 0, 0, 0


------- Toward bottom:
[UserPlayerUnit 1.FunctionalSubsystem 38] <----- may need to change number
ID= CrewBerthing
NameDisplayable= Crew Quarters
FunctionalType= CrewMembersGrouping
IDLinkFunctionalSubsystemSlots= CrewMemberSlot_BerthingC1, 0,CrewMemberSlot_BerthingC2, 0,CrewMemberSlot_BerthingC3, 0,CrewMemberSlot_BerthingC4, 0,CrewMemberSlot_BerthingC5, 0,CrewMemberSlot_BerthingC6, 0,CrewMemberSlot_BerthingC7, 0,CrewMemberSlot_BerthingC8, 0,CrewMemberSlot_BerthingC9, 0,CrewMemberSlot_BerthingC10, 0

-----------

\Data\Submarine\NSS_Narwhal\NSS_Narwhal.upc

It adds a Crew Berthing section which serves no purpose as in RFB, but does provide extra space for sorting crew and a convenient place to put deceased crewmen until reaching Port if something terrible happens while on patrol. (Their loved ones will appreciate it too)

Unlike Damage Control there is no Leader.
------

Maybe there can't be more than 12? S-42 has 12, with 3 leaders and 9 crew. Gato has - 0 leaders and 12 crew. May need to experiment.

If this is not what you want/need, I'll delete it so it doesn't clog this topic.

TorpX 06-17-15 11:18 PM

Quote:

Originally Posted by Hitman (Post 2321844)
Ah I see. So the SH3 scene.dat did not work. I don't think it is there, in any case, as it just controls what the sea looks like, but not how the units react to it. Must be elsewhere. Have you checked if the UBoats in Operation Monsoon also stop rocking at peri depth? If the parameters in them were directly copied over and they stop rocking then it's clearly something in the Unit's configuration and the scope of your search is much narrower. If not, then it's probably hardcoded and lost in the transition to SH4, as you suggest.



I hadn't thought to try this. Sometime I'll give it a go.





Quote:

Originally Posted by aanker (Post 2321898)
If you just want boxes, here is Crew Berthing. For example, to add Crew Berthing to the NARWHAL crew screen, this worked:




------- Toward bottom:
[UserPlayerUnit 1.FunctionalSubsystem 38] <----- may need to change number
ID= CrewBerthing
NameDisplayable= Crew Quarters
FunctionalType= CrewMembersGrouping
IDLinkFunctionalSubsystemSlots= CrewMemberSlot_BerthingC1, 0,CrewMemberSlot_BerthingC2, 0,CrewMemberSlot_BerthingC3, 0,CrewMemberSlot_BerthingC4, 0,CrewMemberSlot_BerthingC5, 0,CrewMemberSlot_BerthingC6, 0,CrewMemberSlot_BerthingC7, 0,CrewMemberSlot_BerthingC8, 0,CrewMemberSlot_BerthingC9, 0,CrewMemberSlot_BerthingC10, 0

-----------

Yes, that is the part I forgot.

I played around with the sleep coefficient and a few of the others. I can't make the men sleep more, but I can make the sleep more refreshing (if that is helpful). I could make the 'maintenance' duty reduce fatigue like sleep, but there is a drawback, as they will get to the point of having negative fatigue, if left in there too long. I'll have to think about this. I would like to give the player the option of being able to rest a few of the men, even while at GQ. This could be helpful in a long engagement. I guess it is a minor point, though.



TorpX 08-22-15 10:24 PM

There have been comments recently to the effect that ISP, and other physics mods are harmful to convoy integrity. I decided to test this notion, and see if there is anything to be learned.



First, I created a mission for the purpose. I put together a 12 ship merchant convoy. The convoy 'leader' is a large minelayer (not actually a merchant), the other 11 are an assortment. No real small or large ships. The biggest is a large old liner. I put a lot of 'old' ships in it, the idea being these might have more trouble keeping up. All the merchants have novice crews, all the DD's normal crews.

Additionally, there are 4 escorts, one ahead, one on either beam, and one astern. The rear escort is a small minesweeper, all the others are DD's.

The arrangement is 3 columns of 4 ships. There is about 500 yds. in between ships in a column, and about 1,000 yds. between columns. The escorts were placed about 3,000 yds. outside the convoy, but wonder around a lot, so I'm not sure it matters where we place them.

I had them follow a large rectangle, but instead of having them make 90° turns at the corners, I used two 45° turns spaced about 5 nm apart. I have doubts as to their ability to make sharp, or frequent turns. The weather is a little choppy, with 6 m/s wind. The mission starts at 0800.



Test #1

The date is Nov. 7, 1941, so the USN and IJN are still on speaking terms. I am using RFB and RSRDC with the required patches. I believe that these mods use 'stock' physics, and you would get the same results in stock, but I wanted to make sure the ships were the same.

The convoy starts out in good order and apart from one of the DD's almost smacking into me, not much happens. I do notice the Wakatake and Matsuki DD's look somewhat unstable, rolling more than they should. Could be a problem in heavy weather.

I use 32x TC for most of the time, going to 1x to examine the ships from time to time. In the turns, I notice they use an odd technique. One ship, the medium old comp. fr. looses it's place twice, not clear why. It then tags along, at the rear of the column, until eventually finding it's way back to it's proper place.

In spite of these minor issues, the convoy ships keep station pretty well. I can't follow them after dark very well, but when I spot them again, they look to be in good formation. My boat actually collides with one in TC, and makes a lot of nasty racket. I threw engines in reverse and the merchant gets back to the convoy. We have no damage and apparently they don't either.



Test #2

Same set up as above. In this one I pull ahead out of sight, submerge and ambush convoy with a salvo of 4 torpedoes. This with auto-targeting. Range was about 8,000 yds. and I used 1/2° offset angle. I aim at two ships in the far column, from long range (i.e. low speed). One of the first two hit, the others miss. The convoy looks disordered for a while, but goes on, intact. The one ship sinks.

After a short time, I fire another volley of 4, at two other ships. Two ships are hit (1 hit apiece), but not the ones I targeted. One sinks quickly, the other struggles on for 30 min. or so, before it too, sinks. The convoy stayed together.

The oddest part was how little the DD's attempted to interfere. One DD (at front) worked it's way back through the convoy, as if it was trying to locate a sub inside the convoy. However, there were no ship collisions. I couldn't follow the evasions of the individual ships, but it was obvious they detected the torps and attempted to evade.



Tomorrow, I'll repeat the tests with ISP.

TorpX 08-24-15 01:15 AM

More Tests
 
Test #3

This is like #1, but with ISP.

For the most part, the convoy is ok. The Wakatake DD goes back into the convoy, tries to move in between ships in the middle column, it doesn't time the move well, and has to back to keep from hitting. This happened twice, until finally at the rear of the convoy it turns into the space between the next 2 columns.

One ship, the med. old comp. freighter looses it's place at the second turn. It seems like ships have a chance to 'loose their place' at a turn. When they do they meander around, and will usually get back sooner or later. This happened without ISP as well.



Test #4

Same as test #3.

Here I make a long range torpedo attack, like in #2.

1 torp hits and convoy is highly disrupted. Ship sinks. It seemed still shaky after 1 hr. and was almost back in good order after 1.5 hrs.




Test #5

Using only RFB and RSRDC.

I start submerged and ambush convoy with 4 torps.

I target minelayer (which is convoy leader). Two hit and it sinks promptly. Convoy is very disordered. After 1/2 hr. it looks better, but one ship is far outside convoy. After 2 hrs., it is in a good state, but one ship still not in the right place. There seems to be a certain individual factor involved. Some ships seem to become 'confused' either in a turn or in an attack.





Test #6

Same as #5, but with ISP.

Of 4 torps, one hits and sinks minelayer.

There is much disruption, but convoy is more or less reformed after 1/2 hr. The large old passenger is way out in front about 3,000 yds. At first I thought this was just panic or bad seamanship. On closer examination, I realize the Hog Island is in it's place. It seems that places can change after an attack and two ships will be jockeying for a position in convoy. This may be a bug in AI. No way to know for sure. Overall, the convoy recovered well, within a half hour.


Conclusions:

In normal operation (no attack), I don't see any difference with ISP and 'normal' mods. Certainly, either way they keep station well. Turns are somewhat of a challenge, but for the most part they do ok. Sometimes, ships will loose their place, but I don't see it as a major problem, and, in any case, it happens either way.

In an attack, a high level of disruption is likely, with or without a physics mod. I can't say if it takes longer for them to recover with ISP or not. On the basis of these few tests, it seems like it's matter of chance. In no case did a convoy break up, but if one is attacked, it seems likely they will continue with a somewhat altered organization.

I don't see any reason for SH4 players to forgo a good physics mod, think that ISP or any other mod is going to harm convoys. Convoys will react to threats and become disrupted either way.

I made a bunch of screen shots, but frankly, they don't really tell any more than what I can say here. Maybe I'll post a few later. Possibly, a denser convoy would have some real trouble (collisions and such), but I think that is something to be fixed on that end.


Admiral Halsey 08-24-15 11:11 AM

Would it be possible to release a version of this without the changed weather effects? It's a good mod but I'm getting a bit tired of my sub plodding along at only 4 knots at flank during a storm.

Rockin Robbins 08-24-15 01:22 PM

Quote:

Originally Posted by TorpX (Post 2338994)
Test #3

This is like #1, but with ISP.

For the most part, the convoy is ok. The Wakatake DD goes back into the convoy, tries to move in between ships in the middle column, it doesn't time the move well, and has to back to keep from hitting. This happened twice, until finally at the rear of the convoy it turns into the space between the next 2 columns.

One ship, the med. old comp. freighter looses it's place at the second turn. It seems like ships have a chance to 'loose their place' at a turn. When they do they meander around, and will usually get back sooner or later. This happened without ISP as well.



Test #4

Same as test #3.

Here I make a long range torpedo attack, like in #2.

1 torp hits and convoy is highly disrupted. Ship sinks. It seemed still shaky after 1 hr. and was almost back in good order after 1.5 hrs.




Test #5

Using only RFB and RSRDC.

I start submerged and ambush convoy with 4 torps.

I target minelayer (which is convoy leader). Two hit and it sinks promptly. Convoy is very disordered. After 1/2 hr. it looks better, but one ship is far outside convoy. After 2 hrs., it is in a good state, but one ship still not in the right place. There seems to be a certain individual factor involved. Some ships seem to become 'confused' either in a turn or in an attack.





Test #6

Same as #5, but with ISP.

Of 4 torps, one hits and sinks minelayer.

There is much disruption, but convoy is more or less reformed after 1/2 hr. The large old passenger is way out in front about 3,000 yds. At first I thought this was just panic or bad seamanship. On closer examination, I realize the Hog Island is in it's place. It seems that places can change after an attack and two ships will be jockeying for a position in convoy. This may be a bug in AI. No way to know for sure. Overall, the convoy recovered well, within a half hour.

Conclusions:

In normal operation (no attack), I don't see any difference with ISP and 'normal' mods. Certainly, either way they keep station well. Turns are somewhat of a challenge, but for the most part they do ok. Sometimes, ships will loose their place, but I don't see it as a major problem, and, in any case, it happens either way.

In an attack, a high level of disruption is likely, with or without a physics mod. I can't say if it takes longer for them to recover with ISP or not. On the basis of these few tests, it seems like it's matter of chance. In no case did a convoy break up, but if one is attacked, it seems likely they will continue with a somewhat altered organization.

I don't see any reason for SH4 players to forgo a good physics mod, think that ISP or any other mod is going to harm convoys. Convoys will react to threats and become disrupted either way.

I made a bunch of screen shots, but frankly, they don't really tell any more than what I can say here. Maybe I'll post a few later. Possibly, a denser convoy would have some real trouble (collisions and such), but I think that is something to be fixed on that end.

A fine test! Convoy disruption after attack looks like it's hard coded then, as stock convoys are disrupted for the same amount of time. Personally, none of the convoy behaviors in any of the physics mods would keep me from using one. I'm using one now with GFO and play has been really good with it.

I'll get back to my TMO game and try yours out next. Good show!

TorpX 08-24-15 10:29 PM

Quote:

Originally Posted by Admiral Halsey (Post 2339125)
Would it be possible to release a version of this without the changed weather effects? It's a good mod but I'm getting a bit tired of my sub plodding along at only 4 knots at flank during a storm.

Easily accomplished!

Just disable ISP, open it up, and take out the scene.dat file. All weather/wave changes are in that.

I hope people are using the ISP 2.x patch. If you install it and follow the instructions, you should have more bearable weather. Or, you can follow the above procedure, and have normal/vanilla weather.

Quote:

Originally Posted by Rockin Robbins (Post 2339181)
A fine test! Convoy disruption after attack looks like it's hard coded then, as stock convoys are disrupted for the same amount of time. Personally, none of the convoy behaviors in any of the physics mods would keep me from using one. I'm using one now with GFO and play has been really good with it.

I'll get back to my TMO game and try yours out next. Good show!

Thank-you.

Typical convoys may be crammed into a smaller space than the one I crafted. This could make for messier attacks, but I'll leave that to others to test or discover.

I was going to do a naval TF, but I figure if a merchant convoy can hold together, a TF should do at least as well.


Btw, the spacing I used was diagramed in Roscoe's U.S. Destroyer Operations of WWII. I consider it to have worked well.





************************************************** ******

I did notice what seemed odd about the convoy turning style/method, that is worth mentioning. It could be useful to anyone who is changing or developing a SH campaign. This occurred with or without ISP.

We might assume the convoys ships in a column would turn simultaneously, but they didn't do that.

We might think the lead ship in a column would turn, and the following ships would simply turn the same way, as they reached that point in space, where the first turned. They didn't do that either.

What happens is that the first in column will turn, and the following ships will turn to different angles, in such a way that the 'tail' of the convoy will swing out. This makes for a jumbled appearance, if one views it while it is in process. Below is my drawing of what it looks like:

http://i1130.photobucket.com/albums/...ps8lm6zie0.png


Looking at the left column (the inside column), one can see the leading ship at the new course, the 2nd at a lesser angle, the 3rd and 4th actually turning in the opposite direction! It looks messy, yet seems to get the job done. I think the inside column tends to be jumbled more than the others. (If the ships are jammed very tight into the convoy, it could lead to difficulties.)

If anybody knows about convoy procedures, and can shed some light on this, don't hesitate to help us out.


Crannogman 08-24-15 10:57 PM

Seems a pretty rudimentary system - the formation geometry is based on the lead ship, and changes immediately when that ship turns. Thus, ina longer formation, the lead ship's turn to the left means the column now stretches off the right.
I remember a similar pattern from Destroyer Command; I would often take my squadron through a series of formations (column, echelon, column/abreast) to keep the individual ships in the position I wanted while turning. I guess the devs never saw a reason to mess with it.

Admiral Halsey 08-25-15 12:39 PM

Quote:

Originally Posted by TorpX (Post 2339322)
Snip

Thanks didn't know it was that easy and yes i'm using the patch as well. I use it with TMO so the weather is already more weathery then stock.

Captain Dave 08-25-15 06:13 PM

This looks like the Hook and Ladder Firetruck turn. The guy steering the rear wheels has to turn opposite of the front to end up in the same lane. While none of the ships are connected, the principle looks the same.


http://i1130.photobucket.com/albums/...ps8lm6zie0.png

TorpX 08-25-15 09:53 PM

Quote:

Originally Posted by Crannogman (Post 2339324)
I remember a similar pattern from Destroyer Command; I would often take my squadron through a series of formations (column, echelon, column/abreast) to keep the individual ships in the position I wanted while turning. I guess the devs never saw a reason to mess with it.

Yeah, makes sense.

Quote:

Originally Posted by Captain Dave (Post 2339620)
This looks like the Hook and Ladder Firetruck turn. The guy steering the rear wheels has to turn opposite of the front to end up in the same lane. While none of the ships are connected, the principle looks the same.


Ah, that's an interesting comparison.





Johnners 09-01-15 01:31 PM

"Battery Expert" sleeping on duty?
 
Hi Torpex, and thanks for your great mod.

I hope I'm not asking a dumb question, but after a prolonged period of running submerged and returning to the surface, I went to move the "battery expert" to an other compartment while the battery recharged (as per instructions), only to find him apparently sleeping (little z's above his icon) while the rest of his watch were still active. Is this usual and does he still need to be moved, our should I have him keelhauled for slacking off???


All times are GMT -5. The time now is 12:19 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.