Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Semi active sonar guided torpedo Premade Station
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.414 MB
14 Mar, 2021 @ 9:36am
26 Mar, 2021 @ 12:28am
15 Change Notes ( view )

Subscribe to download
Semi active sonar guided torpedo Premade Station

In 1 collection by Pufferfish
Active and semi-active sonar guided torpedoes
7 items
Description
I have made a better guided torpedo that has an onboard sonar! Go check it out: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2502595274

This is not part of the Marino torpedo

Soooooooo....

I've finally finished it all. After a few days of thinking and building I can present you my Sonar Guided Torpedo!

How it works

Basically it takes the Sonar input, calculates the target GPS Coordinates and Altitude and sends that to the torpedo via Radio, which then uses a depth hold and interception function to guide itself to the target. To give it some light jamming protection, it generates a random number ranging from 0 to 10000 and takes that as radio communication frequency. The torpedo is only limited to what your sonar can do. I may upload a controller for advanced sonar tracking in the future but I did not want to make it too complicated yet. Alternatively, if your sonar does not work, which may happen since Stormworks has some bugs, you can connect a stabilised camera to a composite input on the Launch Station Controller.

How to Install

You put the Launch Station Controller on the vehicle you want to launch the torpedo from and hook everything up. The same goes for the torpedo. Torpedo Main Controller and Terminal Phase Controller are placed on the torpedo you are using. Lastly, you build one Torpedo Tube Controller for each torpedo tube you have. All logic nodes are labelled and some described so there should be no trouble understanding what connects to what.

Please note:

  • If you want to connect any other coordinates to the system on the gimbal camera composite node, please put the
    Coordinates in this order:
    x = channel 1, z = channel 2, y = channel 3.
    This is because of the Gimbal Camera using those channels so I had to use them too.


Changelog

  • 22 March 2021: Version 2 is out! I added a Lua interface to display basic target information. There's
    three fonts you can choose from; Default, Dark mode and Old. It's pretty simple and optional but I thought it might
    add a little more overview to the system. A huge thanks to Lassi who helped me by
    implementing a better guidance system. The torpedo might be a bit unstable in terminal phase but will still hit its
    target with an +/-0.5m accuracy. Hope you guys like it!
  • 24 March 2021: -Fix: Torpedo would return to launch station when launched without input data.


Future developement

This is a Work-In-Progress. It does work completely fine but I do want to add more features / improve on them.
Possible additions/updates might be:

  • Even though the radio frequency is randomly generated, with radio scanners it is fairly easy to jam the
    communication frequency. That's why I am considering pointing a gps guided laser on the target and making the
    torpedo laser guided. That does not come without downsides though. The torpedo would have a limited field of
    view compared to the basically 360° FOV of the gps guidance. Also, countermeasures would not be impossible,
    e.g. a laser beacon buoy could confuse the torpedo and guide it somewhere else.
  • A lua interface for launching and tracking torpedoes and targets Done
  • An included Sonar Tracking System

My Torpedo does not work. What now?

Make sure your Sonar is tracking something, if not you should use the Gimbal Camera instead. The Sonar does glitch in-game sometimes and stops tracking vehicles. Also check if everything is connected right. If that does not work, leave a comment and I'll try to help.

Submarine used in testing: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2417623873
Go check it out!

Can be used and modified without credit

A big thanks to Exob, Kubson, Dark_Shadow65 and amccoy2014, who helped me find solutions for problems with radio communication and other problems. Especially Lassi, who gave me a function for PN interception which works great.

You'll find all controllers on my workshop if you wan't build your own guided Torpedo.

Have fun!
26 Comments
stardestroyer878 10 Apr, 2024 @ 4:30am 
Wouldn’t this be data link guided not semi active because there isn’t any seeker on the torpedo?
Pufferfish  [author] 18 May, 2021 @ 9:51am 
Most likely becuase the Sonar is not tracking anything and the torpedoes don't have any target to attack.You need to check if the Sonar has a target locked. In my example there is not actual controller that makes the sonar find and track a target, you need to do that yourself as I said in the description.
Benz 11 May, 2021 @ 5:46am 
No matter what I do, the torpedoes always go to the left. In my submarine, the torpedoes always go to the left, even in your example the torpedoes ALWAYS go to the left. Please Help
Pufferfish  [author] 30 Apr, 2021 @ 1:13pm 
Sorry for the late answer, yes it might miss - Stormworks sonars are limited in their accuracy and unless you have two sonars behind eachother like you see on many missiles, you will miss. The new small sonars could be used to compensate for that but they only have a 1000m range and could only be used in the terminal phase.

I might work on something like this but right now I am working on a new radar system.
Plasmetic Raven 24 Apr, 2021 @ 4:18pm 
After screwing with the yaw constants on the provided torpedoes I have gotten the torpedo to go quite directly towards the target but whatever I do it always misses by just a few meters in one direction or another. It seems like the terminal guidance is affecting the aim even though it is tracking for most of the cruise.
Plasmetic Raven 24 Apr, 2021 @ 4:00am 
Does the facing of my ship shown on the monitor indicate anything about the torpedo aiming? Because it seems to think I am facing 90 degrees off even though my compass is facing the correct way
Plasmetic Raven 24 Apr, 2021 @ 3:52am 
Added and connected all the components as best I could understand into my ship and even with the sonar target light coming on my torpedos just turn right after leaving the tube and circle back to my own sub.
Pufferfish  [author] 17 Apr, 2021 @ 6:04am 
Just stand inside the station and no clip with the home key on your keyboard.
Geck 16 Apr, 2021 @ 4:26am 
great torpedo, they work very well on amccoy2014s new sub, was wondering tho how you got the freecam and clear water like in your test vid, i want to see the torpedoes track a target
romacicak1 30 Mar, 2021 @ 12:27pm 
as much as i love the concept of this torpedo sadly stormworks sonars and radars are bad thos resulting in miss until devs fix radars im gonna be using laser torpedoes