Project Zomboid

Project Zomboid

Quikel May 28, 2017 @ 4:21am
Mechanics of loot respawn?
Is anyone able to clarify the mystery of loot respawn for me?

So I host a small multiplayer server therefore I am in need of the loot respawn mechanics but for some reason I dont get how they work since sometimes stuff doesnt respawn when its meant to respawn.

From what I do understand it works like the following:

- I set it to (lets say) each 10 hours.
- 10 hours pass, if no one has been in the corresponding chunk for this time, the loot in all the containers within this junk respawns, if...
- if the amount of items within a container doesnt surpass X, whereas X is the parameter "max items for loot respawn)
- meaning: if X is 4, containers with 4 or more items wont have their loot respawned.

Now the issues I had with respawn.
I set it to 1hour and 15 max items for loot respawn for testing purposes and then i waited in base for a few hours, went out again to check containers and aside from a few fridges that were empty before, nothing has respawned really. The police station in muldraugh was still empty or in the same state that i left it with a few bullets here and there and the same for the surrounding warehouses. For some reason the loot respawn doesnt work properly for me and I am not sure if its a mod issue, a IWBUMS issue or god knows what caused it.

Or maybe, which could also be, i simply misunderstand some of the mechanics of loot respawn?
For example, does loot in containers just refill up to X (the max items for respawn value) or does each containers get completely fresh loot even though it had some leftovers before?

I have no idea and I would really like to know how this works.

Thanks in advance.

Last edited by Quikel; May 28, 2017 @ 4:22am
< >
Showing 1-5 of 5 comments
DeadlyDanDaMan May 28, 2017 @ 4:36am 
A: If you are using mods, disable all of them and try again in the exact same scenario as before. If the loot respawns, then you know it's a mod issue and can begin narrowing down the culprit.

B: Are you sure you were far enough away from the cell? You can check cell distance using this map http://map.projectzomboid.com/?desc=Survival_1xL0#0.5504845677878921,0.17720823500139376,2.0736

Just click on Map Coordinates on the left side, and when you move your pointer around the map, you'll notice that Cell numbers will change. That is how you dermine where a cell starts and ends.
Last edited by DeadlyDanDaMan; May 28, 2017 @ 4:39am
Quikel May 28, 2017 @ 4:58am 
I think i can pretty much exclude option B from my scenario. When i did the testing i was sitting in the isolated house in muldraugh and checked containers and warehouses around the police station afterwards - had no luck.

As for option A: That could potentially be but iam not sure if i would break the server when i disable the mods for testing purposes. Wont my guns and other items (mostly ORGM and hydrocraft stuff) not disappear when i disable the mod or will i get them back when i reenable it?

Actually, that leads to another question. Does respawn even work with 3rd party mods and their corresponding loot tables? Can you or anyone clarify?
DeadlyDanDaMan May 28, 2017 @ 6:56pm 
Originally posted by Henn0r:
I think i can pretty much exclude option B from my scenario. When i did the testing i was sitting in the isolated house in muldraugh and checked containers and warehouses around the police station afterwards - had no luck.

As for option A: That could potentially be but iam not sure if i would break the server when i disable the mods for testing purposes. Wont my guns and other items (mostly ORGM and hydrocraft stuff) not disappear when i disable the mod or will i get them back when i reenable it?

Actually, that leads to another question. Does respawn even work with 3rd party mods and their corresponding loot tables? Can you or anyone clarify?

I'm sorry, I can't answer your questions about the mods, because I just don't know :( You should send some messages to the mod authors and see if they might be able to help you.
Gnoerl May 29, 2017 @ 3:57am 
For testing you could make a backup of your world/save and then try do disable the mods. When you finished testing, just replace the world/save with the old one.

As for your question about 3rd-party stuff: If you disable a mod, the stuff that came with this mod will vanish or eventually crash the save - it shouldn't come back after reenabling. Loot-Tables always take care of 3rd-party loot-tables, otherwise it wouldn't even spawn once. Loot-respawn just add a routine that will refill the containers after x-conditions are fulfilled.

For your question about "how does it work" i got a line from Enigma:

If
is container looted by a player,
X time has passed,
container has less or equal to its quantity of items
then
spawn things every X

The chunk/cell-thing is still also a condition.
Quikel May 29, 2017 @ 4:06am 
Thanks for the info.

In the meantime I did some further testing.
Here is what I think might have caused my problems.

When I initially started the server and set up the config parameters, i had my loot respawn timer set to something like 10.000 hours. While this config was active i did most of the looting and checked police stations and warehouses alike. Later I was told that I should go for a way lower respawn time and I changed it to something like a week. What i noticed was though, that even after a week had passed the stuff didnt respawn in the previously looted containers (the ones that i looted when the respawn was set to 10k hours).

At first I thought the loot respawn was simply broken or bugged due to a mod, so I tested it. I deactivated every mod and turned them on one by one, while having loot respawn set to 1hour. It did work fine. Now i knew that the mods seemed to work fine and as of now I think that my issue was related with the respawn parameters that i used when setting up the server.

Is it possible (or maybe it is known already, which would make me look stupid;D ) that changes to the respawn timers dont apply to already looted containers that had a different respawn time?
For example: The containers that i looted with a respawn timer of 10k hours didnt respawn (yet) cause 10k hours havent passed. Meaning that only containers that i touched for the first time after the change from 10k to 1h respawn time, will have the 1hour respawn timer?

Anyhow, I am not quite sure yet, but so far I do think that changes to the respawn timer dont affect containers that you already interacted with while a different respawn time was active.
Last edited by Quikel; May 29, 2017 @ 4:07am
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: May 28, 2017 @ 4:21am
Posts: 5