tModLoader

tModLoader

High FPS Support
JJ's Place 13. jan. 2024 kl. 13.04
In game crash.
Not sure what exactly is causing the issue but i was waling though a cobweb when the crash occurred. Don't know if its related bu thought id mention it.


Logs:
[15:00:42.895] [Main Thread/ERROR] [Terraria]: System.InvalidOperationException: Begin has been called before calling End after the last call to Begin. Begin cannot be called again until End has been successfully called.
at Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix) in D:\a\tModLoader\tModLoader\FNA\src\Graphics\SpriteBatch.cs:line 284
at Terraria.GameContent.AnOutlinedDrawRenderTargetContent.HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch) in tModLoader\Terraria\GameContent\AnOutlinedDrawRenderTargetContent.cs:line 31
at Terraria.Graphics.Renderers.MapHeadRenderer.PrepareRenderTarget(GraphicsDevice device, SpriteBatch spriteBatch) in tModLoader\Terraria\Graphics\Renderers\MapHeadRenderer.cs:line 72
at DMD<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime gameTime)
at HighFPSSupport.TickRateModifier.OnDraw(orig_DoDraw orig, Main self, GameTime gameTime) in HighFPSSupport\TickRateModifier.cs:line 64
at Hook<System.Void HighFPSSupport.TickRateModifier::OnDraw(Terraria.On_Main+orig_DoDraw,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at SyncProxy<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52853
at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52834
[15:00:43.004] [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.InvalidOperationException: Begin has been called before calling End after the last call to Begin. Begin cannot be called again until End has been successfully called.
at Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix) in D:\a\tModLoader\tModLoader\FNA\src\Graphics\SpriteBatch.cs:line 284
at Terraria.GameContent.AnOutlinedDrawRenderTargetContent.HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch) in tModLoader\Terraria\GameContent\AnOutlinedDrawRenderTargetContent.cs:line 31
at Terraria.Graphics.Renderers.MapHeadRenderer.PrepareRenderTarget(GraphicsDevice device, SpriteBatch spriteBatch) in tModLoader\Terraria\Graphics\Renderers\MapHeadRenderer.cs:line 72
at DMD<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime gameTime)
at HighFPSSupport.TickRateModifier.OnDraw(orig_DoDraw orig, Main self, GameTime gameTime) in HighFPSSupport\TickRateModifier.cs:line 64
at Hook<System.Void HighFPSSupport.TickRateModifier::OnDraw(Terraria.On_Main+orig_DoDraw,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at SyncProxy<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at Terraria.Main.Draw_Inner(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52853
at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52834
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
[15:00:43.010] [Main Thread/DEBUG] [TerrariaSteamClient]: Send: shutdown
< >
Viser 110 av 10 kommentarer
Stellar  [utvikler] 13. jan. 2024 kl. 15.00 
Yeah I can't get anything strange to happen by moving through cobwebs. Have you encountered this crash multiple times before?
JJ's Place 13. jan. 2024 kl. 18.35 
Yes I have. I think it has more to do with rendering a certain amount of tiles consecutively. I noticed that when I was constantly moving the crash would happen faster. But when i slowed down and moved at a slower pace I was able to go longer without crashing. But this crash happens every time i try to play. I do have a pretty large mod list so if I find specific mod conflicts I will report them here.
JJ's Place 28. jan. 2024 kl. 19.31 
So from testing this crash seems to happen when ever I enable the Secrets of the Shadows mod. I am not 100% sure though. Ill do more testing but at least we have a mod to start testing with.
JJ's Place 28. jan. 2024 kl. 19.38 
Ok I am glad i tested more. I can get the crash to happen constantly with SOTS and Nitrate enabled along with this mod.
Stellar  [utvikler] 28. jan. 2024 kl. 19.41 
Oh yeah I wouldn't expect this mod to be super compatible with Nitrate LOL

Is it specifically Nitrate or the combination of it with SOTS as well?
JJ's Place 28. jan. 2024 kl. 19.44 
Yes when I disable Nitrate the crash doesn't happen.
JJ's Place 28. jan. 2024 kl. 19.45 
Let me test vice versa
JJ's Place 28. jan. 2024 kl. 19.46 
Ok my bad the problem is just with Nitrate
Stellar  [utvikler] 28. jan. 2024 kl. 19.51 
Yeah If you want to use Nitrate for its optimizations I would expect things to probably work okay, but I wouldn't try and use the optimizations from both mods at once.
Sist redigert av Stellar; 28. jan. 2024 kl. 19.51
JJ's Place 28. jan. 2024 kl. 20.06 
Yeah I figured. And if you need it, all the settings for this mod I kept on default. Thanks for the quick response though.
< >
Viser 110 av 10 kommentarer
Per side: 1530 50