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 10-13-13, 12:04 PM   #1
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 359
Downloads: 43
Uploads: 0
Default

So do you need help creating the packs of AI subs, or making them fire torps ?

If you are able to, create the AI subs - this will save a lot of work (for me). My recommendaiton is to create 3 to 5 versions of each model sub you want to be controlled by AI. The differetence between each is the depth - make at leat one of these run at a depth of between 7 and 15 metres ... these will fire most torps. I also did one at 50 metres which fireed - to simulate a sub which attacked and then increased it's depth. Having AI subs in game which all run same depth is not too realistic IMHO .... it was nice for me to have to guess which depth of sub I'd set up in specific mission when testing depth charging.

One thing I also did was create AI subs with no torps, or very limited ammunition - again to simulate a sub which was being chased rather than being able to be offensive.

If you can create the subs I can then help get them firing reasonably accurately ( slightly better than the 4% or so Darkfish managed).
polyfiller is offline   Reply With Quote
Old 10-13-13, 08:37 PM   #2
Bubblehead1980
Navy Seal
 
Join Date: Apr 2009
Location: USA
Posts: 8,646
Downloads: 697
Uploads: 61


Default

Quote:
Originally Posted by polyfiller View Post
So do you need help creating the packs of AI subs, or making them fire torps ?

If you are able to, create the AI subs - this will save a lot of work (for me). My recommendaiton is to create 3 to 5 versions of each model sub you want to be controlled by AI. The differetence between each is the depth - make at leat one of these run at a depth of between 7 and 15 metres ... these will fire most torps. I also did one at 50 metres which fireed - to simulate a sub which attacked and then increased it's depth. Having AI subs in game which all run same depth is not too realistic IMHO .... it was nice for me to have to guess which depth of sub I'd set up in specific mission when testing depth charging.

One thing I also did was create AI subs with no torps, or very limited ammunition - again to simulate a sub which was being chased rather than being able to be offensive.

If you can create the subs I can then help get them firing reasonably accurately ( slightly better than the 4% or so Darkfish managed).
Already have the subs, in TMO RSRD.The AI Jap Sub and AI fleetboat, just need to be made where can fire torpedoes.

I have made the wolfpacks already, so far have 10 wolfpacks in RSRD campaign from late 43 until end of war.All they can really do right now is distract the escorts which is helpful on the heavily screened convoys in 1944 and 45, some end up getting gunned down, others fight back with deck guns but have it where they speed away and then "dive" (reaching last waypoint and being deleted).Since can't make them attack with torpedoes or submerged, they all attack on surface at night. Just need them to be able to fire torpedoes, if could make them actually dive, that would be great.Main thing is ability to fire torpedoes.I have no clue how to do this with the subs so.
Bubblehead1980 is offline   Reply With Quote
Old 10-14-13, 02:07 AM   #3
jhapprich
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

interested in this,too. ive tried adding thedarwraith`s ai torpedo launcher to a AI Permit, which will launch torpedos at me, but since these are non-homing, they will not hit and i havent found a solution for this yet. also, i used an animated submarine model(diving planes,periscopes) as a subnode on the DD Somers, so that model will actually dive and will represent a sonar target. no real diving, but better than a surface runner. my next aproach will be trying to give it a real anti-sub weapon based on the depth charge.
  Reply With Quote
Old 10-14-13, 02:22 AM   #4
Bubblehead1980
Navy Seal
 
Join Date: Apr 2009
Location: USA
Posts: 8,646
Downloads: 697
Uploads: 61


Default

Quote:
Originally Posted by jhapprich View Post
interested in this,too. ive tried adding thedarwraith`s ai torpedo launcher to a AI Permit, which will launch torpedos at me, but since these are non-homing, they will not hit and i havent found a solution for this yet. also, i used an animated submarine model(diving planes,periscopes) as a subnode on the DD Somers, so that model will actually dive and will represent a sonar target. no real diving, but better than a surface runner. my next aproach will be trying to give it a real anti-sub weapon based on the depth charge.
keep it up. So much potential in all of this.I would go back and rework the woldpacks if had AI subs that could fire torpedoes, dive, attack submerged etc.Things would not have to be so scripted.On the flip side, if AI japanese sub can fire torpedoes submerged etc, adds a whole new element to the game as well.Player will be dodging torpedoes sometimes...
Bubblehead1980 is offline   Reply With Quote
Old 10-14-13, 02:39 AM   #5
jhapprich
Stowaway
 
Posts: n/a
Downloads:
Uploads:
hmm. however i dont think we can add a real AI submarine. possible is a submerged target we can detect( bearing,heading,range), but not its depth, so especially in my case, no submerged dogfights. a proper weapon for that ai sub against other subs is an even bigger problem. besides, i tried an AI EchoII with missile-launching guns(Cruise-missile model attached to the shell, a missile trail, the surface-only launchers of the sub are the guns annd have to be elevated to a certain angle before they can fire, the shell speed is slow so you can see the missile on course, the range is limited, the reloading cycle is long etc.) which killed my ai nimitz quite well on a hit`n`run attack. for a wwII boat, you could use a torpedo as shell model running BELOW the shell node and make it very fast to get a straigt "flight", attach the (invisible?) gun very close to the water level and have the sub "shoot" surface targets.however, it would be most likely instant killing with a laserlike weapon, but poor japs subby wouldnt be kanonenfutter any longer.hmm better idea while writing: check out the firing angle of the gun using a slow spped and find out the usable range, then add an animation controller to the torpedo model that keeps it below the surface on a straight level while the shell flies its courve.this way the torpe can go a little more realistically...hell im good in the morning

