tModLoader

tModLoader

Mod of Redemption [BETA]
Arendeth 8 Mar, 2023 @ 2:00pm
Possible mod conflicts and item drop crash
From what I assume is from a drop from this mod got this error that caused the game to crash along with some errors before the last error that include error lines prior before the shutdown crash:
[16:45:34.392] [Main Thread/WARN] [tML]: Silently Caught Exception: System.InvalidOperationException: Nullable object must have a value. at TerraTyping.DataTypes.WeaponWrapper.get_Hitbox() in TerraTyping\DataTypes\Wrappers\ItemWrapper.cs:line 46 at TerraTyping.Calc.OnHit[A,D](A attacker, D defender) in TerraTyping\Helpers\Calc.cs:line 220 at TerraTyping.NPCTyping.CanBeHitByItem(NPC npc, Player player, Item item) in TerraTyping\Content\NPCTyping.cs:line 149 at Terraria.ModLoader.NPCLoader.CanBeHitByItem(NPC npc, Player player, Item item) in tModLoader\Terraria\ModLoader\NPCLoader.cs:line 632 at Redemption.Base.BaseAI.DamageNPC(NPC npc, Int32 dmgAmt, Single knockback, Int32 hitDirection, Entity damager, Boolean dmgVariation, Boolean hitThroughDefense, Boolean crit, Item item) in Redemption\Base\BaseAI.cs:line 5417 at Redemption.Globals.NPC.GuardNPC.GuardBreakCheck(NPC npc, Int32 dustType, SoundStyle sound, Int32 dustAmount, Single dustScale, Int32 damage) in Redemption\Globals\NPC\GuardNPC.cs:line 48 at Redemption.NPCs.PreHM.SkeletonWarden.StrikeNPC(Double& damage, Int32 defense, Single& knockback, Int32 hitDirection, Boolean& crit) in Redemption\NPCs\PreHM\SkeletonWarden.cs:line 129 at Terraria.ModLoader.NPCLoader.StrikeNPC(NPC npc, Double& damage, Int32 defense, Single& knockback, Int32 hitDirection, Boolean& crit) in tModLoader\Terraria\ModLoader\NPCLoader.cs:line 730 at DMD<Terraria.NPC::StrikeNPC>(NPC this, Int32 Damage, Single knockBack, Int32 hitDirection, Boolean crit, Boolean noEffect, Boolean fromNet) at Hook<Terraria.NPC::StrikeNPC>?28804871(NPC , Int32 , Single , Int32 , Boolean , Boolean , Boolean ) at Redemption.NPCs.PreHM.SkeletonWarden.AI() in Redemption\NPCs\PreHM\SkeletonWarden.cs:line 251 at Terraria.ModLoader.NPCLoader.AI(NPC npc) in tModLoader\Terraria\ModLoader\NPCLoader.cs:line 266 at Terraria.ModLoader.NPCLoader.NPCAI(NPC npc) in tModLoader\Terraria\ModLoader\NPCLoader.cs:line 245 at DMD<Terraria.NPC::UpdateNPC_Inner>(NPC this, Int32 i) at Aequus.NPCs.AequusNPC.NPC_UpdateNPC_Inner(orig_UpdateNPC_Inner orig, NPC self, Int32 i) in AequusNPC.cs:line 894 at DMD<Terraria.Main::DoUpdateInWorld>(Main this, Stopwatch sw) at DMD<Terraria.Main::DoUpdate>(Main this, GameTime& gameTime) at TerrariaOverhaul.Core.Time.TimeSystem.OnDoUpdate(orig_DoUpdate orig, Main main, GameTime& gameTime) in TerrariaOverhaul\Core\Time\TimeSystem.cs:line 80 at DMD<Terraria.Main::Update>(Main this, GameTime gameTime) at Microsoft.Xna.Framework.Game.Tick() in D:\a\tModLoader\tModLoader\FNA\src\Game.cs:line 546 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.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 231 at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 192 at MonoLaunch.<>c__DisplayClass1_0.<Main>b__0() in tModLoader\Terraria\MonoLaunch.cs:line 56 at System.Threading.Thread.StartCallback() [16:50:39.996] [.NET ThreadPool Worker/INFO] [StatusText]: Saving world data [16:50:40.422] [.NET ThreadPool Worker/INFO] [StatusText]: Validating world save [16:53:47.217] [Main Thread/WARN] [tML]: Silently Caught Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Redemption.Items.Materials.PreHM.MoonflareFragment.PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, Single& rotation, Single& scale, Int32 whoAmI) in Redemption\Items\Materials\PreHM\MoonflareFragment.cs:line 60 at Terraria.ModLoader.ItemLoader.PreDrawInWorld(Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, Single& rotation, Single& scale, Int32 whoAmI) in tModLoader\Terraria\ModLoader\ItemLoader.cs:line 1747 at Terraria.Main.DrawItem(Item item, Int32 whoami) in tModLoader\Terraria\Main.cs:line 28965 at DMD<Terraria.Main::DrawItems>(Main this) at Aequus.Items.Accessories.CelesteTorus.Main_DrawItems(orig_DrawItems orig, Main self) in Aequus\Items\Accessories\CelesteTorus.cs:line 76 at ParticleLibrary.ParticleManager.DrawParticlesBeforeItems(orig_DrawItems orig, Main self) in ParticleLibrary\ParticleSystem\ParticleManager.cs:line 316 at DMD<Terraria.Main::DoDraw>(Main this, GameTime gameTime) at TerrariaOverhaul.Core.Time.TimeSystem.OnDoDraw(orig_DoDraw orig, Main main, GameTime gameTime) in TerrariaOverhaul\Core\Time\TimeSystem.cs:line 70 at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 48712 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.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 231 at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs) in tModLoader\Terraria\Program.cs:line 192 at MonoLaunch.<>c__DisplayClass1_0.<Main>b__0() in tModLoader\Terraria\MonoLaunch.cs:line 56 at System.Threading.Thread.StartCallback() [16:53:47.218] [Main Thread/ERROR] [Terraria]: System.NullReferenceException: Object reference not set to an instance of an object. at Redemption.Items.Materials.PreHM.MoonflareFragment.PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, Single& rotation, Single& scale, Int32 whoAmI) in Redemption\Items\Materials\PreHM\MoonflareFragment.cs:line 60 at Terraria.ModLoader.ItemLoader.PreDrawInWorld(Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, Single& rotation, Single& scale, Int32 whoAmI) in tModLoader\Terraria\ModLoader\ItemLoader.cs:line 1747 at Terraria.Main.DrawItem(Item item, Int32 whoami) in tModLoader\Terraria\Main.cs:line 28965 at DMD<Terraria.Main::DrawItems>(Main this) at Aequus.Items.Accessories.CelesteTorus.Main_DrawItems(orig_DrawItems orig, Main self) in Aequus\Items\Accessories\CelesteTorus.cs:line 76 at ParticleLibrary.ParticleManager.DrawParticlesBeforeItems(orig_DrawItems orig, Main self) in ParticleLibrary\ParticleSystem\ParticleManager.cs:line 316 at DMD<Terraria.Main::DoDraw>(Main this, GameTime gameTime) at TerrariaOverhaul.Core.Time.TimeSystem.OnDoDraw(orig_DoDraw orig, Main main, GameTime gameTime) in TerrariaOverhaul\Core\Time\TimeSystem.cs:line 70 at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 48723 [16:53:47.461] [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 Redemption.Items.Materials.PreHM.MoonflareFragment.PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, Single& rotation, Single& scale, Int32 whoAmI) in Redemption\Items\Materials\PreHM\MoonflareFragment.cs:line 60 at Terraria.ModLoader.ItemLoader.PreDrawInWorld(Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, Single& rotation, Single& scale, Int32 whoAmI) in tModLoader\Terraria\ModLoader\ItemLoader.cs:line 1747 at Terraria.Main.DrawItem(Item item, Int32 whoami) in tModLoader\Terraria\Main.cs:line 28965 at DMD<Terraria.Main::DrawItems>(Main this) at Aequus.Items.Accessories.CelesteTorus.Main_DrawItems(orig_DrawItems orig, Main self) in Aequus\Items\Accessories\CelesteTorus.cs:line 76 at ParticleLibrary.ParticleManager.DrawParticlesBeforeItems(orig_DrawItems orig, Main self) in ParticleLibrary\ParticleSystem\ParticleManager.cs:line 316 at DMD<Terraria.Main::DoDraw>(Main this, GameTime gameTime) at TerrariaOverhaul.Core.Time.TimeSystem.OnDoDraw(orig_DoDraw orig, Main main, GameTime gameTime) in TerrariaOverhaul\Core\Time\TimeSystem.cs:line 70 at Terraria.Main.Draw(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 48723 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.LaunchGame_(Boolean isServer) in tModLoader\Terraria\Program.cs:line 231 [16:53:47.462] [Main Thread/DEBUG] [TerrariaSteamClient]: Send: shutdown
Last edited by Arendeth; 8 Mar, 2023 @ 2:03pm