Barotrauma

Barotrauma

Multiplayer crew manager
This topic has been locked
Oiltanker  [developer] 12 May, 2022 @ 5:13am
Bug Reports - Update: 12 May @ 3:10pm
- Fix for in-mission respawns
< >
Showing 1-15 of 19 comments
IT9 13 May, 2022 @ 5:44am 
Thanks for your efforts on supporting the mod. Unfortunately, I am still unable to respawn bots.

I tried to gather more information, below is what I did:
1. I cloned a copy of the latest mod source code from GitHub.
2. I added a log message in CSharp/Server.McmControl.cs like the following:

178 counter--;
179 LuaCsSetup.PrintCsMessage($"[MCM-SERVER][CSharp/Server/McmControl.Update] counter = {counter}"); // I added this
180 if (counter <= 0) {

3. I tried to start a run with the modified mod, below is the snippet of my server log:

===== START of log =====

...

[5/13/2022 8:23:19 PM]
[CS] [MCM-SERVER] Saving multiplayer campaign

...

[5/13/2022 8:23:40 PM]
Game mode: Campaign

[5/13/2022 8:23:40 PM]
Submarine: Azimuth

[5/13/2022 8:23:40 PM]
Level seed: Uusi-TurcuSharpitor Linea

[5/13/2022 8:23:40 PM]
Mission: Activate beacon

[5/13/2022 8:23:40 PM]
Round started.

[5/13/2022 8:23:40 PM]
[CS] [MCM-SERVER][CSharp/Server/McmControl.Update] counter = -2

[5/13/2022 8:23:41 PM]
[CS] [MCM-SERVER][CSharp/Server/McmControl.Update] counter = 14

[5/13/2022 8:23:41 PM]
[CS] [MCM-SERVER][CSharp/Server/McmControl.Update] counter = 13


... skipping 98 similar messages ...

[CS] [MCM-SERVER][CSharp/Server/McmControl.Update] counter = 4

[5/13/2022 8:23:50 PM]
IT9 set the value "Channel" of the item "Headset" to "0".


... skipping unless log messages. Not containing the counter message ...

[5/13/2022 8:24:23 PM]
Hanano Wada has died (Cause of death: Barotrauma)


... skipping unless log messages. Not containing the counter message ...

[5/13/2022 8:25:56 PM]
IT9: The bot didn't respawn

... skipping unless log messages. Not containing the counter message ...

===== END of log =====

It seems to me that the mcm_RespawnManager_Update hook is called at the start of the mission, but not when I am doing the mission. I'm not sure if it is normal.

I also tried to complete the mission, but the bots didn't respawn next round and disappear.
Oiltanker  [developer] 13 May, 2022 @ 8:18am 
Odd issue, you can fix it by typing the command reloadlua on the begging of hosting
Oiltanker  [developer] 13 May, 2022 @ 8:19am 
Trying to figure out why that happens
IT9 13 May, 2022 @ 9:04am 
Thx. After typing the command reloadlua, the bots can respawn now.
Oiltanker  [developer] 13 May, 2022 @ 4:08pm 
RespawnManager Update method just stops working
Next LuaCs release, which will hopefully will come out tomorrow, I'll have a workaround.
Oiltanker  [developer] 15 May, 2022 @ 7:23am 
@IT9 should be fixed now
IT9 16 May, 2022 @ 10:21am 
Thx, I confirmed that respawn is working even without the reloadlua command.
Last edited by IT9; 16 May, 2022 @ 10:25am
Iceman 23 May, 2022 @ 4:00am 
@Oiltanker

Hi! First of all, thank you very much for the mod! Very cool that you implemented such a feature =).

Second, I have the following problem: when trying to play with a friend, one of us can not change the current team member under control by clicking on the name in the upper left corner (crew list). We both have LUA installed on the client side (in the main menu, both have an inscription in the upper left corner about it). I start the server and in some cases I can't change crew member this way, but my friend can. And after restarting the server (again, I start it), I can change a crew member, but my friend cannot.
Can you tell me how to solve this problem and if it is possible?
Oiltanker  [developer] 25 May, 2022 @ 11:06pm 
Interesting it might be that your enabled mod list gets changed after disconnecting from the server, a baro bug, you need both LuaForBarotrauma and CsForBarotrauma enabled, alongside with my mod (best to try without any other mods to check for issues in isolation). If issues continue try opening the console and typing cl_reloadlua. Report me if any of that helps
Oiltanker  [developer] 25 May, 2022 @ 11:07pm 
A good parctise is after disconnecting from the server re-apply your mod list, before the game forgets it.
Iceman 26 May, 2022 @ 8:04am 
Thanks for the idea! After my friend and I try it, I'll report back.
Iceman 31 May, 2022 @ 1:14pm 
After the last update of all libraries and mod, everything works fine. There was no need to reload Lua through the console. 🙂
Last edited by Iceman; 31 May, 2022 @ 1:14pm
Hijack Hornet 4 Jun, 2022 @ 10:07pm 
I get non result with "mcm". Its like the command doesnt exist
tom 6 Jun, 2022 @ 10:22pm 
1, no mcm commands to use
2, players cant respawn in multiplayer campaign
3, players cant control their character if they leave mid round and join back
4, removing the mod wipes all character data (inventory, talents, skills, etc.)
any idea how to tackle these? me and all players included have lua installed correctly.
Hijack Hornet 7 Jun, 2022 @ 1:04pm 
i got all of the above too. I just removed the mod.
< >
Showing 1-15 of 19 comments
Per page: 1530 50