Jump to content

Recommended Posts

Posted

Hi Indie Stone,

I wanted to let you know about a bug I encountered. I am not 100% sure how it happened, but it was probably due to a game update or the installation of mods. When I play the game with mods, certain areas of the world fail to render. I got the following error when playing the game via ProjectZomboid64.bat to view the console:

Cannot invoke "zombie.core.skinnedmodel.visual.ItemVisual.getTint(zombie.core.skinnedmodel.population.ClothingItem)" because "<local13>" is null

 

I wasn't able to figure out what any of that meant, but based on my experience, I knew it had something to do with clothing. I tried disabling all of my mods and loaded my save in vanilla mode, but I still experienced the bug.

 

I then restarted the game, looked at the console, and noticed it was loading invalid XML files (please see the screenshots below) from the following directory:

Steam\steamapps\common\ProjectZomboid\media\clothing\clothingItems

 

I looked through the directory, opened one of the invalid XML files, and found just one line filled with "NUL NUL NUL NUL." As a programmer, I know that's not valid XML.

I was able to fix the issue by deleting the directory and revalidating my game via Steam.

I wanted to post this bug here just in case anyone else comes across it.

 

Thanks for making a great game. Please add bullbars to cars so I can use them as battering rams!

Zomboid_Console_Clothing.png

Zomboid_Invalid13.png

Zomboid_Normal_XML.png

Zomboid_NUL_XML.png

Posted

I tried looking for the getTint() call that was causing the first error you mentioned, but what I found doesn't make sense - I must have found the wrong code, but none of the other matches were even close.

 

if (Rand.Next(100) < 60 && var13 != null && var12 != null) {
	var13.setTint(var12.getTint());
}

 

If var13 (local13 in the error; var13 is just the name given by a decompiler) is null, how did that code run?

 

Code is decompiled from:

/ProjectZomboid/zombie/characters/UnderwearDefinition.class

 

Anyway, this obviously isn't impacting everyone, so maybe trying doing a clean install of Zomboid and trying again (no mods) to see if you still get this error.

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...