Barotrauma

Barotrauma

Not enough ratings
Turret Automation Kit
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
907.585 KB
30 Nov, 2021 @ 9:40pm
11 Jan, 2022 @ 10:51am
4 Change Notes ( view )

Subscribe to download
Turret Automation Kit

Description
Ever wonder why humans can achieve space travel but can't make a competent turret AI? Well, this mod has you covered.

I searched Steam for automatic turret controllers, but all of their ranges are hilariously low. So I decide to make my own version with longer ranges. It comes with a 3000 unit turret controller and a 1000 unit one. (1 unit = 1 cm). This kit is for sub designers who are already proficient with the sub editor.

If you have any questions or problems please let me know. I am a noob player who has never gone deeper than the Cold Cavern so I have no idea what could go wrong.

Core Components:
  1. Motion Sensor Array, plus axis sensors to detect monsters, as well as fire angle calculation components/relays


  2. Fire Trigger Sensors, to determine when to fire at monsters, plus connected relays. I made 4 sets for facing 4 different directions, but generally only one set is enough.

  3. Fire Control Relay that connects to the weapon you want to automate

  4. Turret Safety features that disables the turret from firing when a human is detected by the fire trigger sensors

  5. Manual Control components that disable firing when the periscope is in use

  6. Complementary Dummy Components that showcase wiring

Complementary Dummy Components:
  1. Dummy pulse laser
  2. Dummy AI fire control toggle
  3. Dummy turret safety toggle
  4. Dummy periscope to showcase the wiring of Manual Control components

Steps to connect the turret controller:
  1. Load the mod as submarine, copy all the components minus the 3 redundant sets of Fire Trigger sensors
  2. Paste the components to your sub. Important: paste far away from your sub to avoid overlapping items
  3. Connect the Fire Control relay with the turret of your choice, following the the wiring to the dummy pulse laser
  4. Connect the "Not" component of the Manual Control to the periscope, following the the wiring to the dummy periscope
  5. (Optional but recommended) hide any new wires
  6. (Optional) add Complementary Components to your ship following the wiring of the Dummy Components
  7. Delete the dummy pulse laser and other Dummy Components
  8. Organize/fine tune the Fire Trigger sensors to fit your turret's firing arc. Note that for each Fire Trigger sensor you see, there are actually two overlapping sensors, one for humans and one for monsters
  9. (Optional) delete the part of the Motion Sensor Array that you don't need
  10. Move the trimmed Motion Sensor Array (basically everything that we haven't touched yet) to the turret of your choice, so that the axis sensors (orange ones) overlap with the center of the turret's firing arc
  11. Profit

About Toggling AI Fire Control And Turret Safety:
Double check the wiring for the Fire Control and Turret Safety relays if your AI turrets have problems firing.

The default wiring to toggle both relays uses set_state. However, if you are using a navigation terminal, or a vanilla button, or any controller that does not have the "Is Toggle" option selected, then you need to move the wire from set_state to toggle_state.

Special Notes:
1. Great thanks to 江奈 for his Dagger, an awesome ship. I took great inspiration from (shamelessly copied) his automatic turret system and extended the original design's range. The Apo-3A Dagger is here: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2365108119

2. Koresh seems to have a more elaborately designed version of automatic turrets, but unfortunately the range is still limited. Check out his design here: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2185206376&searchtext=Auto+turret

3. I eventually decided against making the turrets able to fire at hostile humans, since motion sensors can't tell the difference between a hostile sub and a station, or pirates and you.

4. To see this kit in action, check my personal modification to the Iroh: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2666989276

5. WARNING: Due to a lot of motion sensors, the performance, especially in multiplayer, suffers.


5 Comments
苏大妈 11 Jan, 2022 @ 6:41pm 
Starsector YES!:steamhappy:
yqqqsm  [author] 11 Jan, 2022 @ 10:50am 
@Kov
Glad you like it. Also credits to 江奈, whose autoturret design inspired this mod.

@Kookoorooza
I wasted more time than I am comfortable to admit. Hopefully I don't need to update this very often. Also I had zero knowledge about how logic gates work. I am not a STEM student either, but honestly it's not that hard to pickup. It's a game after all.

@苏大妈
看到Diable Avionics就知道是Starsector老玩家了
苏大妈 7 Jan, 2022 @ 12:17am 
Awesome! maybe you'd be interested in trying the "Vendetta" automatic turret.:steamhappy:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2710182167
Kookoorooza 3 Jan, 2022 @ 5:28am 
Hello. Im interested how do you came up to this? What kind of knowledge do you has and how much time waste on working prototype
Kov 14 Dec, 2021 @ 4:32pm 
Thank you for this! :steamthumbsup::steamthumbsup::steamthumbsup: