Project Zomboid

Project Zomboid

Error or Bug in B42.13.1
Did anyone have this kind of error?

General f:5421, t:1767720604372> ExceptionLogger.logException> Exception thrown
java.lang.NullPointerException: Cannot invoke "zombie.inventory.InventoryItem.setAlcoholPower(float)" because "item" is null at Item.InstanceItem(Item.java:1843).

This error is presented every time some tiles are loaded up.

Yes I play with mod, but i do not have ANY mod which make influences on Alchool or any other liquids.

Anyone elese ?
< >
Showing 1-13 of 13 comments
I've been going insane over this error in the past few days. I have no clue why this even happens. NO clue what is causing it but I can't even load the damn game atm - as in, I can create a character but never move past the intro cutscene. Just black screen.
Can you reproduce the error even without mods?
Originally posted by Cursed Rat:
I've been going insane over this error in the past few days. I have no clue why this even happens. NO clue what is causing it but I can't even load the damn game atm - as in, I can create a character but never move past the intro cutscene. Just black screen.

Hi Cursed Rat,
Yes this kind of error are drive me crazy too. It happens only with the B42.13.1, the old release are pretty Stable.

Originally posted by Beard:
Can you reproduce the error even without mods?

Hi Beard,
Yes, even with all mod deactivated in a new game.
When my character are Walking/or in a Veichle and new portion of map are loaded it freeze and crash, and this was the error the console gives me back.
If it happens without any mods on a new save, can you share your logs.zip file found in %UserProfile%\Zomboid?
You can use any file-sharing website of your choice, or you can use our official link to share the file https://beard-theindiestone.fromsmash.com/request/OQzxAk6MFK-dd
After that, can you share the link to the file here, so I can download it?
Originally posted by Beard:
If it happens without any mods on a new save, can you share your logs.zip file found in %UserProfile%\Zomboid?
You can use any file-sharing website of your choice, or you can use our official link to share the file https://beard-theindiestone.fromsmash.com/request/OQzxAk6MFK-dd
After that, can you share the link to the file here, so I can download it?

Has this been reported from other users/under investigation? I'm trying to figure out a work around for a mod I'm working on that seems to trigger this anytime a custom zombie is killed...
I am not aware of it being reported without mods at the moment.
I am having same error. Ive worked on it for 2 days now and I give up. I dont have any alcohol mods cant get game to load in after this is how you died just a black screen.

ERROR: General f:0, t:1769629946626> ExceptionLogger.logException> Exception thrown
java.lang.NullPointerException: Cannot invoke "zombie.inventory.InventoryItem.setAlcoholPower(float)" because "item" is null at Item.InstanceItem(Item.java:1843).
If you can reproduce it without mods, you can share the logs of that bug here.
i can't speak for this issue without mods, but i was experiencing this error with a bunch of supposedly B42 compatible mods and the issue was seemingly that at some point the "Type" field in the "<item>.txt" files was renamed to "ItemType", so if you find like
Type = Container
you (or ideally the mod author) would need to change it to
ItemType = Container

it shows up as a "NullPointerException" on "setAlcoholPower" because the "InstanceItem" constructor has a big "if" statement to check the type, but seemingly no "else" or fallback if the item doesn't have a "Type" set, and "setAlcoholPower" just happens to be the first method invocation that tries to use the null item

posting this here because this thread was the top result on google when i was looking for info about this error

(edit: formatting)
Originally posted by retson¡ne:
i can't speak for this issue without mods, but i was experiencing this error with a bunch of supposedly B42 compatible mods and the issue was seemingly that at some point the "Type" field in the "<item>.txt" files was renamed to "ItemType", so if you find like
Type = Container
you (or ideally the mod author) would need to change it to
ItemType = Container

it shows up as a "NullPointerException" on "setAlcoholPower" because the "InstanceItem" constructor has a big "if" statement to check the type, but seemingly no "else" or fallback if the item doesn't have a "Type" set, and "setAlcoholPower" just happens to be the first method invocation that tries to use the null item

posting this here because this thread was the top result on google when i was looking for info about this error

(edit: formatting)

Thanks, for the information.
In this case i don't know why but the error was generate by the incorrect information of what value some function passes throught the load infomration for AlcoholPower (just remember i have the same issue with a vanilla new gameplay withoud any mod installed).

Adding a mod to change the weight behavior for the items/object in this case resolve it (do not asky me how, really i tried to understand, but i can't figure it out).
and now the issue is solved, i was playing for days without any kind of crash
True Music B42 or one of the TM music packs may be one cause - unloading all my TM mods seems to have fixed it for me
Originally posted by innabush:
True Music B42 or one of the TM music packs may be one cause - unloading all my TM mods seems to have fixed it for me

I do not have TM mods, as I explain above for me the error was made by the Vanilla transmition of the float of alcoholPower value.

Adding a mod for changing weight of the object resolve the issue, at least for me.
Originally posted by novaearth:
Originally posted by innabush:
True Music B42 or one of the TM music packs may be one cause - unloading all my TM mods seems to have fixed it for me

I do not have TM mods, as I explain above for me the error was made by the Vanilla transmition of the float of alcoholPower value.

Adding a mod for changing weight of the object resolve the issue, at least for me.
What mod did you add? Or did you make your own?
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Jan 6 @ 9:40am
Posts: 13