Barotrauma

Barotrauma

3,838 ratings
Lua For Barotrauma
53
33
7
12
20
7
13
13
6
3
5
9
4
2
7
3
5
5
4
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
169.150 MB
Jul 28, 2021 @ 9:10am
Jul 1 @ 2:11pm
183 Change Notes ( view )

Subscribe to download
Lua For Barotrauma

Description
Updated for the Summer Update v1.9.8.0
Consider supporting the project:

This is a Barotrauma modification that adds Lua modding, and optional CSharp modding, this is not a direct replacement for xml, but works great in doing things that weren't possible in xml.




Some Info
Client-side mods run on your game client, whether you're playing singleplayer or joining a server. Server-side mods run on the server, which applies when you're hosting, meaning both client and server mods are active.

It's important to know that some mods require only server-side, some only client-side, and some both. If you don't have the necessary client-side mod, some features might be disabled, or the mod might not work properly. For example, Neurotrauma works in multiplayer with only server-side installed, but you'll need client-side for singleplayer. Meanwhile, Movable and Sellable Wrecks requires both server-side and client-side for multiplayer; players without the client-side mod may encounter issues.
So always consult the mod description to know what it exactly requires.




Installation
There's two parts to this mod, the server-side and the client-side, which one you need depends on the mod that you are trying to use. Client-side is always required for singleplayer support.

New Install Method
The mod now has a new installation method, you can install it by simply putting in a special launch option in Steam, here's how you do it:

This installation method will download the mod and install automatically both client-side and server-side from GitHub every time you launch the game. This means the mod installation will always be preserved even if you verify the game files or a new Barotrauma update is released. You can of course uninstall the mod by deleting the launch option and verifying the game files.

Also with this installation method, you don't and shouldn't use the content package, you can enable it if you want to, but it's not required, just make sure to NOT select LuaForBarotrauma in the ServerExecutable dropdown if you are hosting a server.

Classic Install Method
This is the classic way of installing the mod, it makes use of the content package, so make sure to have this mod subscribed and updated in the workshop.

If you are running Linux, subscribe/enable Lua For Barotrauma Linux instead.

If you are using MacOS, this installation method is not supported, you will need to install the mod manually, refer to this guide: https://evilfactory.github.io/LuaCsForBarotrauma/lua-docs/manual/installing-lua-for-barotrauma-manually

There's two parts to this installation, server-side and the client-side, which one you need depends on the mod that you are trying to use. Client-side is always required for singleplayer support.

Server-Side
Simply enable the mod and before hosting a server, select LuaForBarotrauma in the ServerExecutable dropdown. This is all you need to do to enable the mod server-side.



Client-Side
This one is a bit more complicated, you need to install the mod while hosting a server, here's how you do it:
  • 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
  • Restart the game
(Video if you don't understand the instructions above: https://www.youtube.com/watch?v=wEeJ70vH1TM )

The client-side installation will be reverted every time you verify the game files or a new Barotrauma update is released, so you will need to do this process again if that happens.

Dedicated Servers
Dedicated servers require you to manually install the mod, refer to this guide:
https://evilfactory.github.io/LuaCsForBarotrauma/lua-docs/manual/installing-lua-for-barotrauma-manually
Note: Some game hosting services don't allow you to mess with the game files, so you might not be able to install the mod on those services.




Checking if the mod is working properly
You can test if client-side is working properly by opening the debug console (F3) and typing in cl_reloadluacs, if you see a message saying command not found, then the mod is not installed on the client.
To test if server-side is working, first host a server, then open the debug console (F3) and type in reloadluacs, again if you see a message saying command not found, then the mod is not installed on the server.

Common Troubleshooting
If you are having problems with the mod, always try doing these things before seeking for help:

- Go to the Barotrauma in game workshop menu, and click the reinstall button

- Delete this folder %LocalAppData%\Daedalic Entertainment GmbH\Barotrauma\WorkshopMods\Installed\2559634234 and restart the game

- Disable and Enable the mod and try again

Nothing worked? Feel free to seek for help, but please always try to provide as much information as possible, it's hard to solve a problem without much information.






Notable Contributors
Perfidious Leaf[github.com] - Fully reworked and improved the C# loading mechanism
peelz[github.com] - Contributed a lot to the project, from fully reworking the hook system to fixing a bunch of bugs on the moonsharp repo.
oiltanker[github.com] - Contributed the initial CSharp mod loader.
zhurengong[github.com] - Provided lots of useful feedback for the mod on the early days and helped with the making of the CSharp loader.

Special thanks to all sponsors that kept and keep the project going:
Taj the King
FearTheQueer[github.com]
Ricky[github.com]
Rolf Lewis[github.com]
Perfidious Leaf[github.com]
Hadrada[github.com]
WjunniorW
dnova
Amadare
Esirprus
The Great Coachwhip
Evergreen
StarryCult
Popular Discussions View All (44)
1
Jul 24 @ 1:09pm
Not starting server on Mac
baronmars
24
Apr 29 @ 8:54pm
UPDATE LUA!!!!!
Личинка
15
Jul 6 @ 8:40am
Help with Lua (not being able to launch the game)
Wistful_Muse
2,609 Comments
TakTuK14 [No Mic] 15 hours ago 
I can't launch game cmd screen stuck and won't let me play the game
DrBruhman Jul 30 @ 11:46pm 
lua neurotrauma cybernetic ass addon broken pls fix
lua not working how fix
what should i do its not working
update lua
how to install it mods not working
Jul 27 @ 10:15am 
не запускается больше при автообновлении
Coltonjay14 Jul 24 @ 5:06pm 
Oh great LUA-Messiah,
Will you and your holiness grant another mod update upon us
guide us through another hotfix. So that we may play with mods in peace for another time.
Amen
Turbo64 Jul 24 @ 4:22am 
How long does the download take?
It took forever in my pc.
supernova backshots Jul 21 @ 6:46pm 
I'm not sure what's happening, but 10 minutes after loading a level, the netcode integrity starts to decay like it's been bitten by a komodo dragon.
MoraHS_Ikly Jul 13 @ 5:18am 
Fix Lua Neurotrauma
magicalgolsling Jul 12 @ 1:56am 
Has anyone figured out how to fix Lua after last Neurotrauma update?
PBL Jul 11 @ 1:27pm 
Any1 elses lua not working since a few minutes ago?
StormshadowIX Jul 11 @ 12:37pm 
is this mod still work after update of Neurotrauma?