Barotrauma

Barotrauma

2,868 vurderinger
Lua For Barotrauma
33
24
9
4
14
12
5
9
4
7
3
3
4
4
2
3
2
2
2
2
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
158.896 MB
28. juli 2021 kl. 9:10
28. aug. kl. 9:31
172 ændringsbemærkninger ( vis )

Abonner for at downloade
Lua For Barotrauma

Beskrivelse
Updated for the v1.5.9.2 Summer Update + Hotfix + Hotfix 2 + Hotfix 3
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
Populære diskussioner Vis alle (32)
6
10. apr. kl. 2:50
unknown crash when starting server (mac)
le0twigs
4
29. maj kl. 13:01
Lua Mac Fix
W4MONGER
3
17. mar. kl. 1:20
lua for mac tutorial
Goosey
1.923 kommentarer
Holy frog 1. sep. kl. 14:02 
on god
Rook 1. sep. kl. 13:57 
Game is unplayable, Uninstalled itself
Mr.Stonewood 31. aug. kl. 13:38 
When I try to install_cl_lua it says command not found?
MrWomanStealer 28. aug. kl. 9:58 
barotrauma players try not to scream "update pls" at every hotfix:
Evil Factory  [ophavsmand] 28. aug. kl. 9:31 
now its actually updated
Evil Factory  [ophavsmand] 28. aug. kl. 9:24 
oh god steam is verifying every single mod I have subscribed before it uploads the mod to workshop again, update in ~5 minutes
Evil Factory  [ophavsmand] 28. aug. kl. 9:21 
Updated for the v1.5.9.2 hotfix
EthicalObligation 28. aug. kl. 6:10 
Literally 2 lines of code changed in the new revision. The rest is just metadata.
EthicalObligation 28. aug. kl. 6:06 
Created a pull request on your github repo should be okay. Please sanity check as usual.
PHOENIX 28. aug. kl. 6:05 
Update!