You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The player has StardustHammer in inventory somehow, and enters a world with a mod with a GlobalItem class. That class saves data on the StardustHammer when leaving the world. Attempting to load the player on the player select screen results in the following:
[01:40:38.125] [Main Thread/WARN] [tML]: Silently Caught Exception:
System.Collections.Generic.KeyNotFoundException: Terraria.ModLoader.Default.UnloadedGlobalItem
at Terraria.Item.GetGlobalItem[T]() in tModLoader\Terraria\Item.TML.cs:line 30
at Terraria.ModLoader.IO.ItemIO.LoadGlobals(Item item, IList`1 list) in tModLoader\Terraria\ModLoader\IO\ItemIO.cs:line 166
at Terraria.ModLoader.IO.ItemIO.Load(Item item, TagCompound tag) in tModLoader\Terraria\ModLoader\IO\ItemIO.cs:line 113
at Terraria.ModLoader.IO.ItemIO.Load(TagCompound tag) in tModLoader\Terraria\ModLoader\IO\ItemIO.cs:line 119
at Terraria.ModLoader.IO.PlayerIO.LoadInventory(Item[] inv, IList`1 list) in tModLoader\Terraria\ModLoader\IO\PlayerIO.cs:line 121
at Terraria.ModLoader.IO.PlayerIO.Load(Player player, TagCompound tag) in tModLoader\Terraria\ModLoader\IO\PlayerIO.cs:line 74
at Terraria.Player.Deserialize(PlayerFileData data, Player newPlayer, BinaryReader fileIO, Byte[] tplrData, Int32 release, Boolean& gotToReadName) in tModLoader\Terraria\Player.cs:line 45095
at Terraria.Player.LoadPlayerFromStream(PlayerFileData playerFileData, Byte[] plrData, Byte[] tplrData) in tModLoader\Terraria\Player.cs:line 45037
at Terraria.Player.LoadPlayer(String playerPath, Boolean cloudSave) in tModLoader\Terraria\Player.cs:line 45002
at Terraria.Player.GetFileData(String file, Boolean cloudSave) in tModLoader\Terraria\Player.cs:line 45702
at Terraria.Main.LoadPlayers() in tModLoader\Terraria\Main.cs:line 3418
at Terraria.GameContent.UI.States.UICharacterSelect.OnActivate() in tModLoader\Terraria\GameContent\UI\States\UICharacterSelect.cs:line 133
at Terraria.UI.UIElement.Activate() in tModLoader\Terraria\UI\UIElement.cs:line 452
at Terraria.UI.UserInterface.SetState(UIState state) in tModLoader\Terraria\UI\UserInterface.cs:line 262
at Terraria.Main.OpenCharacterSelectUI() in tModLoader\Terraria\Main.cs:line 44935
at Terraria.Main.DrawMenu(GameTime gameTime) in tModLoader\Terraria\Main.cs:line 41957
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)
at Terraria.Main.Draw(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.RunLoop()
at Microsoft.Xna.Framework.Game.Run()
at Terraria.Program.RunGame()
at Terraria.Program.LaunchGame_(Boolean isServer)
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
at Terraria.MonoLaunch.Main_End(String[] args)
at Terraria.MonoLaunch.<>c__DisplayClass1_0.<Main>b__1()
The issue can be bypassed by manually editing the tplr and removing the globaldata:
I thought deprecated items weren't supposed to load in with a player the first place, so something is up. The exception is caused by Item._globals being set to null in ItemIO.Load->Item.SetDefaults.
Will need to verify vanilla behavior and fix this accordingly.
Log File
No response
Steps to reproduce
No response
Expected Behavior
No response
Actual Behavior
No response
Reproduction frequency
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Version
Latest 1.4.4-stable
OS
Windows
Platform
Steam
This bug affects...
Mod capability as a Modder
Description
The player has StardustHammer in inventory somehow, and enters a world with a mod with a GlobalItem class. That class saves data on the StardustHammer when leaving the world. Attempting to load the player on the player select screen results in the following:
Player file.
deprecatedglobalitemissue.zip
The issue can be bypassed by manually editing the tplr and removing the globaldata:
![image](https://private-user-images.githubusercontent.com/4522492/327644014-eafb4642-22a4-43f0-a88e-5227be0714ff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MjU0OTUsIm5iZiI6MTcxODkyNTE5NSwicGF0aCI6Ii80NTIyNDkyLzMyNzY0NDAxNC1lYWZiNDY0Mi0yMmE0LTQzZjAtYTg4ZS01MjI3YmUwNzE0ZmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjBUMjMxMzE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDYzOGRlMmMxZjY1ZDQzYWVlOWZmZTRiYzk4ZmU3ZDVjNmM1MDQwNTRiMzAwMTFjNTE0YzA3N2EzNWNkZTRkMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.G2Cg3agjtq3gaxmq-k4qVyOtqowSarTE1DfJOLVL3LM)
I thought deprecated items weren't supposed to load in with a player the first place, so something is up. The exception is caused by Item._globals being set to null in ItemIO.Load->Item.SetDefaults.
Will need to verify vanilla behavior and fix this accordingly.
Log File
No response
Steps to reproduce
No response
Expected Behavior
No response
Actual Behavior
No response
Reproduction frequency
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: