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-28-09, 06:14 PM   #1
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 359
Downloads: 43
Uploads: 0
Default Anyone Interested in Torpedo Firing AI Subs ?

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)
polyfiller is offline   Reply With Quote
Old 08-28-09, 08:55 PM   #2
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,710
Downloads: 300
Uploads: 0


Default

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.
iambecomelife is offline   Reply With Quote
Old 08-29-09, 04:00 AM   #3
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 359
Downloads: 43
Uploads: 0
Default

Sorry - no don't know how to do that. Darkfish may do.
polyfiller is offline   Reply With Quote
Old 08-31-09, 01:58 AM   #4
Bubblehead1980
Navy Seal
 
Join Date: Apr 2009
Location: Florida USA
Posts: 7,146
Downloads: 610
Uploads: 44


Default re

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?
Bubblehead1980 is online   Reply With Quote
Old 08-31-09, 01:29 PM   #5
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,710
Downloads: 300
Uploads: 0


Default

The Surface Warfare Super Mod.
iambecomelife is offline   Reply With Quote
Old 08-31-09, 04:14 PM   #6
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,844
Downloads: 28
Uploads: 0
Default

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!


(and no, it's not just that I only plan to make them, I already have!)
__________________

DarkFish is offline   Reply With Quote
Old 08-31-09, 04:19 PM   #7
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,710
Downloads: 300
Uploads: 0


Default

Quote:
Originally Posted by DarkFish View Post
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!


(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.
iambecomelife is offline   Reply With Quote
Old 08-31-09, 04:27 PM   #8
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Quote:
Originally Posted by iambecomelife View Post
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.
Darkfish you have pm.

Do they aim the torpedoes at you or just fire in the direction they are facing ?

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 09-04-09, 05:45 PM   #9
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,844
Downloads: 28
Uploads: 0
Default

Quote:
Originally Posted by iambecomelife View Post
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.
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
__________________

DarkFish is offline   Reply With Quote
Old 09-04-09, 11:59 PM   #10
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Quote:
Originally Posted by DarkFish View Post
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
Congrats on your first week at University then !

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 09-16-09, 03:52 PM   #11
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,844
Downloads: 28
Uploads: 0
Default

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
__________________

DarkFish is offline   Reply With Quote
Old 10-20-09, 02:43 PM   #12
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

bump
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 10-23-09, 05:10 PM   #13
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 359
Downloads: 43
Uploads: 0
Default

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 ?
polyfiller is offline   Reply With Quote
Old 10-23-09, 05:40 PM   #14
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by polyfiller View Post
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!!??

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 10-24-09, 12:36 AM   #15
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Quote:
Originally Posted by peabody View Post
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!!??

Peabody



keltos

and yes we are interrested in knowing how to to that.
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Reply


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 05:12 PM.


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