View Full Version : Anyone Interested in Torpedo Firing AI Subs ?
polyfiller
08-28-09, 06:14 PM
Just a quick update ... as part of the development work for the TSWSM, I've managed to make submerged AI submarines which fire Torpedoes.
This will be released with the TSWSM, but for those experienced modders among the community, I thought I'd describe the method in case anyone wants to start coding it into their own work;
1) Create an AI controlled submarine (if you don't know how to do this ... you'll struggle with the rest)
2) Improtant bit - import the conning tower model from the relevant conning tower file in \objects into the main submarine model.
3) Remove the refeence to mounting the conning tower to Z01 at the top of the units .eqp file.
4) Add a mount point (I used M02) 1 Metre in front of the sub and 1.1 M above it and then mount Darkfishes torpedo launcher on it.
5) Set the surfaced draft in the subs .sim file to a value which puts the sub below the surface. For the IXD2 I'm using a draft of 15
To validate if this works, modify drakfishes torpedolauncher.dat to make the launcher visible - this will help you see if the torpedo launcher is clear of the surface and will also help validate whether or not its firing.
The above does seem to be a bit snesitive to depth ... if I make the IXD2 go much deeper by increasing the draft by a couple of metres, it stops firing.
Any Q's ...post here and I'll try and answer (TSWSM development is keeping the team real busy at present)
iambecomelife
08-28-09, 08:55 PM
Thank you for the info; I have been fiddling with the AI torpedo mod all evening, TBH.
Question: Do you know how to give a torpedo or other object a depth of zero so that it's on the surface after launch? As part of an upcoming mod I am trying to give AI ships nodes so that they can launch boats when they encounter the player's sub. My idea is to create a "weapon" node that "fires" boats - however, I need to know how to keep the launched object on the surface.
polyfiller
08-29-09, 04:00 AM
Sorry - no don't know how to do that. Darkfish may do.
Bubblehead1980
08-31-09, 01:58 AM
Nice idea...hope it works out well.I look forward to the day I have to dodged Japanese torpedos in SH 4.What mod will this be with? What is TSWSM?
iambecomelife
08-31-09, 01:29 PM
The Surface Warfare Super Mod.
DarkFish
08-31-09, 04:14 PM
That's right. Check us out in the ATO mods forum.
And sorry polyfiller, but your subs are already obsolete ;) as my latest creation for TSWSM are diving subs!
They'll stay surfaced until they spot an enemy upon which they fire a couple of torpedoes and dive to a predefined depth.
More info, probably including screenshots/movies, to come next weekend!:yeah:
(and no, it's not just that I only plan to make them, I already have!)
iambecomelife
08-31-09, 04:19 PM
That's right. Check us out in the ATO mods forum.
And sorry polyfiller, but your subs are already obsolete ;) as my latest creation for TSWSM are diving subs!
They'll stay surfaced until they spot an enemy upon which they fire a couple of torpedoes and dive to a predefined depth.
More info, probably including screenshots/movies, to come next weekend!:yeah:
(and no, it's not just that I only plan to make them, I already have!)
Could I have permission to use this in "Wolves of the Kaiser?" I want to make some British "E-Class" subs lurking in the channel for unwary WWI commanders. :arrgh!:
keltos01
08-31-09, 04:27 PM
Could I have permission to use this in "Wolves of the Kaiser?" I want to make some British "E-Class" subs lurking in the channel for unwary WWI commanders. :arrgh!:
Darkfish you have pm.
Do they aim the torpedoes at you or just fire in the direction they are facing ?
keltos
DarkFish
09-04-09, 05:45 PM
Could I have permission to use this in "Wolves of the Kaiser?" I want to make some British "E-Class" subs lurking in the channel for unwary WWI commanders. :arrgh!:yeah sure, once I have fixed all problems I'll make the files publically available for DL. If you like them you've got permission to use them in WotK.
They'll use my AI torpedo launchers so they fire them at you the way the launchers do.
I know I promised to show some screenies but because of some hardwarematic problems I haven't been able yet to port anything over from my desktop (on which I do all my modding, and which hasn't got internet ATM) to my laptop. I'll hopefully have an internet connection on my desktop again on monday.
Just for info, work on this is taking longer than expected, partly because I've been very busy this week (1st week at university) and partly cause I've encountered a few problems with the diving system. Nothing I shouldn't be able to overcome though:up:
keltos01
09-04-09, 11:59 PM
yeah sure, once I have fixed all problems I'll make the files publically available for DL. If you like them you've got permission to use them in WotK.
They'll use my AI torpedo launchers so they fire them at you the way the launchers do.
I know I promised to show some screenies but because of some hardwarematic problems I haven't been able yet to port anything over from my desktop (on which I do all my modding, and which hasn't got internet ATM) to my laptop. I'll hopefully have an internet connection on my desktop again on monday.
Just for info, work on this is taking longer than expected, partly because I've been very busy this week (1st week at university) and partly cause I've encountered a few problems with the diving system. Nothing I shouldn't be able to overcome though:up:
Congrats on your first week at University then !
keltos
DarkFish
09-16-09, 03:52 PM
quick update:
I've fixed almost all known problems, the subs don't destroy themselves anymore and dive to a static depth of somewhere around 100m.
Only remaining bug is that surface ships engage the AI subs by shooting shells about 50m high over their position
keltos01
10-20-09, 02:43 PM
bump
polyfiller
10-23-09, 05:10 PM
Darkfish -thanks for the update. So given the issue with the AI shooting at the subs .... I think the best way to include ai subs in the game is to have a variety of subs. Suggestion is;
1) AI subs able to dive & fire
2) Ai subs already submerged (several at different depths) with torp launchers and able to fire
3) AI subs already submereged and unable to fire.
A combination of the above will result in plenty of torp firing and also see the AI DD's dropping DC's at types 2) and 3) I think ?
Am thinking this is most applicable to German AI subs - a mix of the above could make up a wolf pack ?
peabody
10-23-09, 05:40 PM
Darkfish -thanks for the update. So given the issue with the AI shooting at the subs .... I think the best way to include ai subs in the game is to have a variety of subs. Suggestion is;
1) AI subs able to dive & fire
2) Ai subs already submerged (several at different depths) with torp launchers and able to fire
3) AI subs already submereged and unable to fire.
A combination of the above will result in plenty of torp firing and also see the AI DD's dropping DC's at types 2) and 3) I think ?
Am thinking this is most applicable to German AI subs - a mix of the above could make up a wolf pack ?
I havent' seen Darkfish's sub yet. I know on the submerged AI sub I made the only way I could keep the propellers turning is for the game to think the sub is surfaced so the ships shoot at it with guns. Doesn't do any damage since the sub is submerged, but no DCs. I never did get it to dive on cue though, I will be very interested in seeing how he did that.
I know I looked at his Torpedos Launcher for AI ships and I still don't understand all of what he did, I get some of it but not all. Maybe I should go to the University!!??:hmmm:
Peabody
keltos01
10-24-09, 12:36 AM
I havent' seen Darkfish's sub yet. I know on the submerged AI sub I made the only way I could keep the propellers turning is for the game to think the sub is surfaced so the ships shoot at it with guns. Doesn't do any damage since the sub is submerged, but no DCs. I never did get it to dive on cue though, I will be very interested in seeing how he did that.
I know I looked at his Torpedos Launcher for AI ships and I still don't understand all of what he did, I get some of it but not all. Maybe I should go to the University!!??:hmmm:
Peabody
:har:
keltos
and yes we are interrested in knowing how to to that.
Starforce2
10-24-09, 01:00 AM
Can they use torpedo while surfaced?
Man..pretty soon we'll be able to have full functional AI subs! This will defently spice up convoy attacks, specially if in addition to the DD's you gotta deal with the I-boats too.
keltos01
10-27-09, 03:59 PM
bump ?
Did this go anywhere? Sounds terrific.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.