UBOAT
77 ratings
[DEPRECATED] UBOAT SOP: Turn On Compressor
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
355.457 KB
30 Aug, 2024 @ 9:17pm
20 Sep, 2024 @ 8:52am
7 Change Notes ( view )

Subscribe to download
[DEPRECATED] UBOAT SOP: Turn On Compressor

Description
THIS MOD HAS BEEN DEPRECATED SINCE VERSION 2025.1 PATCH 11

From 2025.1 Patch 11 patch notes:
- Added a new mechanic with standing orders for the crew, allowing automation of certain tasks. These orders can be toggled on and off in the "Crew" screen under the "Boat" tab. Currently, there are three available standing orders:
---- Air compressor management: When active, the crew will power on the air compressors whenever the reserves are not full.
---- Lighting management: The crew switches to red lights at night, blue lights during a silent run, and normal lights in all other cases.
---- Main exterior hatch management: The crew closes the hatch during rain and rough seas and opens it in all other conditions to improve ventilation.

-----------------------------------

UBOAT Standard Operating Procedures (SOP)
Turn On Compressor

Part of the UBOAT Standard Operating Procedures (SOP) collection.

This mod will have a crewman turn on the compressor under the following conditions:
  • The boat is not alarmed
  • The boat has access to fresh air (surface or snorkel)
  • The tanks are less than 95% full

Does not require a new game. May disable achievements (I don't really know)

Debugging

Before reporting a bug, please make sure of the following:

  • The mod is enabled
  • You have read the conditions under which the mod will work
  • You have checked that no other mods may be interfering
  • You have checked in the file %USERPROFILE%\AppData\LocalLow\Deep Water Studio\UBOAT\output_log.txt that there is a line that reads 'UBOATSOP_TurnOnCompressor Version 2024.1.14.18'

Source Code

Source code is available on Github, here: https://github.com/Andargor/UBOATSOP

NOTE: Any mods on github that have not been released in the Steam Workshop are WORKS IN PROGRESS and may break your game. USE AT YOUR OWN RISK
36 Comments
andargor  [author] 23 Feb @ 7:26am 
This mod is now deprecated, as they have included it in the base functionality in 2025.1 Patch 11
Zero 16 Feb @ 1:34am 
This works on 2025.1
andargor  [author] 28 Jan @ 4:37pm 
@H3792 Also, make sure that the version number is correct in the output log, check for each mod in Debugging in their description.
andargor  [author] 28 Jan @ 4:36pm 
@H3792 I re-re-checked and cannot reproduce what you are experiencing, everything works fine for me, no error messages. I don't know why it's happening for you.
H3792 28 Jan @ 4:22pm 
Recently tried with no other mods than the SOP mods, kept getting that same line with something about the crew priority mod too. the compressor and pump mod both did not work either
andargor  [author] 28 Jan @ 6:49am 
@H3792 With a quick look at the source, the only thing I can see is if you have a mod that does something with the weather or time of day
H3792 27 Jan @ 10:44pm 
Hey, just tried running this mod it was not working. checked the log, it appears that another mod may be interfering.
This stood out in the log file:
System.NullReferenceException: Object reference not set to an instance of an object
at UBOATSOP_TurnOnRedLight.DoUpdate () [0x00000] in <1800482102d64258851ca5c9e1e74079>:0
andargor  [author] 25 Jan @ 5:58pm 
@leatherneck6017 yes, it checks first for a diesel compressor, and then failing that an electric compressor. I didn't plan on putting options to keep it simple, no UI, no INI files to read, etc.

You could swap the equipment selection on lines 81 and 84 in the code to change it around. The mods are stored in %USERPROFILE%\AppData\LocalLow\Deep Water Studio\UBOAT\Mods and the code for each of my mods is under Source/Main.cs
leatherneck6017 25 Jan @ 5:14pm 
So on the VII's this default's to the diesel compressor, correct?. Any way to make it prefer electric?
andargor  [author] 24 Jan @ 10:19am 
Verified still working with 2025.1