Project Zomboid

Project Zomboid

PhunZones
54 Comments
Naup 55 minutes ago 
I know that "Default Reduction" can override the drop rates for all loot zones, but since I want to configure three specific zones—No Loot / Rare Loot / Rich Loot—I still have to manually enter percentage values for every item type. This is not an urgent need, but I believe it could be very useful for server administrators who use this mod.

This suggestion should ideally be posted in the "PhunLewt" comment section, but I don’t want to trouble you, so I’m responding here instead.
Naup 55 minutes ago 
Thank you. The edited "lua" file can now be read normally, and it no longer keeps reverting to the default settings.

I spent several hours using this mod, and I would like to suggest adding a new feature: the ability to edit the drop rates for all item types at once.

The reason is that when we set up loot zones with high and low drop rates, in practice we have to manually configure the percentage points for every single item type.

With the game’s default categories, this is usually just a matter of a few minutes. However, if a category-expanding mod or several other mods are installed, it takes considerably more time.

(Some mods tend to add their items under a “new category.”)
UburGeek  [author] 10 Aug @ 4:01pm 
Thanks for feedback Kapral, I will look to add a delete zone button. In the meantime, you could just delete from the lua/PhunZones.lua file (if you feel comfortable editing)
Kapral 10 Aug @ 1:38pm 
The mod is great, but there is not enough button to delete zones that are not needed, and over time, unnecessary zones on the server cannot be deleted.
UburGeek  [author] 10 Aug @ 10:30am 
Hey Naup, thanks for this report. I have just uploaded a fix that should hopefully address this.

Regarding your question about the files - custom modifications are stored in your lua/PhunZones.lua and lua/PhunLewt.lua files. If you are moving your configs between servers, simply uploading the files to your lua folder should be sufficient. However I would recommend that you shut down the game/server before you do this as those files are read when the server boots up
Naup 7 Aug @ 6:16am 
I encountered an issue that makes the feature unusable. After I "add zone" at any coordinate, as soon as I "Edit Region" and click "save", all newly added "zone" entries disappear.

This issue also occurs with the "PhunLewt" module, where the modified item drop rates get reverted as well.

I have not installed any other modules.

Additionally, when I migrate the "PhunZones.lua" or "PhunLewt.lua" files from the "lua" folder to a new server, how should I load the files themselves?
Ssaulabby 23 Jul @ 3:20pm 
yay, thanks UburGeek
UburGeek  [author] 23 Jul @ 12:34pm 
UburGeek  [author] 21 Jul @ 3:22am 
Hmmm. You are getting the error they quoted below when a zed wanders into a zed free zone? Can you get me your lua/PhunZones.lua file? It may be easier to send to me on discord if you're on there.
Ssaulabby 21 Jul @ 3:07am 
@uburGeek, i have the same problem with PW. I wonder why...
UburGeek  [author] 17 Jul @ 10:48pm 
@PW, I fixed that issue last week. Just checked again and cannot replicate. Shouldn't be an issue putting on to an existing server/save.
PW 17 Jul @ 7:25pm 
Hi! the mod still continues to index null would this be an issue by adding the mod onto a previously not wiped server?
UburGeek  [author] 6 Jul @ 12:56am 
Appreciate that, Ill look into this
PW 6 Jul @ 12:16am 
This is the main part of the error

