Barotrauma 潜渊症

Barotrauma 潜渊症

126 个评价
Switchable Sonar Overlay
   
奖励
收藏
已收藏
取消收藏
Art
文件大小
发表于
更新日期
20.187 MB
2024 年 8 月 27 日 上午 4:59
2024 年 12 月 7 日 上午 6:10
5 项改动说明 ( 查看 )

订阅以下载
Switchable Sonar Overlay

描述
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 条留言
Pyrii  [作者] 4 月 28 日 下午 1:59 
I haven't started my linux switchover so I didn't know. Sorry
Kyral 4 月 28 日 上午 3:27 
turns out the mod indeed works, the issue comes from Lua for baro that's somehow broken on linux
arb0 4 月 27 日 下午 11:27 
Doesnt work for me either v0v
Kyral 4 月 18 日 上午 4:34 
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  [作者] 4 月 17 日 下午 6:11 
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 4 月 17 日 上午 10:08 
the latest game update seems to break this mod, or is it just me ?
Minimax 2024 年 11 月 27 日 上午 6:29 
I added the images and entered their description/name in the list, you can check for yourself =)
{链接已删除} 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  [作者] 2024 年 11 月 27 日 上午 1:12 
That looks great, did you just desaturate one of them or is it available somewhere?
Minimax 2024 年 11 月 27 日 上午 12:52 
Minimax 2024 年 11 月 27 日 上午 12:42 
It would be great to see the Immersive sonar ui in the default color