tModLoader

tModLoader

Weapon Enchantments
Pixus 29 Jan, 2023 @ 6:24pm
Character freezing bug
I've been playing through this mod and so far everything's working fine, but for whatever reason, the latest update seems to have a bit of a game breaking bug in it where my character's vanity disappears and they freeze, leaving me unable to do anything except make them face different directions. I did also see this in the client log, so that may be the reason why they're freezing.

[21:20:10.269] [Main Thread/WARN] [tML]: Silently Caught Exception: System.NullReferenceException: Object reference not set to an instance of an object. at WeaponEnchantments.Common.Globals.EnchantedItem.OnStack(Item item1, Item item2) in WeaponEnchantments\Common\Globals\EnchantedItems\BaseClasses\EnchantedItem.cs:line 855 at WeaponEnchantments.WEMod.CanStackDetour(orig_CanStack orig, Item item1, Item item2) in WeaponEnchantments\WEMod.cs:line 95 at Terraria.Player.GetItem_FillIntoOccupiedSlot(Int32 plr, Item newItem, GetItemSettings settings, Item returnItem, Int32 i) in tModLoader\Terraria\Player.cs:line 28855 at Terraria.Player.GetItem(Int32 plr, Item newItem, GetItemSettings settings) in tModLoader\Terraria\Player.cs:line 28766 at Terraria.Player.PickupItem(Int32 playerIndex, Int32 worldItemArrayIndex, Item itemToPickUp) in tModLoader\Terraria\Player.cs:line 25635 at Terraria.Player.GrabItems(Int32 i) in tModLoader\Terraria\Player.cs:line 25519 at DMD<Terraria.Player::Update>(Player this, Int32 i) at DMD<Terraria.Main::DoUpdateInWorld>(Main this, Stopwatch sw) at Terraria.Main.DoUpdate(GameTime& gameTime) in tModLoader\Terraria\Main.cs:line 13222 at Terraria.Main.Update(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 12777 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()

Screenshot if needed: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2925748075
< >
Showing 1-6 of 6 comments
VayKayBae 30 Jan, 2023 @ 10:30am 
[13:22:06.305] [Main Thread/WARN] [tML]: Silently Caught Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at WeaponEnchantments.Common.Globals.EnchantedItem.OnStack(Item item1, Item item2) in WeaponEnchantments\Common\Globals\EnchantedItems\BaseClasses\EnchantedItem.cs:line 855
at WeaponEnchantments.WEMod.CanStackDetour(orig_CanStack orig, Item item1, Item item2) in WeaponEnchantments\WEMod.cs:line 95
at Terraria.Player.GetItem_FillIntoOccupiedSlot(Int32 plr, Item newItem, GetItemSettings settings, Item returnItem, Int32 i) in tModLoader\Terraria\Player.cs:line 28855
at Terraria.Player.GetItem(Int32 plr, Item newItem, GetItemSettings settings) in tModLoader\Terraria\Player.cs:line 28766
at Terraria.Player.PickupItem(Int32 playerIndex, Int32 worldItemArrayIndex, Item itemToPickUp) in tModLoader\Terraria\Player.cs:line 25635
at Terraria.Player.GrabItems(Int32 i) in tModLoader\Terraria\Player.cs:line 25519
at DMD<Terraria.Player::Update>(Player this, Int32 i)
at Terraria.Main.DoUpdateInWorld(Stopwatch sw) in tModLoader\Terraria\Main.cs:line 13576
at Terraria.Main.DoUpdate(GameTime& gameTime) in tModLoader\Terraria\Main.cs:line 13222
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 488
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()
VayKayBae 30 Jan, 2023 @ 10:31am 
Also to note, keystrokes are not recognized and UI is not interactable.
If you die during this "freeze", the character spawns and game functionality is restored.
andro951  [developer] 4 Feb, 2023 @ 6:54pm 
Sorry about the late response. I don't get a notification for discussions. This is likely the bug I patched a few updates back. If you're still experiencing it, please try to manually update Weapon Enchantments. If it's still happening after that, please post on Discord or the Comments here.
Originally posted by andro951:
Sorry about the late response. I don't get a notification for discussions. This is likely the bug I patched a few updates back. If you're still experiencing it, please try to manually update Weapon Enchantments. If it's still happening after that, please post on Discord or the Comments here.
I still have this problem
Dissonant42 28 Jul, 2023 @ 4:40pm 
Originally posted by мельник:
I still have this problem

if the issue you're having is on 1.4.4, then its likely because Koko Net Lib is not fully compatible with 1.4.4.
andro951  [developer] 1 Aug, 2023 @ 11:42am 
Originally posted by мельник:
Originally posted by andro951:
Sorry about the late response. I don't get a notification for discussions. This is likely the bug I patched a few updates back. If you're still experiencing it, please try to manually update Weapon Enchantments. If it's still happening after that, please post on Discord or the Comments here.
I still have this problem
Hey мельник,
Can you post a client.log here or on my discord after you're game freezes. There are many different things that can cause a freeze, so it's likely not the same thing from this post.
client.log is found here by default:
C:\Steam\SteamApps\common\tModLoader\tModLoader-Logs
< >
Showing 1-6 of 6 comments
Per page: 1530 50