Scripting Framework (Dependency)
LuaCsForBarotrauma
The foundation the scripted mods stand on. It adds Lua (and optional C#) modding to Barotrauma, doing things XML can't. Not a content mod itself — but Neurotrauma, Performance Fix and Enhanced Immersion's Lua features won't run without it.
Library
Required by 3 mods in this pack
Client + server side
- What it is
- A modding framework (by Evil Factory) adding Lua + optional C# support. It's a base layer, not gameplay content.
- Needed by
- Neurotrauma, Performance Fix, and Enhanced Immersion's Lua features (zoom, zDoors).
- Load order
- Irrelevant for Lua/CS — or simply at the top if using the classic content-package method. With the launch-option method it isn't a workshop item at all.
⚙Client vs server side (the #1 confusion)
- Client-side runs on your game — always required for single-player and the sub editor.
- Server-side runs on the host. Some mods need only one side, some both — check each mod's page. (e.g. Neurotrauma works in MP with only server-side; Enhanced Immersion's zoom needs client-side per player.)
✓Installing it
Recommended: launch-option auto-updater
1
Close the game. In Steam, right-click Barotrauma → Properties → Launch Options.
2
Paste the platform-specific auto-updater command from the LuaCs Workshop page (Windows/Linux/macOS each have one).
3
Keep the LuaCs workshop item DISABLED. It now installs both sides from GitHub every launch and survives game updates and file verification.
Classic content-package method
- Subscribe/enable the workshop mod; pick LuaForBarotrauma in the Server Executable dropdown to host (server-side).
- While hosting, open the F3 console and run
install_cl_lua, then restart (client-side).
- You must redo the client step after every game update or file verification. (Linux uses a separate "Lua For Barotrauma Linux" package; macOS needs a manual install.)
🔍Verifying it works
- Client check: press
F3 and type cl_reloadluacs. "Command not found" = not installed client-side.
- Server check: host, then type
reloadluacs. "Command not found" = not installed server-side.
Multiplayer rule of thumb: everyone subscribes to the same mod list, everyone runs the LuaCs launch-option installer, and the host selects LuaForBarotrauma as the Server Executable before hosting.
▤Sources