`attempted index: main of non-table: null
function: getLocation -- file: core.lua line # 422 | MOD: PhunZones
function: updateModData -- file: core.lua line # 271 | MOD: PhunZones
function: Add -- file: client_events.lua line # 69 | MOD: PhunZones
java.lang.RuntimeException: attempted index: main of non-table: null

I dont know if this could be caused by night sprinters since its running on the server.
UburGeek  [author] 5 Jul @ 11:59pm 
Can you provide info on the error? A quick check here didn't produce an error
PW 5 Jul @ 4:21pm 
I've noticed the mod seems to spam errors with the zombies allowed turned off when zombies get near zones made. (this is using custom regions and zones for certain zones)
UburGeek  [author] 4 Jul @ 12:23am 
PhunLewt - Reducer mod has now been released. Allows you to fine tune control of lewt spawning by zone: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?edit=true&id=3516092704
UburGeek  [author] 4 Jul @ 12:18am 
Thanks for the heads up PW - this should be fixed in the latest version
PW 2 Jul @ 5:51pm 
Hi! i noticed an issue on a dedicated server where the disable widget sandbox option doesnt work In and out of admin mode.
Ssaulabby 29 Jun @ 9:05pm 
@UburGeek, hey hey thank you for uploading this mod. Can you also upload the PhunRunner mod as well? I believe that will make some zeds in the certain zone runners?
UburGeek  [author] 18 Jun @ 2:46pm 
I have uploaded a beta of the next iteration of this mod, including a beta version of the Lewt reducer that allows you to adjust loot spawns by zone. They are unlisted, but if you want to test and give feedback, it is appreciated. Lewt reducer addon is here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3502907723
Acidbunny 2 Jun @ 7:40am 
@UburGeek Yes please, I'd love that sprinter mod, as said, anything to let me make zones that act almost as an endgame experience with tougher zombies (sprinting, smarter, pinpoint hearing etc.)
stepbro 20 May @ 8:49pm 
This is a very nice mod tbh, and is a must-have for server admins. Keep up the good work!
Moff 20 May @ 4:26am 
@UburGeek just a big yes! this is what im looking for. you the man, wen release :bigups: Thank you cant wait for it (and mp)
UburGeek  [author] 19 May @ 10:28am 
Not currently, I do have a custom sprinter mod that I run on our PhunZoid servers that uses this mod to determine the amount of sprinters that a player will spawn (depending on the zone), but like the loot modifying one... it isn't ready for "prime time" yet. But if interested, Ill tee it up. The server is public if you want a taste for how it works: No sprinters in starting zones, places like Louisville have max #
Acidbunny 19 May @ 8:30am 
I haven't mucked about with this mod yet as I'm waiting for B42 MP to come out, however, is it possible to use this to designate certain zones with 100% sprinters? You mentioned below a loot modifying addon that I am also interested in, the idea being that I make zones on the map that act as a pseudo endgame where players can take their geared selves to deal with dangerous zones for more and better loot.
UburGeek  [author] 12 May @ 2:03pm 
Not with this mod specifically, however I am actually making an addon to do just that as we speak! It allows you to reduce loot spawning of items or categories by a specific %. Is that what you're after?
Moff 12 May @ 6:50am 
is it possible to change loot settings w your mod? like zoning areas where you could find very rare loot?
UburGeek  [author] 3 May @ 3:58am 
@Tcela, I have added some code to prevent players bypassing the player prevention check by being in a vehicle. Let me know how you get on with it.

@monobi - I have added a new setting in the options called "Load Default". Untick that to prevent loading up the default vanilla zones
UburGeek  [author] 3 May @ 12:05am 
Sorry @Minobi, only just noticed your question. Ill look into adding an option to disable vanilla map zones, but in the meantime, you could add a zone that covers the entire map which would take precedent.

@Tcela, thanks for flagging. I will look into the car issue. Thanks for flagging
Tcela 2 May @ 10:11pm 
hi! really good mod, i found that when "Prevent players from entering zone" is on and you go with a car it kinda shows black screen until you get out of the car
asuragod93 2 Apr @ 3:47pm 
nice, are you thinking releasing more of this work?
monobi 30 Mar @ 6:40pm 
Super userful stuff, thank you! Is there a way to remove all Kentucky based pre-determined zones? I'm playing on a standalone map and deleting from PhunZones.lua doesn't seem to remove them.
UburGeek  [author] 26 Mar @ 12:30pm 
@DekinHaX,if you disabled pvp at server level (in your ini), this won't be able to override that. Why not just enable it in your server ini and control the zone values with this mod? Or have I misunderstood what you are wanting to do?
DekinHaX 25 Mar @ 9:54pm 
PVP zone doesnt work on a PVE server.
UburGeek  [author] 17 Feb @ 9:22am 
There you go @Karmesh. Disabling fire spread in a zone is now implemented. Note that the animations may briefly play, but no damage should happen. Also note that if you have fire disabled via your settings, this won't really have an affect.
Karmesh 17 Feb @ 1:39am 
Great mod. Looking forward to using the Fire setting when it's implemented.
UburGeek  [author] 16 Feb @ 9:08am 
Something isn't right. Unsub from the mod, delete lua/PhunZones.lua and resub. Be sure there is no lua/PhunZones.lua file. Do you get the same error?
Recon224 16 Feb @ 8:56am 
Removed everything from the PhunZones.lua and still received the following errors:

https://pastebin.com/VNNEdfYG
UburGeek  [author] 16 Feb @ 8:47am 
If that file is in your Lua folder, can you delete it? By default, that file shouldn't have anything in it. I suspect thats from an older iteration of the mod
Recon224 16 Feb @ 8:20am 
Here you go. I copied the file directly from the Github page. I'll try deleting it to see if that works.

https://pastebin.com/7C7zcUmx
UburGeek  [author] 16 Feb @ 8:17am 
Hmm. Can you pastebin your lua/PhunZones.lua file for me or post it on the Github issue? Also perhaps try renaming or deleting the file. It could be corrupt and causing the crash.
Recon224 16 Feb @ 5:58am 
Tried it on a test server with no other mods installed and still encountered the same issue. Here's the string of errors when trying to use add/edit zones.

https://pastebin.com/RawP41pW
Recon224 16 Feb @ 5:49am 
Hey! I originally responded on Github and appreciate your work! I installed this updated version and it appears to not be working still. The main issue I'm seeing is that it isn't picking up anything from the PhunZones.lua file for the zones. Even using the default one provided doesn't work. Trying to add any custom zones results in an error. I can get that for you if you need more information - just let me know.

Edit: On B41 and have the Phunlib dep. installed.
UburGeek  [author] 14 Feb @ 6:25am 
Thanks for flagging Charlie. The library is B41/B42, but I think when I last updated it, B42 wasn’t a tag. Am just setting up a new rig so will upload and tag correctly once that’s done
Charlie 14 Feb @ 5:31am 
how does this work for b42 if the linked lib is b41?
UburGeek  [author] 13 Feb @ 10:22am 
Excellent news! Thanks for helping to improve!
AlexFromKarelia 13 Feb @ 4:51am 
Tried last version of mod - works PERFECTLY for me, tried safehouse forbid and no Zeds spawn. Thank you very much, now I'm trying to do russian translation.
UburGeek  [author] 13 Feb @ 12:24am 
Hey Bimbo, thanks for this feedback - try the latest version and let me know if problem persists
AlexFromKarelia 12 Feb @ 10:46pm 
After update I tried to manage zones. File you mentioned, creating normally. For example, I want to disable "Allow Safehouse" in riverside. I'm pressing Edit region, then uncheking box, then press Save. After that, file creating lua/PhunZones.lua.
},
Riverside = {
subzones = {
},
points = {
},
region = "Riverside",
zone = "main",
title = "Riverside",
difficulty = 2,
order = 6,
},
But when I open Riverside region, Allow Safehouse checkbox exists.