Project Zomboid

Project Zomboid

Bandits Extra Options
Temporary error spam fix
Note: THIS IS NO LONGER NEEDED, as the mod has since been updated. Thanks to 9kgsofrice for the quick update!

Just posting this for now until the mod is updated so your ongoing games won't be full of errors <3

Go to steamapps\workshop\content\108600\3412682512\mods\BanditsAddOptionsWeek1\42\media\lua\shared\ZombiePrograms\WeekOne\ and find "ZPInhabitant.lua"

- Go to line 273.

- Replace this block of code:

-- light switch if world:isHydroPowerOn() then local ls = BWOObjects.FindLightSwitch(bandit, def) if ls then

- With this block of code:

-- light switch ts = getTimestampMs() if world:isHydroPowerOn() then local ls = BWOObjects.FindLightSwitch(bandit, room) if ls then
Last edited by Metal Izanagi; 15 Feb @ 8:42pm
< >
Showing 1-4 of 4 comments
Max Payne 15 Feb @ 12:27am 
Thanks a lot man!
No problem!

In case it might help others later on:

What I did was look at the error that kept repeating in the console log, then looked at the file and line the log said was pulling the error and compared it to the original file from Week One. When I saw that the only thing that was really different was that one block of code, and replaced it with the original file's version. Booted the game back up to see what happened, and since it worked I figured I'd share it here to help hold over anyone like me who had a save with the extra options active and didn't want to just pull it or wait until 9kgs updates.

Honestly the thanks should go to TIS for making their console logger so user-friendly. It did the hard part of finding the problem; all I did was throw a solution at the wall and it happened to stick on the first try lol.
Max Payne 15 Feb @ 12:12pm 
Btw, by changing that line, is any function removed / replaced or basically nothing is touched in any mods?

I'm bad at coding but I suppose these lines control NPC behaviour and their ability to switch on the light in the room (?)
Last edited by Max Payne; 15 Feb @ 12:12pm
9kgsofrice  [developer] 15 Feb @ 2:21pm 
This was due to a change in the underlying BANDITS code and should be fixed now! This thread was helpful in finding the error, thanks :)
< >
Showing 1-4 of 4 comments
Per page: 1530 50