Last edited by jhapprich; 10-14-13 at 02:57 AM.
  Reply With Quote
Old 10-14-13, 02:45 PM   #6
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 359
Downloads: 43
Uploads: 0
Default

Not sure why you say you can't have AI controlled submerged subs ... I've been hunting them and depth charging them for quite some time in the TSWSM development build. Why do you think submerged AI subs won't work ?

Making DC's isn't too much a of a porblem. add a munition and a launcher to fire them (a gun in effect) and bob's your uncle, or sister, depending on how complex a family strcuture you belong to.

To get the AI subs to fire submerged, you just mount the torp launchers on nodes which are xx metres above the subs hull ... as in, the torp launchers are still surfaced.

I've even got a 50m submerged sub which still fires torps at me on the surface.
polyfiller is offline   Reply With Quote
Old 10-15-13, 12:42 AM   #7
TorpX
Silent Hunter
 
Join Date: Sep 2010
Posts: 3,969
Downloads: 153
Uploads: 11
Default

I can't follow everything written here, but it sure looks encouraging.
TorpX is offline   Reply With Quote
Old 10-23-13, 02:17 AM   #8
jhapprich
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

really looking forward to this.yes, i meant darkfish. i now have an ai alfa, actually listed as unittype 200,that runs submerged, on its own power, with a submerged torpedo launcher. it attacks enemy targets, but it coul be a little more aggressive. any idea? very interested in your implementation of homing torpedos. would mean you would not use a particle generator, hm? ps treid the airtorpedo, which will not run , but stay on its spawnpoint like a mine, BUT it floats in the water straight, without nose up/down according to its defined depth.strange...
  Reply With Quote
Old 10-23-13, 07:58 AM   #9
merc4ulfate
DILLIGAF
 
merc4ulfate's Avatar
 
Join Date: Feb 2007
Location: florida
Posts: 2,083
Downloads: 227
Uploads: 0
Default

This photo shows the initial aim and firing of the lanchers. A very nice animation for the lanchers to turn and fire.



This image shows an intial offset to the depth of the two fish just fired.



This image of the same two fish shows that the offset has left one near the surface but the other is now much deeper and would pass under a vessel.



Both the fish missed all targets but what I wanted to note here was that I followed only these two to the end of their fuel run. By the time they both ran out of fuel the separation in depth was so great that they can barly be seen in the same frame. The upper red circled one is still near the surface while the lower blue circled one is at least 100 meters below the surface. While they both ran straight one was affected but something which cause it to run deep. I wonder if the roll of the firing vessle from the first fish fireing, guns firing or sea state affected the trajectory of the second?



These two were fired at the same time and towards the same trajectory but the fish on the left took a port side turn perpendicular to the fish on the right.



All three of these fish ran deep with two going much deeper after firing. Notice the nose up attitude of the fish. They would run straight but their nose would remain turned up anywhere from 20 to 40 degrees.




My last test had the four desroyers firing over 50 fish with an estimated 50% running deep at varying levels. The "run to deep" nose up attitude and depth is not consistant which makes me wonder how much of this has to do with the ships roll on firing. The nose up attitude may be the fish trying to acheive its programed depth but unless programed to asend they will not. The downward trajectory may be causing it to remain on it's downward angle.

Last edited by merc4ulfate; 10-23-13 at 08:12 AM.
merc4ulfate is offline   Reply With Quote
Old 10-23-13, 08:41 AM   #10
jhapprich
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

ok, took a look at your screenshots. first of all, are you using any mod that change your stock torpedos? 2nd, the different depth between the torpedos is caused by the launchers ability to raise/lower the barrel +/- 1 degree. the nose up/down caused by the programmed torpedo depth in the.sim of the torpedo, so is the different angle of some torpedos relatively to it`s curse. the reason is, that when firing the launcher, that is actually a cannon like the other gunturrets, the barrel aims towards the estimated target and shoots an invisble dummy shell. the torpedo is launched instead of the muzzle flash, this way i corrected the random targeting error of darkfish´s original spawner. so you have to think that way: the torpedo is a child of the parent node, the muzzle flash, and will always follow the vector of the parent, so it will run in the original firing direction +/-1 deg to the water level +tolerance. diving ones while be nose-up`s , as the torpedo will try to reach the running depth of his .sim; if there is a guidance enabled, it will also have a different horizontal orientation. this can best be seen using homing torpedos, they will turn towards the loudest soundsource but won`t reach it because curse and depth is dictatet by the muzzle flash the time the launcher fires. so what we can do is setting the elevation and tolerance both to "0", but i do not know if the launcher will properly fire(eg heavy whether, ship´s not steady-not time for targeting maybe?)
  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 03:25 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.