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-14-13, 02:07 AM   #1
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   #2
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   #3
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   #4
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   #5
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-15-13, 01:51 AM   #6
jhapprich
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

polyfiller, i guess tswsm isnt ready yet? maybe you could upload your ai torpedolauncher and your ai submarine so i could take a look at it. nice idea with the depth charge ,however it is not that simple.same goes for the submerged sub launching torpedoes. hard to believe you have all that already, until i have seen it myself.

Last edited by jhapprich; 10-16-13 at 01:09 AM.
  Reply With Quote
Old 10-16-13, 03:09 AM   #7
jhapprich
Stowaway
 
Posts: n/a
Downloads:
Uploads:
I DID IT!

great news! i finally managed to make thedarkwraith`s torpedo spawner fire DIRECTLY and RELIABLY at the target! found it out while adding the torpedo spawn effect to a k-gun as firing effect.when the enemy lunched its depthcharge run at me , the AI-Torpedo was launched heading directly towards my sub all the time,however it would go very slowly,floating on the water surface so its propeller was useless(any idea to solve this,polyfiller?).BUT i then had the idea not to make a torpedogun that used ashell as origin for the torpedolauncheffect, but simply adding a dummy shell with 0damage to an existing gun and make the torpedospawnfx the firing effect instead of the muzzle flash. voila, i was sunk all the times, and i ran 15 knots surfaced. guessing that an AI Elco would run much faster itself, it would blow eg. the Yamato to hell without launching dud torpedos all day and mybe one would hit. sozund out it does not work for himng torpedoes.they will be launched and run towards me,but behave like unguided, meaning they go on a straight course but you can see the torpedo itself turning towards your propellor. if i can unlock the alignment of trhe launched torpedo from the initial vector of the particle generator, guided torpedoes will work as well!!!!

Last edited by jhapprich; 10-16-13 at 03:45 AM.
  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
Old 10-23-13, 08:55 AM   #11
merc4ulfate
DILLIGAF
 
merc4ulfate's Avatar
 
Join Date: Feb 2007
Location: florida
Posts: 2,083
Downloads: 227
Uploads: 0
Default

This is my mod list

Generic Mod Enabler - v2.6.0.157

OpsMonsun_V705
OMv705_to_V720
OMv720_Patch5
OMEGU_v300
OMEGU_v300_Patch7
OM_Harder_Escort_L2
UBM Missions
Popular German Music From The 30´s
OM_Pac_Env
AITorpedolauncher
merc4ulfate is offline   Reply With Quote
Old 10-23-13, 09:19 AM   #12
jhapprich
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

ok, you should try stock first. ps setting the elevation min/max to 0 or +/-0.01 and the elevation tolerance alike will cause the launcher not to fire at all. i just changed the date in the destroyers .sim/obj_turret and in the launchers sim in guns_radars as followed: elevation min0,max 1, fire 0/1 elevation min 0, max 1; weapon_cannon/ elevation min0,max 1, elevation tolerance 0,01. the torpedos are running virtually at the same depth now, almost no nose-up. ill give elevation tolerance 0 a try. curiusly, only the middle launcher of the fubuki would go lower at me. hmm...

ps. elevation tolerance 0 doesn`t work though, 0.01 works fine for me. ill add an magnetic detonator to the assigned torpedo instead
pss. tried the same with 0.001, only random noseups with the middle launcher. best solution for now
  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.