[0.6.1.4] Barotrauma Server Modification

A place to show off your mods and discuss modding Barotrauma.
User avatar
nilanthanimosus
Class-D
Posts: 8
Joined: Thu Aug 10, 2017 6:48 pm

[0.6.1.4] Barotrauma Server Modification

Postby nilanthanimosus » Sat Aug 12, 2017 11:29 pm

This is a modification Solely for server hosts, it cannot be used as a client and will likely crash for single player (it CAN if not was meant for play-as and client GUI hosting however, this is definitely good for local hosting with friends).

It is also a little untested for dedicated usage (it should work for it though but no guarantees).

It's a little hard to have pictures of a server modification that is primarily modifying mechanics over visual changes, but here you go:
Spoiler
Image

Image

Image

Image


Down to explaining what this actually is for, This server modification allows you to change the very mechanics and calculation of barotrauma on the server side, it allows for you to modify the XML files without the clients having the same modifications, as long as one does not add new content and instead changes values that sync this more or less is ok to do.

It also comes with a variety of new mechanics, Its been hosted a long time under the name "ARS - Epic Survival" without even using its full features, generally these mechanics can all be enabled, disabled and configured to your liking.

The server is capable more or less of the following:
Spoiler
-Dynamically change all the settings at run time mid-round.
-Prevent players deaths and allow them to stay unconscious indefinitely unless they use "Give In"
-Increase health values via multipliers, independently for player characters, infected player characters and AI fish. There are even small tidbits to this, such as configurable health Regen / bleed multipliers and oxygen rates.
-A progressive crush mechanic where you can configure an oxygen/heatlh/bleed change over time, instead of immediately crushing the player to pressure.
-Modify the mechanics of abyss submarine crushing.
-Change the behavior of respawning, the max respawn settings are still not finished yet but you can control behavior such as respawn to main sub (Death match-like), how long it stays past-timer expiry, if it auto pilots back and other such.
-debug settings for simulating lag about as good as the real thing, if you wish to test locally how your clients feel your modified server you may. additionally includes options to turn off error messages that fill up the console at times.
-You may setup the server to a default, launching from clicking the executable to going straight to auto start as a GUI server.
-Comes with custom GUI changes for fast-command access, better sorting of the logging and in general a few quality of life features such as Ctrl+Clicking the server log filters to hide all others.
-Optional revamped method of handling armor code, original armor code is handled as a direct subtraction, where "10" would yield -10 bleed and -10 direct damage. you may use RPG-like power decreasing, multiplicative and direct decrease as a combination now.
-CPR can be setup as to grant health/blood clotting and stun removal, in addition to oxygen. scaling with skill and having skill requirements if you wish - since you can edit the XMLs you may even define your own custom skill levels.
-Ability to change the hosts playing name and optionally bypass skill checks as host (This is more so for spawned humans and husks which always have 0 skill).
-Ability to custom-tailor and define event-based messages tailored to specific players, such as on server join, respawn, shuttle timer getting low or being a traitor.
Ability to setup a help-system of help topics, the framework is there but I have not had the time yet to write out the XML for it.
Additional debug console commands to make spawning items, operation of the server and modding the XMLs a little simpler - Use help to check the commands list.


One major flaw is that there is a lack of documentation at the moment, I did not feel this was ready for release but its not strictly buggy as it is possibly confusing.

Another major detail to note is the mod is definately nowhere near finished, it has disabled features, one or two lines that do nothing and a lot of its nicer features commented out in the code, such as default submarine not being chosen or disabled HUD elements.


Download Link (17/08/2017): https://www.dropbox.com/s/bmbgap7kkns12su/v0.6.1.4%20ServerMod%20Patch%2017082017-1.rar?dl=0

