Barotrauma 潜渊症

Barotrauma 潜渊症

多人船员控制
此主题已被锁定
Oiltanker  [开发者] 2022 年 5 月 12 日 上午 5:13
Bug Reports - Update: 12 May @ 3:10pm
- Fix for in-mission respawns
< >
正在显示第 1 - 15 条,共 19 条留言
IT9 2022 年 5 月 13 日 上午 5:44 
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  [开发者] 2022 年 5 月 13 日 上午 8:18 
Odd issue, you can fix it by typing the command reloadlua on the begging of hosting
Oiltanker  [开发者] 2022 年 5 月 13 日 上午 8:19 
Trying to figure out why that happens
IT9 2022 年 5 月 13 日 上午 9:04 
Thx. After typing the command reloadlua, the bots can respawn now.
Oiltanker  [开发者] 2022 年 5 月 13 日 下午 4:08 
RespawnManager Update method just stops working
Next LuaCs release, which will hopefully will come out tomorrow, I'll have a workaround.
Oiltanker  [开发者] 2022 年 5 月 15 日 上午 7:23 
@IT9 should be fixed now
IT9 2022 年 5 月 16 日 上午 10:21 
Thx, I confirmed that respawn is working even without the reloadlua command.
最后由 IT9 编辑于; 2022 年 5 月 16 日 上午 10:25
Iceman 2022 年 5 月 23 日 上午 4:00 
@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  [开发者] 2022 年 5 月 25 日 下午 11:06 
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  [开发者] 2022 年 5 月 25 日 下午 11:07 
A good parctise is after disconnecting from the server re-apply your mod list, before the game forgets it.
Iceman 2022 年 5 月 26 日 上午 8:04 
Thanks for the idea! After my friend and I try it, I'll report back.
Iceman 2022 年 5 月 31 日 下午 1:14 
After the last update of all libraries and mod, everything works fine. There was no need to reload Lua through the console. 🙂
最后由 Iceman 编辑于; 2022 年 5 月 31 日 下午 1:14
Hijack Hornet 2022 年 6 月 4 日 下午 10:07 
I get non result with "mcm". Its like the command doesnt exist
t 2022 年 6 月 6 日 下午 10:22 
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 2022 年 6 月 7 日 下午 1:04 
i got all of the above too. I just removed the mod.
< >
正在显示第 1 - 15 条,共 19 条留言
每页显示数: 1530 50