Project Zomboid

Project Zomboid

Bandits Extra Options
Metal Izanagi 2 月 14 日 下午 11: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
最后由 Metal Izanagi 编辑于; 2 月 15 日 下午 8:42
< >
正在显示第 1 - 4 条,共 4 条留言
Max Payne 2 月 15 日 上午 12:27 
Thanks a lot man!
Metal Izanagi 2 月 15 日 上午 1:17 
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 2 月 15 日 下午 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 (?)
最后由 Max Payne 编辑于; 2 月 15 日 下午 12:12
9kgsofrice  [开发者] 2 月 15 日 下午 2: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 :)
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50