Barotrauma

Barotrauma

2,761 ratings
Lua For Barotrauma
32
23
9
4
12
12
5
9
4
7
3
3
4
4
2
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
158.937 MB
28 Jul, 2021 @ 9:10am
27 Jun @ 7:49am
171 Change Notes ( view )

Subscribe to download
Lua For Barotrauma

Description
Updated for the v1.5.9.1 Summer Update + Hotfix + Hotfix 2
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 (31)
6
10 Apr @ 2:50am
unknown crash when starting server (mac)
le0twigs
4
29 May @ 1:01pm
Lua Mac Fix
W4MONGER
4
17 Mar @ 1:15am
Lua For MAC
Escrima
1,886 Comments
Evil Factory  [author] 23 Jul @ 2:12am 
neurotrauma issue
The Viral Divinity 22 Jul @ 10:36pm 
Players, me included being host, then get lualess, making everybody else disappear for us, although they can still interact with each other, and the game is just slowly becoming unplayable, don't know why since we used to not have this problem.
The Viral Divinity 22 Jul @ 10:33pm 
having increasing problems with the lua it seems. AI and players in high stress or laggy situations suddenly get a "lualess" affliction, and with Neurotrauma, then we literally can't do anything.
сучка 20 Jul @ 4:12pm 
why don't you have xpath?
Evil Factory  [author] 14 Jul @ 7:45am 
@Squire lord make sure server executable is selected
@Fenn top left of main menu
Evil Factory  [author] 14 Jul @ 7:45am 
ask the mod author
valveworshipper 13 Jul @ 7:36pm 
cannot play as an animal such as xenomorph drone or mudraptor, it says "attempted to index a nil value" and "deleted duplicate character"
Squire lord 12 Jul @ 3:40pm 
Command "Reloadlua" Not found
Fenn 11 Jul @ 2:11am 
How do i access the mod settings? i wanna enable CSharp scripting
Evil Factory  [author] 8 Jul @ 3:26pm 
select vanilla server executable then select the lua one