Barotrauma

Barotrauma

113 ratings
Switchable Sonar Overlay
   
Award
Favorite
Favorited
Unfavorite
Art
File Size
Posted
Updated
20.187 MB
Aug 27, 2024 @ 4:59am
Dec 7, 2024 @ 6:10am
5 Change Notes ( view )

Subscribe to download
Switchable Sonar Overlay

Description
A mod that lets you pick and change sonar overlays without swapping out mods and avoids the downfalls of XML override mods. Something I noticed when looking for a simple mod that added clock positions to the sonar since when I play with friends we use clock callouts and I'm dumb and keep getting 3 and 9 mixed up.

This mod changes the texture as the objects load in instead of needing an constantly updated XML file. I initially made it just for my own texture but decided "Why can't I make it swap and choose between other textures?"

Adding a GUI to this would balloon the code 3-or-4-fold so it's a console command for now. I want to work on another mod now but if I revisit this I'd redo the code to be able to customise more parts of the sonar UI. This was my first lua mod so it's a 2-day rushed mess. I referenced code from other mods but it does the job.

If you would like me to remove a texture or have a texture you want included, feel free to get in contact. Any problems, please let me know. Hope you find this useful.


How to use:
By default this mod will change all Sonar overlays to my modified oClock overlay. (Yay nepotism)
You can change this using the console (F3 by default while in a server lobby or mission) and typing
sonaroverlay list
to see a list of available overlays by names and numbers. You can then type
sonaroverlay <choice>
replacing <choice> with any name or number to switch to that overlay.
Due to the way this mod works, changes won't apply till you go to the next mission/level/round. Sorry.

Currently Included Overlays:
  1. Default
    • The Barotrauma default sonar overlay, if you need it.
  2. oClock
    • Triiodine's oClock Radar overlay. Useful if you use clock callouts to your gunners.
  3. oClockNumbers
    • My edit of the oClock overlay with just the numbers.
  4. Degree
    • Triiodine's DegreesRadar overlay. Contains bearings and ship side names.
  5. DegreeSideless
    • My edit removing the side names to remove a little clutter.
  6. ImmersiveGreen
    • Immersive Sonar UI's Nav Terminal overlay. An interesting overlay combining bearing and clock positions.
  7. ImmersiveBlue
    • Now in Blue! Immersive Sonar UI's Shuttle UI.
  8. ImmersiveOrange
    • And Orange! Immersive Sonar UI's Monitor UI
  9. ImmersivePurple
    • My Purple edit of the Immersive Sonar UI. Because I like Purple
  10. ImmersiveNeutral
    • My Neutral edit of the Immersive Sonar. To match the default beige for those you don't want the bright colours. Inspired by Minimax.
  11. ImmersiveOrangeDim
    • Immersive Sonar Dim Orange edit by Minimax
  12. ImmersiveGreenDim
    • Immersive Sonar Dim Green edit by Minimax
  13. ImmersivePurpleDim
    • Immersive Sonar Dim Purple edit by Minimax
  14. ImmersivePink
    • Immersive Sonar Pink edit by Minimax
  15. ImmersiveWhite
    • Immersive Sonar White edit by Minimax
  16. ImmersiveDark
    • Immersive Sonar Dark edit by Minimax
  17. ImmersiveNeon
    • Immersive Sonar Neon edit by Minimax
  18. ImmersivePurplePink
    • Immersive Sonar Purple & Pink Gradient edit by Minimax
  19. ImmersivePinkBlue
    • Immersive Sonar Pink & Blue Gradient edit by Minimax
  20. ImmersiveSunset
    • Immersive Sonar Sunset Gradient edit by Minimax
  • 0 / Off
    • If you need to disable the mod for some reason, maybe to go back to an XML mod's overlay but don't want to or can't go to the Main Menu because you're in a campaign


This is a Clientside-only Lua mod this does not need to be on the server to work.
Installing Client-side Lua:

You can tell if it's already installed if you see this in the top left of the Main Menu.
  • Open hosting menu
  • Select LuaForBarotrauma in ServerExecutable and host a server
  • While hosting, open the console window (most commonly 'F3')
  • Type in or copy, then execute the console command:
    install_cl_lua
(Video if you don't understand the instructions above: https://www.youtube.com/watch?v=wEeJ70vH1TM )


Credits:
oClockRadar / Sonar [Alt Appearance] by Triiodine
DegreeRadar / Sonar by Triiodine
Immersive Sonar UI by _]|M|[_
Storiage Icons by Dr. Turtle for the config file code and a handy mod.
Velocity Indicator by Jericho another handy mod and code gave me a good start point for this mod.
Minimax for contributing some extra Immersive Sonar variants and touching up existing ones.
32 Comments
Pyrii  [author] Apr 28 @ 1:59pm 
I haven't started my linux switchover so I didn't know. Sorry
Kyral Apr 28 @ 3:27am 
turns out the mod indeed works, the issue comes from Lua for baro that's somehow broken on linux
arb0 Apr 27 @ 11:27pm 
Doesnt work for me either v0v
Kyral Apr 18 @ 4:34am 
i use the clientside lua auto installer, everything works as intended except this mod which for some reason can't get called with the console, it simply returns a command not found error
Pyrii  [author] Apr 17 @ 6:11pm 
I checked and after reinstalling clientside lua it runs fine for me. Double check you have clientside lua installed. It usually is removed on each update so needs to be reinstalled once Lua for Barotrauma is updated
Kyral Apr 17 @ 10:08am 
the latest game update seems to break this mod, or is it just me ?
Minimax Nov 27, 2024 @ 6:29am 
I added the images and entered their description/name in the list, you can check for yourself =)
{LINK REMOVED} I'll just leave it here, everything is ready, and you can just install a new patch or change everything for yourself, at your discretion. I just want to share a few more variations of your wonderful work with all your subscribers.
Pyrii  [author] Nov 27, 2024 @ 1:12am 
That looks great, did you just desaturate one of them or is it available somewhere?
Minimax Nov 27, 2024 @ 12:52am 
Minimax Nov 27, 2024 @ 12:42am 
It would be great to see the Immersive sonar ui in the default color