Project Zomboid

Project Zomboid

Bandits Extra Options
Metal Izanagi 14. feb. kl. 23:09
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
Sidst redigeret af Metal Izanagi; 15. feb. kl. 20:42
< >
Viser 1-4 af 4 kommentarer
Max Payne 15. feb. kl. 0:27 
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. kl. 12:12 
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 (?)
Sidst redigeret af Max Payne; 15. feb. kl. 12:12
9kgsofrice  [udvikler] 15. feb. kl. 14:21 
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 :)
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50