Barotrauma

Barotrauma

3,590 beoordelingen
Lua For Barotrauma
48
32
7
11
20
12
12
6
6
3
5
8
6
3
3
5
4
4
2
2
2
2
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
162.734 MB
28 jul 2021 om 9:10
29 apr om 12:33
181 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Lua For Barotrauma

Omschrijving
Updated for the Calm Before The Storm v1.8.8.1
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
Populaire discussies Alles weergeven (42)
24
29 apr om 20:54
UPDATE LUA!!!!!
Личинка
3
6 mei om 1:22
What we have in new hotfix update?
Ghost Division
11
6 mei om 1:55
Help with Lua (not being able to launch the game)
Wistful_Muse
2.379 opmerkingen
Another goddamn hotfix!
Cajunvoodoo 1 mei om 21:11 
Your setup command does not work on some linux distros. Notably, it does not work on NixOS, where steam does not have `wget` by default, nor does it have superfluous libraries like libicu in scope. Here is a better, more reliable, more portable script that should work on more distros:

patch_lua_barotrauma.sh
[code]
#! /usr/bin/env bash

set -eu

curl -L https://github.com/Luatrauma/Luatrauma.AutoUpdater/releases/download/latest/Luatrauma.AutoUpdater.linux-x64 -o Luatrauma.AutoUpdater.linux-x64

export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

./Luatrauma.AutoUpdater.linux-x64
[/code]
Make sure to `chmod +x` this.


Then, for the run arguments,
[code]
./patch_lua_barotrauma.sh && %command%
[/code]
Evil Factory  [auteur] 1 mei om 17:32 
its actually the opposite, github is updated faster than workshop, plus it doesn't suffer from all the weird issues that come from the barotrauma workshop system
welcome to all software that have autoupdates as a feature
Bearox 1 mei om 17:16 
I second Orio not only it is extremly dangerous it is not updated and it causes many bugs use the install_cl_lua
Orio Prisco 30 apr om 4:58 
Downloading and executing a script every time you launch the game is making it more likely to get hacked. I really do not recommend you do that !!
ZpaceMag 30 apr om 2:15 
Whenever I use the Launch Options install, my game just crashes right after launching it. I press play, the cmd pops up, closes, then the game doesn't launch.
mike dildo 30 apr om 1:16 
thank you so much for the update I love you so much youre the best ever good work legend
One Last Tlipoca 29 apr om 17:50 
Praise the Evil Factory!:Tlipoca:
󠀡 29 apr om 13:49 
for 1.8.8.1 ingame update error, unsubscribe in workshop, subscribe again, so work now.:steamhappy:
Karasevich 29 apr om 12:43 
MAN You are Sigma chad yeah?? Love:steamhappy: