Project Zomboid

Project Zomboid

[B42] Week One NPC
NPC's taking over playspawn home
If anyone else is having issues with NPCs taking over your spawn home... the issue seems to be this - when a new game is started various game elements are set up but your "home" is never set. This means the building you spawn in is treated as a normal building, allowing npcs to spawn on a cell reset. Thankfully even for us who don't mod, this is an easy fix.

1. navigate to the mods folder. This is usually

C:\SteamLibrary\steamapps\workshop\content\108600\340318054

Note:
- the drive in which your steam content folder is located might be different. Mine for example is on an external D: drive.
- 108600 is the game zomboid
- 340318054 is the mod id

2. go through another set of folders:
mods\BanditsWeekOne\42\media\lua\client

3. find and open "BWOScheduler.lua" in notepad
4. search "function BWOScheduler.PlayerStart()" with CTRL F (no quotes)
5. inbetween this:

BWOScheduler.Add("VariantCall", {func="setup2"}, 500)
end

and this:

BWOScheduler.Add("FadeIn", {time=4}, conf.fadeIn)

add this line:

BWOScheduler.Add("BuildingHome", {addRadio = true}, 100)


EDIT this no longer works with the most recent update!! I don't know what changed under the hood but I've tested this with no other mods but Week one, something about this mod - I'm guessing its the dumb alt starts, because this issue did not exist until those were added - is preventing the game from marking my spwn home. Until that is fixed/addressed this is unplayable.
Last edited by SinfulPetGirlRD; 6 Sep @ 8:01am