Project Zomboid

Project Zomboid

[B41 / B42] Chunk list tool
29 Comments
Cat 8 Oct, 2024 @ 2:49pm 
@Maks

This mod does not typically delete files, you might have a corrupted Zomboid.

Go ahead and uninstall your zomboid, unsubscribe from all workshop items - go to your workshop folder and clean it.
AVR 8 Oct, 2024 @ 1:26pm 
Hello! An error popped up about some file being incompatible. I didn't have time to see what happened. Now the mod doesn't work at all. The context menu with the item does not appear. I tried deleting and re-downloading the mod several times. Checked the integrity of the game. Everything is ok. I created a new world - it doesn't work. I'm an admin. It worked before this error. Maybe the mod deleted some file?
Cat 19 Dec, 2023 @ 6:59am 
@Smurf∞¸.•'¯)

Basically how it would be normally, an RV Interior is just a empty spot on the map far away from the normal map.
Smurf∞¸.•'¯) 18 Dec, 2023 @ 9:27pm 
how do you record chunk inside rv interior
pynoTTV 20 Jul, 2023 @ 4:29am 
yes, it should put also the loot @dubkito
Dubkito 11 Jun, 2023 @ 1:25pm 
you rule bikinihorst i love your mods from the beggining, now i have a server on nitrado with some mod maps. and the loot its NOT respawning in my modded maps and its in the vanila ones.
can i use this tool to force respawn in those maps?
pynoTTV 7 Jun, 2023 @ 5:24am 
thanks for this great mod, thanks to this mod i can save a list of numbers that refer to the various chunks of the map, after i ask chatgpt to create a string like this "map_" added before each token and separated by commas, no spaces.
The list is created automatically and I can restore small areas from the map on each restart.
I have a few questions if you can answer them.
Can I create a chunk list greater than 10x10 chunks?
Is there a place where you can visimanete the "coordinates" of the various chunks?

Translated with www.DeepL.com/Translator (free version)
bikinihorst  [author] 9 May, 2023 @ 10:34am 
you can make a chunk list of the map areas you need to regenerate but that is probably not worth the effort. adding map mods mid game is always iffy, in particular with some becoming loot sterile because of broken zoning definitions.

will this mod help a savvy admin in doing this? only the "map and dump a list of the chunks that need to be deleted" kind of way. the rest is up to you.
JuiceZ 9 May, 2023 @ 10:29am 
will this mod help fixing late map mod indstallations?
Trying to add research facility to my map, but dosent seem to load in.
Ravencreek is installed from start and works.

Before i tried to add research facility, i already been i the location where it should be located.
So thought it could fix it, if i could reload the chunk
bikinihorst  [author] 26 Apr, 2023 @ 5:52am 
you need shell access of some sort to run the scripts. i never had any administration experience with anything other than dedicated server running on bare metal, so your guess is as good as mine, if yours supports that. this mod just spits out a list of chunks that can be processed in any way an admin needs. if you're on windows there's also somebody who made a windows version down the line in the comments.
pynoTTV 26 Apr, 2023 @ 5:45am 
okey, I don't need a dedicated server, right?
These are operations that I can also do from the administration panel offered by my hosting service, am I wrong?
bikinihorst  [author] 26 Apr, 2023 @ 5:41am 
like i write in the description: you can make a chunk list with it, it does not wipe the areas or anything like that. i bundled scripts for linux bash that can do it but you'll need to do it yourself.
the area for selection should in general not exceed around 150 tiles in diameter because that is when the world begins to unload squares.
pynoTTV 26 Apr, 2023 @ 4:29am 
so I can wipe small areas of the map with this mod, right?
How big can I make the area before it doesn't register?
I've noticed that when I move I get errors (while outlining the area on the ground)
When is the zone wiped? On the next restart? Thanks for the answers!
[Z] 13 Jan, 2023 @ 1:01pm 
Thanks a lot for your mods!

Is it possible to add another option, so we can highlight an entire area? just like adding a custom safehouse

Would be really helpful for bigger area

Thanks again! :steamthis:
bikinihorst  [author] 8 Jan, 2023 @ 3:14am 
I packed my own bash scripts in here because I wanted to help people to see how they can use the lists generated by the mod. I did not intend to make more of them. The mod is the Lua part, not the bash side of how to use the lists. If you create one of these randomized scripts feel free to share it with others in a discussion.
LameGirlyCurly 7 Jan, 2023 @ 3:13am 
Very handy tool.

Would it be possible to add more "randomness" into the mix?

The script would pick a configurable number of chunklists from a "master-list" (The "master-list" contains all the chunklists user has made). Each time the script would remove only a part of the master-list. Each restart would remove the same configurable amount of chunklists from the "master-list" and after all the lists would've been wiped once the master-list would be restored and the random cycle would start over.

I've made 57 different chunk-lists from the map, basically dividing all of the non-residential zones into smaller lists (Louisville as an example has around 10 different lists). Having all the reset-area wiped at once makes it way too easy for players to predict when to go and loot all the "high-value" items and more randomness would make it more interesting imho.
TIFFANY 11 Dec, 2022 @ 1:25am 
Self-resolved. Thank you for your patience.
TIFFANY 10 Dec, 2022 @ 11:35pm 
@sony

I cannot copy the following in the bat file

"for /f "delims=" %%a in ('dir /a-d/b "%d%"^|findstr /g:"%f%"') do (copy "%d%\%%a" "%bd%\%a")"

am I wrong?
Tofuman 4 Dec, 2022 @ 4:10am 
Understandable, cheers for an amazing tool!
bikinihorst  [author] 4 Dec, 2022 @ 3:53am 
i can't help you with that, as it is an OS / user related thing. the message says you do not have write permissions on the folder and if you chown -R usertryingtodelete then it should work.
Tofuman 4 Dec, 2022 @ 3:22am 
that I did, I even chown the the whole zomboid folder. Anyway, I believe map_XX_XX.bin has been deleted and that alone is enough to refresh the map after testing.
bikinihorst  [author] 4 Dec, 2022 @ 2:49am 
the user you are using to access the files does not have permissions to access them. make sure you are executing the script as the savegame owner
Tofuman 4 Dec, 2022 @ 2:41am 
very useful but why do I get

/home/XXX/Zomboid/chunk_remove.sh: line 17: /home/XXX/Zomboid/Saves/Multiplayer/servertest/isoregiondata/datachunk_913_970.bin: Permission denied

message?

I already added chmod -x to the sh files.
bikinihorst  [author] 10 Nov, 2022 @ 1:37am 
only by deletion of the files on the server side
nigel 9 Nov, 2022 @ 8:19pm 
Do you think there's a way to reset chunks in-game?
zestar 19 Oct, 2022 @ 2:47pm 
I really like this tool so much, please add a backup then clean then restore option. thanks
Ssaulabby 18 Oct, 2022 @ 9:54pm 
awesome, very useful tool to run my server. Thank you for your service
Mark 1 Sep, 2022 @ 6:22pm 
for windows:
chunk_remove.bat
[code]
@echo off
set "d=C:\Users\%username%\Zomboid\Saves\Multiplayer\servertest"
set "f=C:\Users\%username%\Zomboid\Lua\chunk_lists\removal_list.txt"

for /f "delims=" %%a in ('dir /a-d/b "%d%"^|findstr /g:"%f%"') do del "%d%\%%a"
pause
[/code]
[kabrňačka] Woodbinka 29 Jul, 2022 @ 3:28pm 
This is a great idea! Would it be possible to make this accessible through ingame map as well? Would it make much easier to make big chunk lists without having to travel there.