Barotrauma

Barotrauma

2,615 ratings
Lua For Barotrauma
30
22
8
4
12
11
4
4
7
7
3
3
4
2
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
158.279 MB
Jul 28, 2021 @ 9:10am
May 2 @ 8:44am
167 Change Notes ( view )

Subscribe to download
Lua For Barotrauma

Description
Updated for the v1.4.6.0 Blood in the Water Hotfix
Consider supporting the project:

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




Epic Gamers
Since yall don't have workshop, you will have to install the mod manually.
Refer to this guide: https://evilfactory.github.io/LuaCsForBarotrauma/lua-docs/manual/installing-lua-for-barotrauma-manually

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

MacOS
MacOS currently requires you to manually install the mod, since I don't have a Mac to test the mod on, if you have a Mac and you want to help by testing it, feel free to contact me.
Refer to this guide: https://evilfactory.github.io/LuaCsForBarotrauma/lua-docs/manual/installing-lua-for-barotrauma-manually

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




Server-side Lua (Server Host)
Many Lua mods are server-side, meaning Lua is only required to work on the server for those mods to work, to enable the mod on the server-side simply select the Server Executable when in the hosting menu.
If you want to checkout if the mod is working properly on the server, open the debug console (F3) and run the command "reloadlua"

Note: This obviously doesn't work if you play on singleplayer, for that you will need to install Client-side Lua.



Client-side Lua
Client-side Lua is when the mod is running in your game client, many mods make use of it to either do more extensive changes to the game or to add singleplayer support.

For example Neurotrauma will work fine if you are playing multiplayer and only the server has Lua installed, but it wont work on singleplayer if you don't have Client-side Lua installed, while Movable and Sellable Wrecks (Another mod) requires both Server-side Lua and Client-side Lua to work on multiplayer, that means for this mod, everyone will need Client-side Lua installed for it to work properly. It depends on each mod, so consult the description/author of the mod to make sure.

If you want to checkout if the mod is working properly on the client, open the debug console (F3) and run the command "cl_reloadlua"

Installing Client-side Lua

  • 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 )

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]
Hadrada[github.com]
Rolf Lewis[github.com]
dnova[github.com]
WjunniorW[github.com]
Amadare[github.com]
Esirprus[github.com]
The Great Coachwhip[github.com]
Perfidious Leaf[github.com]
Evergreen[github.com]
StarryCult[github.com]
Popular Discussions View All (30)
6
Apr 10 @ 2:50am
unknown crash when starting server (mac)
le0twigs
4
Mar 17 @ 1:15am
Lua For MAC
Escrima
2
26 minutes ago
LUAless Bug
Zukatotokime
1,797 Comments
fantoc 29 minutes ago 
i did everything they said to do if it wont work and still
it doesnt
redsilver May 18 @ 3:20pm 
where is client-side lua being installed and how to uninstall it ? I have no problems with it, just asking out of curiosity.
Evil Factory  [author] May 14 @ 8:25am 
you can manually install client-side lua tho, doesn't require hosting
Evil Factory  [author] May 14 @ 8:24am 
no, you cant
aaeksandr May 14 @ 8:23am 
cuz i literally can not host servers because it instantly crashes (https://github.com/FakeFishGames/Barotrauma/discussions/13946)
aaeksandr May 14 @ 8:23am 
can i execute "install_cl_lua" if a friend is hosting?
Evil Factory  [author] May 10 @ 11:10am 
neurotrauma
Hi May 9 @ 3:38pm 
help why does it randomly make me rlly laggy then lualess at end of game. im using lots of mod
Evil Factory  [author] May 9 @ 12:22pm 
install client-side lua
Svennishe May 9 @ 11:59am 
what i have to do, if i need lua un sub editor?