Windows Endless amounts of NullReferenceException on Game Loading

TheRPGElite

Refugee
Just updated my NON MODDED game to the latest stable version of 2.0 b295 available for 7/9/25. I created a new RANDOM world and whenever I get to the screen where my game is Building Environment (loading things right after clicking Spawn in a Random Spot), the F1 box shows up and I get this endlessly. I play on PC through Steam. I have uninstalled and reinstalled the entire game, cleaned up the game files, and verified the integrity through Steam. Not sure what else to do here. Any help is welcomed.

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_Health () [0x00006] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.Update () [0x00118] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.LateUpdate () [0x00069] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.MoveByInput () [0x0027c] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.stopMoving () [0x0002a] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.Update () [0x000f5] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_Health () [0x00006] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.Update () [0x00118] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.LateUpdate () [0x00069] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.MoveByInput () [0x0027c] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.stopMoving () [0x0002a] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.Update () [0x000f5] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_Health () [0x00006] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.Update () [0x00118] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException
: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.LateUpdate () [0x00069] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.MoveByInput () [0x0027c] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.stopMoving () [0x0002a] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.Update () [0x000f5] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_Health () [0x00006] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.Update () [0x00118] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.LateUpdate () [0x00069] in <c97b2cb3e84445e394436f40d1db3b23>:0
 
Just updated my NON MODDED game to the latest stable version of 2.0 b295 available for 7/9/25. I created a new RANDOM world and whenever I get to the screen where my game is Building Environment (loading things right after clicking Spawn in a Random Spot), the F1 box shows up and I get this endlessly. I play on PC through Steam. I have uninstalled and reinstalled the entire game, cleaned up the game files, and verified the integrity through Steam. Not sure what else to do here. Any help is welcomed.

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_Health () [0x00006] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.Update () [0x00118] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.LateUpdate () [0x00069] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.MoveByInput () [0x0027c] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.stopMoving () [0x0002a] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.Update () [0x000f5] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_Health () [0x00006] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.Update () [0x00118] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.LateUpdate () [0x00069] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.MoveByInput () [0x0027c] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.stopMoving () [0x0002a] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.Update () [0x000f5] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_Health () [0x00006] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.Update () [0x00118] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException
: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.LateUpdate () [0x00069] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.MoveByInput () [0x0027c] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.stopMoving () [0x0002a] in <c97b2cb3e84445e394436f40d1db3b23>:0
at PlayerMoveController.Update () [0x000f5] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_Health () [0x00006] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.Update () [0x00118] in <c97b2cb3e84445e394436f40d1db3b23>:0

NullReferenceException: Object reference not set to an instance of an object
at EntityAlive.get_AimingGun () [0x00000] in <c97b2cb3e84445e394436f40d1db3b23>:0
at EntityPlayerLocal.LateUpdate () [0x00069] in <c97b2cb3e84445e394436f40d1db3b23>:0
You showed the middle of the errors that doesn't show the stuff that would help in figuring out the problem. Unless someone has seen this exact error before and the cause is only one thing, it isn't enough to be able to help you. If you post your full log, it will make helping you easier. You can put it on pastebin.com and include the link here. And it is best to start the game again and then exit as soon as the errors start so that your log isn't really large from all those repeating errors.

The only specific suggestion I can give is to open the launcher and choose the options to clean up your install entirely. Just be aware that those can change your settings or remove things that you might want to keep, so look at what you're doing with that, and perhaps make a backup first. If you don't care about anything being saved and just want to start fresh, then you don't have to worry about it and can just wipe everything.
 
You have to attach the entire log file. There is an "attach files" button right at the bottom of the text box for making a new post.
 
Code:
2025-07-09T03:28:53 1000.295 INF Wrong hash on Data/Config/items.xml
2025-07-09T03:28:53 1000.310 INF Wrong hash on Data/Config/recipes.xml
...
2025-07-09T03:29:44 1051.878 ERR XML loader: Loading and parsing 'items.xml' failed
2025-07-09T03:29:44 1051.905 EXC Input string was not in a correct format.
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <819cf46d02f74ba4ae2d757a73aa5ae9>:0
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <819cf46d02f74ba4ae2d757a73aa5ae9>:0
  at System.Int32.Parse (System.String s) [0x00016] in <819cf46d02f74ba4ae2d757a73aa5ae9>:0
  at ItemClassesFromXml.parseItem (System.Xml.Linq.XElement _node) [0x0029a] in <c97b2cb3e84445e394436f40d1db3b23>:0
  at ItemClassesFromXml+<CreateItems>d__1.MoveNext () [0x001a5] in <c97b2cb3e84445e394436f40d1db3b23>:0
  at ThreadManager+<CoroutineWrapperWithExceptionCallback>d__50.MoveNext () [0x00044] in <c97b2cb3e84445e394436f40d1db3b23>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
<>c__DisplayClass51_0:<loadSingleXml>b__4(Exception)
<CoroutineWrapperWithExceptionCallback>d__50:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Strange that it says the hash is wrong. Sounds like maybe corrupt files? But you said you already tried reinstalling and verifying integrity :/ not really sure if it helps but maybe try restarting steam and validate again? (Or clear download cache/change download region and reinstall?)
 
Code:
2025-07-09T03:28:53 1000.295 INF Wrong hash on Data/Config/items.xml
2025-07-09T03:28:53 1000.310 INF Wrong hash on Data/Config/recipes.xml
...
2025-07-09T03:29:44 1051.878 ERR XML loader: Loading and parsing 'items.xml' failed
2025-07-09T03:29:44 1051.905 EXC Input string was not in a correct format.
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <819cf46d02f74ba4ae2d757a73aa5ae9>:0
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <819cf46d02f74ba4ae2d757a73aa5ae9>:0
  at System.Int32.Parse (System.String s) [0x00016] in <819cf46d02f74ba4ae2d757a73aa5ae9>:0
  at ItemClassesFromXml.parseItem (System.Xml.Linq.XElement _node) [0x0029a] in <c97b2cb3e84445e394436f40d1db3b23>:0
  at ItemClassesFromXml+<CreateItems>d__1.MoveNext () [0x001a5] in <c97b2cb3e84445e394436f40d1db3b23>:0
  at ThreadManager+<CoroutineWrapperWithExceptionCallback>d__50.MoveNext () [0x00044] in <c97b2cb3e84445e394436f40d1db3b23>:0
UnityEngine.StackTraceUtility:ExtractStringFromException(Object)
Log:Exception(Exception)
<>c__DisplayClass51_0:<loadSingleXml>b__4(Exception)
<CoroutineWrapperWithExceptionCallback>d__50:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Strange that it says the hash is wrong. Sounds like maybe corrupt files? But you said you already tried reinstalling and verifying integrity :/ not really sure if it helps but maybe try restarting steam and validate again? (Or clear download cache/change download region and reinstall?)
I tried this morning to see about if Steam was the issue, so I closed down the application and freshly restarted it. I'll see about that download cache and changing where it is downloaded to.
 
Yeah, there is something wrong with the install. It didn't seem to be a mod problem since there aren't any.
 
I sometimes messed up the base files when I been working on mods, leaving them open in Notepad++ and accidently having that program active and hitting keys. I don't see it as an issue in game as I never save those through my editor. Where you making changes to the file and accidently changed something without knowing it or were you making changes purposely and hit the wrong key?
 
Back
Top