tModLoader

tModLoader

Secrets Of The Shadows
JJ's Place 20 Apr, 2024 @ 3:23pm
New bug sinnce recent update
This crash has been happening since the mod updated and never happened before the update. Ill try and see if its a mod compatibility issue the the crash also happened when i opened the manage mods section of the workshop so idk.

Logs:
[17:20:12.192] [Main Thread/WARN] [tML]: Silently Caught Exception:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Terraria.Player.GetModPlayer[T](T baseInstance) in tModLoader\Terraria\Player.TML.cs:line 97
at SOTS.FakePlayer.PlayerInventorySlotsManager.DrawSubspaceSlot(Item item) in SOTS\FakePlayer\FakePlayerHelper.cs:line 288
at SOTS.SOTSDetours.ItemSlot_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color(orig_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color orig, SpriteBatch spriteBatch, Item[] inv, Int32 context, Int32 slot, Vector2 position, Color lightColor) in SOTSDetours.cs:line 813
at Hook<System.Void SOTS.SOTSDetours::ItemSlot_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color(Terraria.UI.On_ItemSlot+orig_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color,Microsoft.Xna.Framework.Graphics.SpriteBatch,Terraria.Item[],System.Int32,System.Int32,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Color)>(SpriteBatch , Item[] , Int32 , Int32 , Vector2 , Color )
at SyncProxy<System.Void Terraria.UI.ItemSlot:Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Terraria.Item[], System.Int32, System.Int32, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)>(SpriteBatch , Item[] , Int32 , Int32 , Vector2 , Color )
at Terraria.GameContent.UI.Chat.ItemTagHandler.ItemSnippet.UniqueDraw(Boolean justCheckingString, Vector2& size, SpriteBatch spriteBatch, Vector2 position, Color color, Single scale) in tModLoader\Terraria\GameContent\UI\Chat\ItemTagHandler.cs:line 59
at Terraria.UI.Chat.ChatManager.DrawColorCodedString(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, Color baseColor, Single rotation, Vector2 origin, Vector2 baseScale, Int32& hoveredSnippet, Single maxWidth, Boolean ignoreColors) in tModLoader\Terraria\UI\Chat\ChatManager.cs:line 211
at Terraria.UI.Chat.ChatManager.DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, String text, Vector2 position, Color baseColor, Single rotation, Vector2 origin, Vector2 baseScale, Single maxWidth, Single spread) in tModLoader\Terraria\UI\Chat\ChatManager.cs:line 375
at Terraria.Main.MouseText_DrawItemTooltip(MouseTextCache info, Int32 rare, Byte diff, Int32 X, Int32 Y) in tModLoader\Terraria\Main.cs:line 17260
at Terraria.Main.MouseTextInner(MouseTextCache info) in tModLoader\Terraria\Main.cs:line 16842
at DMD<System.Void Terraria.Main:DrawPendingMouseText()>()
at Hook<System.Void Redemption.Items.Armor.PostML.Xenium.XeniumVisor::SpoofMouseItem(Terraria.On_Main+orig_DrawPendingMouseText)>()
at SyncProxy<System.Void Terraria.Main:DrawPendingMouseText()>()
at DMD<System.Void Terraria.Main:DrawMenu(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime gameTime)
at ParticleLibrary.Core.DrawHooks.Draw_OnMainMenu(orig_DrawMenu orig, Main self, GameTime gameTime) in ParticleLibrary\Core\DrawHooks.cs:line 571
at Hook<System.Void ParticleLibrary.Core.DrawHooks::Draw_OnMainMenu(Terraria.On_Main+orig_DrawMenu,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at ParticleLibrary.ParticleManager.DrawParticlesBeforeAndAfterMainMenu(orig_DrawMenu orig, Main self, GameTime gameTime) in ParticleLibrary\ParticleSystem\ParticleManager.cs:line 376
at Hook<System.Void ParticleLibrary.ParticleManager::DrawParticlesBeforeAndAfterMainMenu(Terraria.On_Main+orig_DrawMenu,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at SyncProxy<System.Void Terraria.Main:DrawMenu(Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at DMD<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime 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 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.<Main>b__1() in tModLoader\Terraria\MonoLaunch.cs:line 64
at System.Threading.Thread.StartCallback()

[17:20:12.193] [Main Thread/ERROR] [Terraria]: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Terraria.Player.GetModPlayer[T](T baseInstance) in tModLoader\Terraria\Player.TML.cs:line 97
at SOTS.FakePlayer.PlayerInventorySlotsManager.DrawSubspaceSlot(Item item) in SOTS\FakePlayer\FakePlayerHelper.cs:line 288
at SOTS.SOTSDetours.ItemSlot_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color(orig_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color orig, SpriteBatch spriteBatch, Item[] inv, Int32 context, Int32 slot, Vector2 position, Color lightColor) in SOTSDetours.cs:line 813
at Hook<System.Void SOTS.SOTSDetours::ItemSlot_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color(Terraria.UI.On_ItemSlot+orig_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color,Microsoft.Xna.Framework.Graphics.SpriteBatch,Terraria.Item[],System.Int32,System.Int32,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Color)>(SpriteBatch , Item[] , Int32 , Int32 , Vector2 , Color )
at SyncProxy<System.Void Terraria.UI.ItemSlot:Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Terraria.Item[], System.Int32, System.Int32, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)>(SpriteBatch , Item[] , Int32 , Int32 , Vector2 , Color )
at Terraria.GameContent.UI.Chat.ItemTagHandler.ItemSnippet.UniqueDraw(Boolean justCheckingString, Vector2& size, SpriteBatch spriteBatch, Vector2 position, Color color, Single scale) in tModLoader\Terraria\GameContent\UI\Chat\ItemTagHandler.cs:line 34
at Terraria.UI.Chat.ChatManager.DrawColorCodedString(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, Color baseColor, Single rotation, Vector2 origin, Vector2 baseScale, Int32& hoveredSnippet, Single maxWidth, Boolean ignoreColors) in tModLoader\Terraria\UI\Chat\ChatManager.cs:line 211
at Terraria.UI.Chat.ChatManager.DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, String text, Vector2 position, Color baseColor, Single rotation, Vector2 origin, Vector2 baseScale, Single maxWidth, Single spread) in tModLoader\Terraria\UI\Chat\ChatManager.cs:line 375
at Terraria.Main.MouseText_DrawItemTooltip(MouseTextCache info, Int32 rare, Byte diff, Int32 X, Int32 Y) in tModLoader\Terraria\Main.cs:line 17260
at Terraria.Main.MouseTextInner(MouseTextCache info) in tModLoader\Terraria\Main.cs:line 16940
at DMD<System.Void Terraria.Main:DrawPendingMouseText()>()
at Hook<System.Void Redemption.Items.Armor.PostML.Xenium.XeniumVisor::SpoofMouseItem(Terraria.On_Main+orig_DrawPendingMouseText)>()
at SyncProxy<System.Void Terraria.Main:DrawPendingMouseText()>()
at DMD<System.Void Terraria.Main:DrawMenu(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime gameTime)
at ParticleLibrary.Core.DrawHooks.Draw_OnMainMenu(orig_DrawMenu orig, Main self, GameTime gameTime) in ParticleLibrary\Core\DrawHooks.cs:line 571
at Hook<System.Void ParticleLibrary.Core.DrawHooks::Draw_OnMainMenu(Terraria.On_Main+orig_DrawMenu,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at ParticleLibrary.ParticleManager.DrawParticlesBeforeAndAfterMainMenu(orig_DrawMenu orig, Main self, GameTime gameTime) in ParticleLibrary\ParticleSystem\ParticleManager.cs:line 376
at Hook<System.Void ParticleLibrary.ParticleManager::DrawParticlesBeforeAndAfterMainMenu(Terraria.On_Main+orig_DrawMenu,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at SyncProxy<System.Void Terraria.Main:DrawMenu(Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at DMD<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime 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 52919
at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 52900
[17:20:12.320] [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.IndexOutOfRangeException: Index was outside the bounds of the array.
at Terraria.Player.GetModPlayer[T](T baseInstance) in tModLoader\Terraria\Player.TML.cs:line 97
at SOTS.FakePlayer.PlayerInventorySlotsManager.DrawSubspaceSlot(Item item) in SOTS\FakePlayer\FakePlayerHelper.cs:line 288
at SOTS.SOTSDetours.ItemSlot_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color(orig_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color orig, SpriteBatch spriteBatch, Item[] inv, Int32 context, Int32 slot, Vector2 position, Color lightColor) in SOTSDetours.cs:line 813
at Hook<System.Void SOTS.SOTSDetours::ItemSlot_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color(Terraria.UI.On_ItemSlot+orig_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color,Microsoft.Xna.Framework.Graphics.SpriteBatch,Terraria.Item[],System.Int32,System.Int32,Microsoft.Xna.Framework.Vector2,Microsoft.Xna.Framework.Color)>(SpriteBatch , Item[] , Int32 , Int32 , Vector2 , Color )
at SyncProxy<System.Void Terraria.UI.ItemSlot:Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch, Terraria.Item[], System.Int32, System.Int32, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color)>(SpriteBatch , Item[] , Int32 , Int32 , Vector2 , Color )
at Terraria.GameContent.UI.Chat.ItemTagHandler.ItemSnippet.UniqueDraw(Boolean justCheckingString, Vector2& size, SpriteBatch spriteBatch, Vector2 position, Color color, Single scale) in tModLoader\Terraria\GameContent\UI\Chat\ItemTagHandler.cs:line 34
at Terraria.UI.Chat.ChatManager.DrawColorCodedString(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, Color baseColor, Single rotation, Vector2 origin, Vector2 baseScale, Int32& hoveredSnippet, Single maxWidth, Boolean ignoreColors) in tModLoader\Terraria\UI\Chat\ChatManager.cs:line 211
at Terraria.UI.Chat.ChatManager.DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, String text, Vector2 position, Color baseColor, Single rotation, Vector2 origin, Vector2 baseScale, Single maxWidth, Single spread) in tModLoader\Terraria\UI\Chat\ChatManager.cs:line 375
at Terraria.Main.MouseText_DrawItemTooltip(MouseTextCache info, Int32 rare, Byte diff, Int32 X, Int32 Y) in tModLoader\Terraria\Main.cs:line 17260
at Terraria.Main.MouseTextInner(MouseTextCache info) in tModLoader\Terraria\Main.cs:line 16940
at DMD<System.Void Terraria.Main:DrawPendingMouseText()>()
at Hook<System.Void Redemption.Items.Armor.PostML.Xenium.XeniumVisor::SpoofMouseItem(Terraria.On_Main+orig_DrawPendingMouseText)>()
at SyncProxy<System.Void Terraria.Main:DrawPendingMouseText()>()
at DMD<System.Void Terraria.Main:DrawMenu(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime gameTime)
at ParticleLibrary.Core.DrawHooks.Draw_OnMainMenu(orig_DrawMenu orig, Main self, GameTime gameTime) in ParticleLibrary\Core\DrawHooks.cs:line 571
at Hook<System.Void ParticleLibrary.Core.DrawHooks::Draw_OnMainMenu(Terraria.On_Main+orig_DrawMenu,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at ParticleLibrary.ParticleManager.DrawParticlesBeforeAndAfterMainMenu(orig_DrawMenu orig, Main self, GameTime gameTime) in ParticleLibrary\ParticleSystem\ParticleManager.cs:line 376
at Hook<System.Void ParticleLibrary.ParticleManager::DrawParticlesBeforeAndAfterMainMenu(Terraria.On_Main+orig_DrawMenu,Terraria.Main,Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at SyncProxy<System.Void Terraria.Main:DrawMenu(Microsoft.Xna.Framework.GameTime)>(Main , GameTime )
at DMD<System.Void Terraria.Main:DoDraw(Microsoft.Xna.Framework.GameTime)>(Main this, GameTime 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 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:20:12.323] [Main Thread/DEBUG] [TerrariaSteamClient]: Send: shutdown
< >
Showing 1-5 of 5 comments
VortexOfRainbows  [developer] 20 Apr, 2024 @ 11:15pm 
I pushed a hotfix. This should be fixed, but please let me know if the bug persists.
JJ's Place 21 Apr, 2024 @ 11:42am 
So far it seems fixed i will let you know if the issue happens again
KeyoaLaFurra 7 May, 2024 @ 10:46pm 
I still seem to be having a familiar issue. However I have no idea if this is because I have multiple mods, but the initial error looks familiar to mine. But this only occurs when I defeat the wall of flesh and the game tries to change my world.
KeyoaLaFurra 7 May, 2024 @ 10:49pm 
Hmmm..... Just realized this was posted only two or three weeks ago. Could be a different problem.
KeyoaLaFurra 7 May, 2024 @ 10:52pm 
Ok..... so I did just try something different. As soon as I defeated the wall of flesh I left the game. Didn't crash. I'll replicate it again soon.
< >
Showing 1-5 of 5 comments
Per page: 1530 50