Instructions:
Simply extract the .rar and overwrite a copy (That you don't play with as a client) of barotrauma 0.6.1.4
Start the game once then close to generate the XML's, they will be added into the Data folder. have fun tweaking! :wink:
Last edited by nilanthanimosus on Thu Aug 17, 2017 4:35 pm, edited 4 times in total.
Host of ARS (A Random Server)

User avatar
Fakyring
Class-D
Posts: 5
Joined: Mon Aug 14, 2017 11:22 am
Contact:

Re: Barotrauma Server Modification

Postby Fakyring » Mon Aug 14, 2017 11:50 am

Very cool mod, but why not all abilities are working?

User avatar
nilanthanimosus
Class-D
Posts: 8
Joined: Thu Aug 10, 2017 6:48 pm

Re: Barotrauma Server Modification

Postby nilanthanimosus » Mon Aug 14, 2017 2:35 pm

I believe you mean the buttons on the GUI (For quick access of debug commands) being disabled - their unfinished (I literally just made that a day before I released it here). I need to write some methods and input screens to choose a player / creature and such. for now though most of it works correctly but is setup to emulate (as best it can) default Barotrauma.

It has a lack of documentation that's up to date right now, that is probably what I'll be working on when I get around to it.

I will need to figure out the GUI more to create some lovely input menus for those commands though, I should have added the reason they are disabled to the opening post :wink:
Host of ARS (A Random Server)

User avatar
Fakyring
Class-D
Posts: 5
Joined: Mon Aug 14, 2017 11:22 am
Contact:

Re: [0.6.1.4] Barotrauma Server Modification

Postby Fakyring » Tue Aug 15, 2017 11:32 am

There is also one bug: when shuttle is going to spawn the game crashs. I hope that it will be fixed near future

User avatar
nilanthanimosus
Class-D
Posts: 8
Joined: Thu Aug 10, 2017 6:48 pm

Re: [0.6.1.4] Barotrauma Server Modification

Postby nilanthanimosus » Tue Aug 15, 2017 12:48 pm

As far as I'm aware there are no bugs with re-spawning that are caused by my modification that are not present in default barotrauma - could you please attach or pastebin the crashlog.txt in the games folder so I can check it out? Otherwise I have no real idea what the issue possibly is. I don't think it should be related to job assignment as that's been fixed for sure now no matter what XML edits one makes.

If it is however "FarseerPhysics.Dynamics.Body.set_Enabled" that is a crash that can occur with default barotrauma to my understanding, and occurs on round starts too. (And I've no idea how I would work that out other than to run a server in debug mode for a week until it splatted on everyone - I will try that at some point though for that crash).
Host of ARS (A Random Server)

User avatar
Fakyring
Class-D
Posts: 5
Joined: Mon Aug 14, 2017 11:22 am
Contact:

Re: [0.6.1.4] Barotrauma Server Modification

Postby Fakyring » Wed Aug 16, 2017 11:35 am

nilanthanimosus wrote:As far as I'm aware there are no bugs with re-spawning that are caused by my modification that are not present in default barotrauma - could you please attach or pastebin the crashlog.txt in the games folder so I can check it out? Otherwise I have no real idea what the issue possibly is. I don't think it should be related to job assignment as that's been fixed for sure now no matter what XML edits one makes.

If it is however "FarseerPhysics.Dynamics.Body.set_Enabled" that is a crash that can occur with default barotrauma to my understanding, and occurs on round starts too. (And I've no idea how I would work that out other than to run a server in debug mode for a week until it splatted on everyone - I will try that at some point though for that crash).


Of course: https://pastebin.com/KV2B2Yrw

User avatar
nilanthanimosus
Class-D
Posts: 8
Joined: Thu Aug 10, 2017 6:48 pm

Re: [0.6.1.4] Barotrauma Server Modification

Postby nilanthanimosus » Wed Aug 16, 2017 4:56 pm

:REDACTED:

I figured out the cause of that crash, I'll have it fixed and uploaded. In short it's only caused if the host respawns into the shuttle.

Uploaded the small bugfix that crashes a server on spawning the hosts character.
Host of ARS (A Random Server)


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 1 guest