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-24-18, 09:41 AM   #1
Squashman
Swabbie
 
Join Date: May 2018
Location: Liverpool UK
Posts: 9
Downloads: 536
Uploads: 0
Default

Quote:
Originally Posted by Squashman
Hi to the FOTRS development team
I would first like to thank you all for this magnificent work - the sheer scope of the submarine, surface and air components is nothing short of outstanding.
I am particularly interested in producing missions that depict historically accurate naval actions. Now with the large range of warships available in FOTRS, this has become so much easier.
Currently I am trying to make the Naval Battles of the Guadalcanal Campaign:-
The Battle of Savo Island
The Battle of Cape Esperance
The First Naval Battle of Guadalcanal
The Second naval Battle of Guadalcanal
The Battle of Tassafaronga

The game AI actually copes quite well with the demands of the surface ship tracks as they manoeuver within the historical requirements for the tactics of the battles.
One thing, however, is currently hard to incorporate and that is the range at which Japanese torpedoes are fired.
As you are no doubt aware, it was the long range salvoes of Japanese Long Lances that was most often so devastating for the US cruisers.

Would it therefore be possible to produce a mod that could variably increase the maximum firing range of Japanese (or all) AI from its current 1,400 yds up to say 4,000 to 6,000 yds. Alternatively is there a way a player can do this themselves, by altering the files of individual AI units?
Very best wishes to all


