DominicKarma / Realistic-Sky

A Terraria mod that improves the visuals of the sky to be more realistic.
MIT License
4 stars 1 forks source link

Mod crashes on reload after newest update #13

Closed Omega-Dapling closed 5 months ago

Omega-Dapling commented 5 months ago

image This error only happens on reload, not when initially loading mods.

milkembers commented 5 months ago

i'm having the same issue

dotnet_2024-04-14_17-49-15

error log under spoiler ``` [17:49:03.597] [Main Thread/WARN] [tML]: Silently Caught Exception: System.NullReferenceException: Object reference not set to an instance of an object. at RealisticSky.Content.Atmosphere.AtmosphereRenderer.RenderToTarget() in RealisticSky\Content\Atmosphere\AtmosphereRenderer.cs:line 40 at RealisticSky.Content.Atmosphere.AtmosphereTargetContent.HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch) in RealisticSky\Content\Atmosphere\AtmosphereTargetContent.cs:line 21 at DMD(Main this, GameTime gameTime) at SyncProxy(Main , GameTime ) at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52909 at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52896 at Microsoft.Xna.Framework.Game.Tick() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 562 at Microsoft.Xna.Framework.Game.RunLoop() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 878 at Microsoft.Xna.Framework.Game.Run() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 419 at Terraria.Program.RunGame() in tModLoader\Terraria\Program.cs:line 266 at Terraria.Program.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 240 at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 213 at Terraria.MonoLaunch.Main_End(String[] args) in tModLoader\Terraria\MonoLaunch.cs:line 78 at Terraria.MonoLaunch.<>c__DisplayClass1_0.
b__1() in tModLoader\Terraria\MonoLaunch.cs:line 64 at System.Threading.Thread.StartCallback() [17:49:03.598] [Main Thread/ERROR] [Terraria]: System.NullReferenceException: Object reference not set to an instance of an object. at RealisticSky.Content.Atmosphere.AtmosphereRenderer.RenderToTarget() in RealisticSky\Content\Atmosphere\AtmosphereRenderer.cs:line 40 at RealisticSky.Content.Atmosphere.AtmosphereTargetContent.HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch) in RealisticSky\Content\Atmosphere\AtmosphereTargetContent.cs:line 21 at DMD(Main this, GameTime gameTime) at SyncProxy(Main , GameTime ) at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52919 at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52900 [17:49:03.674] [Main Thread/FATAL] [tML]: Main engine crash Tip: This is likely a mod's fault. Disable mods one by one and check if the issue persists System.NullReferenceException: Object reference not set to an instance of an object. at RealisticSky.Content.Atmosphere.AtmosphereRenderer.RenderToTarget() in RealisticSky\Content\Atmosphere\AtmosphereRenderer.cs:line 40 at RealisticSky.Content.Atmosphere.AtmosphereTargetContent.HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch) in RealisticSky\Content\Atmosphere\AtmosphereTargetContent.cs:line 21 at DMD(Main this, GameTime gameTime) at SyncProxy(Main , GameTime ) at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52919 at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52900 at Microsoft.Xna.Framework.Game.Tick() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 562 at Microsoft.Xna.Framework.Game.RunLoop() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 878 at Microsoft.Xna.Framework.Game.Run() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 419 at Terraria.Program.RunGame() in tModLoader\Terraria\Program.cs:line 266 [17:49:03.674] [Main Thread/DEBUG] [TerrariaSteamClient]: Send: shutdown ```
DominicKarma commented 5 months ago

Should be addressed now.