FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.74k stars 406 forks source link

[Unstable] Bots trying to heal crashes the game #13355

Closed ConnorsSilverpaws closed 8 months ago

ConnorsSilverpaws commented 9 months ago

Disclaimers

What happened?

Bots that try to heal (whether through self-order or player-ordered), will crash the game. Bandaging seems to work, even through they ignore the torso, so blood loss also ignored. Guessing it might be opium/morphine.

Reproduction steps

  1. Start game
  2. Have a human on same team damaged
  3. Order bot to do medical attention
  4. Crash

Bug prevalence

Happens every time I play

Single player or multiplayer?

Happens in both single player and multiplayer

-

No response

Version

Other

-

1.2.10.0

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

Barotrauma Client crash report (generated on 01/26/2024 22:47:08)

Barotrauma seems to have crashed. Sorry for the inconvenience! 

7D713A394016804C4F24403CE0423E34

Game version 1.2.10.0 (UnstableWindows, branch release/spring-update, revision ef07344f2c)
Graphics mode: 2560x1600 (Windowed)
VSync ON
Language: English
Selected content packages: Vanilla (2435A23)
Level seed: no level loaded
Loaded submarine: Humpback (5EF572D76445ABC84A692D8F6A834161)
Selected screen: Barotrauma.GameScreen
SteamManager initialized

System info:
    Operating system: Microsoft Windows NT 10.0.19045.0 64 bit
    GPU name: NVIDIA GeForce GTX 1070
    Display mode: {Width:3840 Height:2160 Format:Color AspectRatio:1.7777778}
    GPU status: Normal

Exception: Value cannot be null. (Parameter 'key') (System.ArgumentNullException)
Target site: Void ThrowArgumentNullException(System.ExceptionArgument)
Stack trace: 
   at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
   at Barotrauma.CharacterHealth.GetAfflictionLimb(Affliction affliction) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\Health\CharacterHealth.cs:line 372
   at Barotrauma.AIObjectiveRescue.ApplyTreatment(Affliction affliction, Item item) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\Objectives\AIObjectiveRescue.cs:line 474
   at Barotrauma.AIObjectiveRescue.GiveTreatment(Single deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\Objectives\AIObjectiveRescue.cs:line 328
   at Barotrauma.AIObjectiveRescue.Act(Single deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\Objectives\AIObjectiveRescue.cs:line 65
   at Barotrauma.AIObjective.TryComplete(Single deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\Objectives\AIObjective.cs:line 180
   at Barotrauma.HumanAIController.Update(Single deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\HumanAIController.cs:line 478
   at Barotrauma.Character.UpdateAll(Single deltaTime, Camera cam) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\Character.cs:line 3148
   at Barotrauma.GameScreen.Update(Double deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Screens\GameScreen.cs:line 185
   at Barotrauma.GameMain.Update(GameTime gameTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GameMain.cs:line 857
   at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 656
   at Microsoft.Xna.Framework.Game.Tick() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 500
   at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\SDL\SDLGamePlatform.cs:line 93
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 397
   at Microsoft.Xna.Framework.Game.Run() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 367
   at Barotrauma.Program.Main(String[] args) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Program.cs:line 58

Last debug messages:
[01/26/2024 22:46:24] spawn assistant cursor
[01/26/2024 22:46:11] spawnitem "Revolver Round" inventory 16
[01/26/2024 22:43:04] Attempting to open ALC device "OpenAL Soft on Headset Earphone (G435 Wireless Gaming Headset)"
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:43:04] WARNING: The language English is no longer available. Switching to English...
[01/26/2024 22:42:57] Logged in as ConnorsSilverpaws (SteamID STEAM_1:0:12166402)
evan-dileo commented 8 months ago

Hi there -- experiencing the same / including my crash report as well, in case it's helpful:

Barotrauma seems to have crashed. Sorry for the inconvenience! 

7D713A394016804C4F24403CE0423E34

Game version 1.2.10.0 (UnstableWindows, branch release/spring-update, revision ef07344f2c)
Graphics mode: 3440x1440 (BorderlessWindowed)
VSync ON
Language: English
Selected content packages: Vanilla (2435A23), Apo-4A Saber (06F708A), [VH] The Iroh (6BF9754), R-278 «Dugong» (FB6E838), X37 Assault Carrier (4F23C5F)
Level seed: Sabbati Macula17Gangpo18
Loaded submarine: Orca2 (486C59CF2CACE97E0514DE58DED88B22)
Selected screen: Barotrauma.GameScreen
SteamManager initialized

System info:
    Operating system: Microsoft Windows NT 10.0.19045.0 64 bit
    GPU name: NVIDIA GeForce RTX 3070
    Display mode: {Width:3440 Height:1440 Format:Color AspectRatio:2.3888888}
    GPU status: Normal

Exception: Value cannot be null. (Parameter 'key') (System.ArgumentNullException)
Target site: Void ThrowArgumentNullException(System.ExceptionArgument)
Stack trace: 
   at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
   at Barotrauma.CharacterHealth.GetAfflictionLimb(Affliction affliction) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\Health\CharacterHealth.cs:line 372
   at Barotrauma.AIObjectiveRescue.ApplyTreatment(Affliction affliction, Item item) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\Objectives\AIObjectiveRescue.cs:line 474
   at Barotrauma.AIObjectiveRescue.GiveTreatment(Single deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\Objectives\AIObjectiveRescue.cs:line 328
   at Barotrauma.AIObjectiveRescue.Act(Single deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\Objectives\AIObjectiveRescue.cs:line 248
   at Barotrauma.AIObjective.TryComplete(Single deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\Objectives\AIObjective.cs:line 180
   at Barotrauma.HumanAIController.Update(Single deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\AI\HumanAIController.cs:line 478
   at Barotrauma.Character.UpdateAll(Single deltaTime, Camera cam) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Characters\Character.cs:line 3148
   at Barotrauma.GameScreen.Update(Double deltaTime) in <DEV>\Barotrauma\BarotraumaShared\SharedSource\Screens\GameScreen.cs:line 185
   at Barotrauma.GameMain.Update(GameTime gameTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GameMain.cs:line 857
   at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 656
   at Microsoft.Xna.Framework.Game.Tick() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 500
   at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\SDL\SDLGamePlatform.cs:line 93
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 397
   at Microsoft.Xna.Framework.Game.Run() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 367
   at Barotrauma.Program.Main(String[] args) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Program.cs:line 58

Last debug messages:
[01/31/2024 05:08:29] Could not find a spawn point for a SpawnAction (spawn location: BeaconStation (tag: beacon_bandit), skipping.
[01/31/2024 05:08:09] Generating an outpost for the end of the level... (Location: Gangpo Research Center, level type: LocationConnection)
[01/31/2024 05:08:08] Generating an outpost for the start of the level... (Location: Sabbati Macula, level type: LocationConnection)
[01/31/2024 05:08:05] Level identifier: greatseabasic
[01/31/2024 05:06:44] Attempting to open ALC device "OpenAL Soft on Headphones (CORSAIR HS60 HAPTIC Gaming Headset)"
[01/31/2024 05:06:42] Logged in as evantime (SteamID STEAM_1:0:8653736)