Project Zomboid

Project Zomboid

NullPointerException and Game Freezes
I just recently made some changes to Distribution.lua, so I don't know if that could be the culprit or not, but I am getting constant errors in my console.txt file about 5 minutes after starting a new game. The game basically freezes - I can hear sound still and the engine is obviously working because if I'm near any Zeds I'm going to get chomped and I can't do anything about it (and I don't see it either). The screen is not black - so it's not the blank screen bug - it just freezes and takes no input. Here is an excerpt from the log that starts occurring non-stop once the freeze happens:

Feb 04, 2019 1:22:06 PM zombie.GameWindow run
SEVERE: null
java.lang.NullPointerException
at zombie.characters.SurvivorDesc.save(SurvivorDesc.java:356)
at zombie.characters.IsoGameCharacter.save(IsoGameCharacter.java:5123)
at zombie.characters.IsoPlayer.save(IsoPlayer.java:871)
at zombie.characters.IsoPlayer.save(IsoPlayer.java:1006)
at zombie.iso.IsoCell.savePlayer(IsoCell.java:6402)
at zombie.GameWindow.savePlayer(GameWindow.java:1953)
at zombie.iso.IsoWorld.render(IsoWorld.java:2900)
at zombie.gameStates.IngameState.renderframe(IngameState.java:926)
at zombie.gameStates.IngameState.render(IngameState.java:1097)
at zombie.gameStates.GameStateMachine.render(GameStateMachine.java:37)
at zombie.GameWindow.render(GameWindow.java:745)
at zombie.GameWindow.run(GameWindow.java:1323)
at zombie.GameWindow.maina(GameWindow.java:1091)
at zombie.gameStates.MainScreenState.main(MainScreenState.java:184)

Any help would be appreciated. I've turned off all mods so I'm running vanilla.
< >
Showing 1-3 of 3 comments
I would imagine the Distribution.lua is at fault here, you can try starting a new world and see if you are getting the same error, then you can try removing the distribution if you dont want to mess up your current save.
I turned out to be a combination of a mod I was using called Hydrocraft and the Distribution.lua. I had added the lumber palette to lumber yard containers and increased it's likelihood to 20%. Somehow that was causing the engine to blow up. I removed those entries and everything was fine after that. Odd that the increased number of lumber palettes would cause the engine to bork so badly, but alas it did. I'm now back to chopping wood and making my own lumber palettes :D.
Originally posted by soshimo:
I turned out to be a combination of a mod I was using called Hydrocraft and the Distribution.lua. I had added the lumber palette to lumber yard containers and increased it's likelihood to 20%. Somehow that was causing the engine to blow up. I removed those entries and everything was fine after that. Odd that the increased number of lumber palettes would cause the engine to bork so badly, but alas it did. I'm now back to chopping wood and making my own lumber palettes :D.
how dud you remove the entries ? i'm having the same issue
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Feb 4, 2019 @ 1:33pm
Posts: 3