The info is not at my fingertips, but it is discussed several (dozen??) pages back in this thread about how it was done for v0.71. You can also look at the "guns" used on the ships and as to the "why". The problem with the torps is the lack of any semblence of accuracy with them. When the torpedoes are shot, they are aiming for where the target is, ~not~ where it will be. Therefore, FotRSU has the range moved in much closer. There are all sorts of discussions on the actual "effectiveness" of the Long Lance, and from all indications, the Guadalcanal area was "special" in that regard, due to the general lack of maneuverability among the islands (one reason carriers weren't in there too often). In other areas, the "hit" percentage was quite low for the Long Lance - in fact, inflicting damage on their fellow sailors at a higher percentage than the enemy at times. While they definitely influenced the outcome of most of the major battles in the Guadalcanal area, it is extremely difficult to get the AI and the torpedoes in the game to co-operate with you. I would imagine that this could be one reason the devs seemed to have made some of the Japanese ships "stronger" than they actually were, and the USN ships weaker, so that the battle outcomes would "balance out" overall... I'll say this (again), if you can get the torpedoes to "lead" a target, like a torpedoman had actually "aimed" it and then shot it, you would be a most famous modder, known the world over...

Edit: OK, found the release notes, back before P400 ( ) http://www.subsim.com/radioroom/show...85#post2554685

I was thinking that CapnScurvy had an excellent write-up on the torps just before that, but I haven't found it yet...

2nd Edit: OK, much further back than I thought: http://www.subsim.com/radioroom/show...39#post2526839 post 5463 for the AI subs and torpedoes, and the further down on that page is Post 5475 with the ships. The pictures are missing, so that might be why I can't find the other one with the gun discussion, along with the change in range used... If there aren't pictures, I kinda get glassy-eyed and doze... Somewhere between those points is the post I'm thinking of (I think - therefore I am, I think)...
Thanks, I very much appreciate the reply - Sorry, I'm somewhat of a noobe, albeit an aging one and have only really got into combat sims since retiring. I have practically no modding skills apart from some mapmaking in IL2, but am always willing to try and learn something. I really enjoy mission building and hope to release the Guadalcanal series, before long.

By the way - what has been achieved already with the AI ship torpedoes is absolutely marvellous - It's fascinating to watch the salvos speeding towards their targets with the free camera - and actually the hit rate can be surprising good.
I'll try investigating and tinkering with the "guns" files and do some testing.
Thanks again

Last edited by Squashman; 08-24-18 at 09:53 AM.
Squashman is offline   Reply With Quote
Old 08-24-18, 12:45 PM   #2
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

Quote:
Originally Posted by Squashman View Post
Thanks, I very much appreciate the reply - Sorry, I'm somewhat of a noobe, albeit an aging one and have only really got into combat sims since retiring. I have practically no modding skills apart from some mapmaking in IL2, but am always willing to try and learn something. I really enjoy mission building and hope to release the Guadalcanal series, before long.

By the way - what has been achieved already with the AI ship torpedoes is absolutely marvellous - It's fascinating to watch the salvos speeding towards their targets with the free camera - and actually the hit rate can be surprising good.
I'll try investigating and tinkering with the "guns" files and do some testing.
Thanks again
Be careful with the gun files, your more than likely to not get the torpedoes to fire at all when messing around there.

To have the AI Torpedoes fire at longer distances, you simple need to change the Data/Cfg/Sim.cfg files, [AI AA guns] "MaxFireRange=1400" to something else. The only problem with that is ANY/ALL AA guns that are working in-game will do the same. You set it to 7000 meters.....the 50 cal machine gun will detect and fire at the distance. Not a great idea for all AA type guns.

A better solution is to go into each "TorpGun" and change its designation from an "AAGun" to "Cannon". Then the Torpgun would fire as the larger Cannons do, at whatever the Data/Cfg/Sim.cfg, [AI Cannon] "MaxFireRange=" distance is set there.

The place to make the switch is in the Library/ShipParts/whichever "TorpGun" you choose and open the .sim file to the Wpn_Cannon/Obj_Turret/Type= designation. Change the designation from "AA Gun" to "Cannon" and the gun model uses the Cannon distance.

But, lets be clear here......The further away a target is from the firing gun, the less likely you'll even remotely come close to hitting what the gun aimed at!! Unlike the shells that travel at high speeds, the torpedo can't do it and reach a target that it aims at! Without the torpedo "visual" that makes some of the "full effect" of the torpedo traveling through the water, you'll miss some of the value of the torpedo. AND, without having the torpedo fire at relatively close range, you're just spraying the water with torpedoes, with little effect.

And, I wouldn't be surprised to find the torpedo couldn't reach the target at longer distances anyway without it slowing down, and/or, sinking to depths that would be ineffective. You've seen the "gravity pull" the game physics have on shell's fired at longer ranged targets? The AI_torpedoes will do the same.
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"
CapnScurvy is offline   Reply With Quote
Old 08-29-18, 06:04 PM   #3
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,710
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by CapnScurvy View Post
The place to make the switch is in the Library/ShipParts/whichever "TorpGun" you choose and open the .sim file to the Wpn_Cannon/Obj_Turret/Type= designation. Change the designation from "AA Gun" to "Cannon" and the gun model uses the Cannon distance.
scurvy,
i took your suggestion above and attempted to apply it to the Opmonsun mod for the XXI boats which have only 20mm/30mm turrets.

when i changed the turrets in C:\Ubisoft\SilentHunter4\Data\Library\GerSubParts\ Deck_Gun_GE20mm_Turret.sim

from AA to Cannon, CTD, every time.

so, i backed off that change and went on my merry way.
did i miss something in your explanation?

thanks.
mb



mb
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 08-30-18, 06:41 AM   #4
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default nd the AA

Quote:
Originally Posted by mark bonamer View Post
scurvy,
i took your suggestion above and attempted to apply it to the Opmonsun mod for the XXI boats which have only 20mm/30mm turrets.

when i changed the turrets in C:\Ubisoft\SilentHunter4\Data\Library\GerSubParts\ Deck_Gun_GE20mm_Turret.sim

from AA to Cannon, CTD, every time.

so, i backed off that change and went on my merry way.
did i miss something in your explanation?

thanks.
mb
My TorpGun (which fires a Torpedo) could be different for several reasons than the "Deck_Gun_GE20mm" you're referring to. Ammunition could be a factor; needing to change the ships .dat file? I don't know?? I'm not familiar with all possible gun parameters. I know what the Torpgun gun does because I worked with it for a solid 6 months to get it to do what it does. Changing the Obj_Turret "Type" seems a doable thing to do for the Torpgun…...may not work for every other gun without further modifications.
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"
CapnScurvy is offline   Reply With Quote
Old 08-30-18, 08:04 AM   #5
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,710
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by CapnScurvy View Post
My TorpGun (which fires a Torpedo) could be different for several reasons than the "Deck_Gun_GE20mm" you're referring to. Ammunition could be a factor; needing to change the ships .dat file? I don't know?? I'm not familiar with all possible gun parameters. I know what the Torpgun gun does because I worked with it for a solid 6 months to get it to do what it does. Changing the Obj_Turret "Type" seems a doable thing to do for the Torpgun…...may not work for every other gun without further modifications.
ok. thanks for explaining that. i did not realize that the TorpGun was a very specific weapon.
so, let me re-phrase my quest: if i wanted to use my turrets for antiship cleanup and i wanted the CrewAI to be effective, how would i modify the turret gun file (s)?
the guns would have to have their range extended a bit and the ammo would have to be beefed up a bit but the challenge is getting the CrewAI to control the weapon and actually fire on a ship vs a plane.
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 08-30-18, 11:29 AM   #6
CapnScurvy
Admiral
 
CapnScurvy's Avatar
 
Join Date: Apr 2005
Location: Dayton, Ohio
Posts: 2,292
Downloads: 474
Uploads: 64


Default

Quote:
Originally Posted by mark bonamer View Post
ok. thanks for explaining that. i did not realize that the TorpGun was a very specific weapon.
so, let me re-phrase my quest: if i wanted to use my turrets for antiship cleanup and i wanted the CrewAI to be effective, how would i modify the turret gun file (s)?
the guns would have to have their range extended a bit and the ammo would have to be beefed up a bit but the challenge is getting the CrewAI to control the weapon and actually fire on a ship vs a plane.
So, you've got a gun that won't fire in a certain direction (in this case, down to the water level). You want it to fire at objects lower than the higher plane targets? I'm assuming you would like it to fire at both.

I'm going to use a Stock game unit as an example:

First off, find the particular AA gun you're wanting to modify. I chose the A04 from the Kongo and use the .dat files ID: of the A04 gun to locate it in the Kongo's .sim file (happens to be at Node-14 in the .sim file):



You're interested in having the gun aim down to the waterline. So the "Elevation" parameter reads Min=0.0; Max=90.0. The Minimum value is how far "Down" the gun turret on the Kongo will go; the Maximum value is how far "up" it will elevate. At these values, the Kongo's turret for this particular A04 will go down to the water line and up directly overhead.....we're good here!

But, now you want to find the gun the Kongo uses in this particular A04 slot, so you need to see what gun does it equip for the A04 slot?

Go to the Kongo's "Equipment" file and find the "NodeName=A04" equipment section:



The "LinkName=5in_AA_Double_base_JP" gives you the particular gun to look for. You need to find IT in order to make sure the gun will use the "Elevation" the Ship states it want's to use.

With the Stock game it's easy to find the particular gun you're looking for (there mainly found in the "guns_radars.dat" file). With mods, a particular gun may be in any .dat file (usually found in the Library folder)?



Again, follow the guns ID: over to the corresponding .sim file and you'll find the particulars for the gun in question. As this shows, the "Elevation" for the 5in_AA_Double_base_JP is "Min= -7.0"; Max= 90. So, the gun itself will point Down to less than a 90 degree angle.....7 degrees below the perpendicular water line; and will point straight up 90 degrees.

This gun will fire as you wish it to (from straight up, to perpendicular to the water line), within the constraints of the other axis of the gun (the "Traverse" part of things).

My thoughts on what settings to use is to have the particular wpn_Cannon follow a zero to 360 Traverse setting; with the Elevation to be 0.0 to 90.0.

Then, in the ships obj_turret parameters you set the amount of Traverse or Elevation as you want for the ship in-question (you don't want it to shoot through a bulkhead, or down through the deck)!

Gun placement/function 101.
__________________


The HMS Shannon vs. USS Chesapeake outside Boston Harbor June 1, 1813

USS Chesapeake Captain James Lawrence lay mortally wounded...
Quote:
.."tell the men to fire faster, fight 'till she sinks,..boys don't give up the ship!"

Last edited by CapnScurvy; 08-31-18 at 08:43 AM.
CapnScurvy is offline   Reply With Quote
Old 08-30-18, 02:53 PM   #7
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,710
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by CapnScurvy View Post
So, you've got a gun that won't fire in a certain direction (in this case, down to the water level). You want it to fire at objects lower than the higher plane targets? I'm assuming you would like it to fire at both.
great stuff, scurvy. yes, gun-elevation 101. i learned some good stuff.
however, perhaps i did not explain myself properly.
i am trying to get the CrewAI to use an AA_Gun as if it was a Deck_Gun and fire and have the crew fire at ships.
it wont do that at present.
my thought, based on conversations you have had with others in the forum, was that Crew_AI should do what i want if only i changed the AA_gun to a Cannon. for example:

this is Deck_Gun_GE20mm_Turret.sim. BTW, all of the German guns, both AA and deck guns, are labeled as cannons in the game files. and this is a one of two identical weapons on board.

so, when i tried this change i got a CTD. now, realistically, the CTD could be from anything but because this was the only change, i associated the two.
what do you think about my idea? am i missing a file that i need to change?
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10

Last edited by KaleunMarco; 08-30-18 at 03:05 PM.
KaleunMarco 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 07:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.