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)
-   -   Who knows about making AI ships fire torpedoes? your services are needed! (https://www.subsim.com/radioroom/showthread.php?t=207517)

Bubblehead1980 10-16-13 08:09 AM

Quote:

Originally Posted by jhapprich (Post 2128767)
ok, having changed some values of the original torpedospawnfx, i managed to make the launcher run smooth. it is now possible to make all the existing torpedolaunchers of the ai ships actually work+ i modified the k-gun so there is the possibility to launch torpedos on submerged targets. ill make an upload asap, currently on another pc.


Very nice, look forward to checking it out.Would be nice to have Elco and IJN PT boats, DD's etc launching torpedoes accurately.

Admiral Halsey 10-16-13 01:04 PM

Quote:

Originally Posted by Bubblehead1980 (Post 2128790)
Very nice, look forward to checking it out.Would be nice to have Elco and IJN PT boats, DD's etc launching torpedoes accurately.

That would make the Guadalcanal battles more realistic.

iambecomelife 10-17-13 07:15 PM

Quote:

Originally Posted by jhapprich (Post 2128723)
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!!!!:rock:

Question - do your modified torpedoes gradually sink after launch? This has been a longstanding problem with the AI torpedoes, and while experimenting with the original mod I had to make torpedoes run at about 70 knots or give them a very short range - otherwise they would gradually run too deep to hit anything. Just wondering if you know what causes this.

TorpX 10-18-13 09:50 PM

Quote:

Originally Posted by jhapprich (Post 2128723)
great news! i finally managed to make thedarkwraith`s torpedo spawner fire DIRECTLY and RELIABLY at the target!

Excellent work! :woot:

jhapprich 10-19-13 04:33 AM

they run straight WITHOUT descending, which is controled by the particle generator. currently, i have added a new type93 double launcher to the guns_radars.dat that fires one torpedo at a time and is assigned to a M*-node class "cannon". to add the launcher to an existing ship, you need to edit the *.dat and *.sim. the T*-nodes need to be renamed M*, and you have to add the corresponding obj_turret to the sim. in the *.equ-file, the T*-entry must be reassigned "M*",and the "Torpedolauncher93double" will replace the connected weapon. i will upload the file today, and there will be a demo-mission with a Permit-class lookalike Black Swan with both torpedo launchers for surface and submerged combat. there will also be the single files necessary for the ship editing only,no further modding by me.this way, you will have the opportunity to edit the stock ships and to implement the launcher in your own mods.ps don`t get this wrong, but personally i am particulary happy having solved this, for now i am able to moke ai-subs a real threat in the cold war mod. thanks thedarkwraith for the initial idea!ps anyone knows how to make screenshots in win7? wanted to add pictures, but print screen wont work...hmmm:hmmm:

Bubblehead1980 10-19-13 06:00 AM

Quote:

Originally Posted by jhapprich (Post 2130171)
they run straight WITHOUT descending, which is controled by the particle generator. currently, i have added a new type93 double launcher to the guns_radars.dat that fires one torpedo at a time and is assigned to a M*-node class "cannon". to add the launcher to an existing ship, you need to edit the *.dat and *.sim. the T*-nodes need to be renamed M*, and you have to add the corresponding obj_turret to the sim. in the *.equ-file, the T*-entry must be reassigned "M*",and the "Torpedolauncher93double" will replace the connected weapon. i will upload the file today, and there will be a demo-mission with a Permit-class lookalike Black Swan with both torpedo launchers for surface and submerged combat. there will also be the single files necessary for the ship editing only,no further modding by me.this way, you will have the opportunity to edit the stock ships and to implement the launcher in your own mods.ps don`t get this wrong, but personally i am particulary happy having solved this, for now i am able to moke ai-subs a real threat in the cold war mod. thanks thedarkwraith for the initial idea!ps anyone knows how to make screenshots in win7? wanted to add pictures, but print screen wont work...hmmm:hmmm:

Absolutely amazing.So could add this to the AI subs in TMO RSRD?

jhapprich 10-19-13 07:01 AM

jap. here is the download. there is a german singlemission called "Fubuki vs Convoy" to demonstrate the launcher.the running depth of the aitorpedo depends on the firing angle of the "barrel" of the launcher, i.e. if you want it to go deeper, you need to open the ships *.sim and lower the elevation angle of the turret and its firing sector.

link: http://www.gamefront.com/files/23782...dolauncher.zip
http://imageshack.com/a/img407/91/a1hf.jpghttp://imageshack.com/a/img46/9363/xnih.jpghttp://imageshack.com/a/img850/5794/iimp.jpghttp://imageshack.com/a/img19/9878/g9hj.jpghttp://imageshack.com/a/img841/7061/fopw.jpghttp://imageshack.com/a/img89/6310/b6d6.jpghttp://imageshack.com/a/img600/1488/vjxo.jpg

TorpX 10-20-13 01:01 AM

Amazing! :up:

polyfiller 10-20-13 08:47 AM

jhapprich - can we compare notes on how accurate you managed to get the torpedoes - I had to mess around with mounting the torpspan launcher onto dummy turrets - to try and get the launcher to lead targets by enough to enable the torps to have some chance of hitting - issues I had to try and work around are;

1) limiting the torp launcher gun to short range - otherwise the Ai insists on trying to launch from a long way out with disaterous accuracy. No real solution - I changed AI to only spot targets at short range, but, of course, this buggers up apsects of the game when you want the AI to engage at long ranges (destroyers and cruisers mostly).

2) I played around with different turret configurations and error angles to enable a "spread" launch - again this helps substantially with accuracy at fater / longer range targets.

If you show me your settings, I'll share mine.

For AI subs, as stated before, I found it best to create subs at multiple different depths, all with the launches mounted above water level (oterhwise AI won't fire them) ... so multiple AI sub models, each at different depth and launcher mount points at different heights above the main sub model.

I never had an issue with AI torps sinking - strange .... if anyting the ones I use (original credit to Drakfish) seemed to skip along the surface too much.

Sounds like we've all made promising progress. What I'm playing with right now is multiple depth charge models (they are configured as torpedoes so you can laucnh from rear tubes) - so that I can depth charge at different depths.... although was also going to play with different magnetic pistol settings to see if that can dispense with the need for different depth charge configurations.

Did you use homing torps for the Ai torps ? If so, did you modify an existing torp or use one of the pre-configured homing torp types ?

polyfiller 10-20-13 08:49 AM

Also forgot to mention I plaan to release a "development version" of the TSWSM soon - substantially unfinished in terms of campaign setup, but a mod with the base usints and featurs which others can help build campains for.... am currently learnig how to configure patrols within campaing - just created my first mission - to assist with operation Dynamo - objectives to rescuse folk from sea and shoot down Stukka's :-)

jhapprich 10-20-13 12:50 PM

hmm,not much to compare...on a stopped target its 100%. i tried something yesterday and made the destroyers invulnerable, furthermore i deletet the normal gun turrets, so they only had the torpedos for the convoy attack in the demo mission, and they killed every vessel within a few minutes. most of the time was waiting for the impact. also, on a moving target, you just need to set the torpedos speed a little higher, which will greatly improve the accuracy. found it out when i changed the aitorpedo from mk 14 to soviet shqual(200knots).working on an AI ALFA now.

jhapprich 10-20-13 12:54 PM

polyfiller, just read your post carefully. to make it simple, my launcher works a lot different than what you are using, and so do my ai submarines. we are talking about totally different ways to solve these things. have a lokk at my launcher, downloadlink below, amd youll see. i repeat, this is not thedarkwraith`s torpedospawngun anymore. ps would be really interested in seeing your ai launched homing torpedos work.

jhapprich 10-21-13 08:31 AM

you want some fun? add the SSN-15 Cruise missile to the torpedospawnfx and change the reload time of the launcher from 10s to 2 s,voila-you made a battlestar:D. besides, this is what i meant about the accuracy and the speed. launching those things, the destroyers in the (guess what) demo mission sink the whole convoy without getting sunk themselves.

jhapprich 10-21-13 08:55 AM

the launcher effect even works with player controlled guns. we will have useable launchers on playable ships now!

Bubblehead1980 10-21-13 01:11 PM

Great work, going to give this a try tonight. Do you have this working on AI US or Japanese/German submarines yet?


All times are GMT -5. The time now is 01:22 AM.

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