Barotrauma

Barotrauma

Remove all
Nupaska  [developer] 30 Sep, 2023 @ 11:45am
Bugs
< >
Showing 1-3 of 3 comments
objir 7 Sep, 2024 @ 5:24am 
I am getting crashes when I edit a save and load it without restarting the game:

Exception: Object reference not set to an instance of an object. (System.NullReferenceException)
Target site: Boolean LevelRenderer_DrawBackground_Prefix(Microsoft.Xna.Framework.Graphics.SpriteBatch, Barotrauma.Camera, Barotrauma.LevelObjectManager, Barotrauma.BackgroundCreatureManager, Barotrauma.LevelRenderer)
Stack trace:
at RemoveAll.RemoveAllMod.LevelRenderer_DrawBackground_Prefix(SpriteBatch spriteBatch, Camera cam, LevelObjectManager backgroundSpriteManager, BackgroundCreatureManager backgroundCreatureManager, LevelRenderer __instance)
at Barotrauma.LevelRenderer.DrawBackground_Patch2(LevelRenderer this, SpriteBatch spriteBatch, Camera cam, LevelObjectManager backgroundSpriteManager, BackgroundCreatureManager backgroundCreatureManager)
at RemoveAll.RemoveAllMod.Level_DrawBack_Prefix(GraphicsDevice graphics, SpriteBatch spriteBatch, Camera cam, Level __instance)
at Barotrauma.Level.DrawBack_Patch1(Level this, GraphicsDevice graphics, SpriteBatch spriteBatch, Camera cam)
at Barotrauma.GameScreen.DrawMap(GraphicsDevice graphics, SpriteBatch spriteBatch, Double deltaTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Screens\GameScreen.cs:line 227
at Barotrauma.GameScreen.Draw(Double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Screens\GameScreen.cs:line 123
at Barotrauma.GameMain.Draw(GameTime gameTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GameMain.cs:line 1059
at Microsoft.Xna.Framework.Game.DoDraw(GameTime gameTime) in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 669
at Microsoft.Xna.Framework.Game.Tick() in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 508
at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\SDL\SDLGamePlatform.cs:line 93
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 397
at Microsoft.Xna.Framework.Game.Run() in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 367
at Barotrauma.Program.Main(String[] args) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Program.cs:line 61

No crashes after restarting the game.
Nupaska  [developer] 7 Sep, 2024 @ 8:40am 
So, you opened some save, closed it, edited it in save editor, opened it again and game crashed?
objir 7 Sep, 2024 @ 8:47am 
Originally posted by Nupaska:
So, you opened some save, closed it, edited it in save editor, opened it again and game crashed?
Yes. And I only change some missions's destination ids.
Last edited by objir; 7 Sep, 2024 @ 8:48am
< >
Showing 1-3 of 3 comments
Per page: 1530 50