Project Zomboid

Project Zomboid

PhunZones
75 Comments
Samy FIGUEROA 24 Sep @ 12:20pm 
Ok the file finally appeared ^^
UburGeek  [author] 23 Sep @ 11:14pm 
It will be in your lua folder. eg lua/PhunZones.lua, however it only appears once you make a change
Samy FIGUEROA 23 Sep @ 3:03pm 
is this file generated automatically ? I can't find it anywhere :/
Samy FIGUEROA 23 Sep @ 2:59pm 
I dont find any ''PhunZones.lua" on my server files :/
Samy FIGUEROA 23 Sep @ 2:55pm 
It looks like an awesome mod ! I installed it on my server but where do you configure the PvP zones for a custom map?”
UburGeek  [author] 16 Sep @ 12:32pm 
Hey jimdogman, sorry, but have only just seen this message. Is PvP enabled on the server?
jimdogman 14 Sep @ 1:00pm 
I run a server, and really like your mod, but it seems to break the PVP safety system and effects the entire map, even if all zones are disabled. Am i doing something wrong?
UburGeek  [author] 27 Aug @ 10:28am 
PW, I will need to investigate as I don't know if that can be done based on just a specific area
PW 26 Aug @ 10:33pm 
Would it be possible to add a toggle for zombies being able to thump buildings?
Claire 25 Aug @ 12:43am 
Found it! IGUI_PhunSprinters_MoonPhaseo modifier 100%
Claire 24 Aug @ 9:44pm 
Thank you very much, I updated the mod on the server.

The moodle now working well, no problems have been found yet.
The PVP mode also started working correctly.
Claire 24 Aug @ 10:32am 
Hello UburGeek!

Another bug report:
I pulled a new zone, now I want to delete it, but I can't find the delete zone button anywhere. I also clicked the "Enabled" checkbox in it and now I can't change any other checkbox, including enabling the zone back.

Thank you for reading my bug reports, I haven't had a chance to check yet, I'm waiting for the right moment when there are no people on the server to update it.
UburGeek  [author] 22 Aug @ 12:15am 
Updates on raised issues (though please keep mod-specific notes in their own threads to avoid confusion). @Claire I had to run your comments through Translate let me know if I misread anything.

PhunZone

- Removed option to disable PvP in PvP zones
- Despawning zeds left unchanged; porting them may cause heavy performance issues

PhunSprinters

- Sprinter moodle now shows more consistently (still settings-dependent)
- Moodlets scale by risk: >5% = red, lower = shades of green
- Claire: please flag the untranslated string; I couldn’t find it
- Skeletons not showing on all clients is due to which client controls the zed; they should sync eventually, but it’s a PZ limitation

PhunLewt

- Fixed bug resetting zone settings
Claire 20 Aug @ 3:35pm 
UburGeek, вот небольшой багрепорт из того, что мне удалось обнаружить, надеюсь это поможет в разработке:

1. При входе в зону с отметкой PVP у игрока автоматически включается данный режим. Однако клик по иконке позволяет отключить PVP обратно (теряется смысл в данной настройке зоны).
2. Галочка которая запрещает нахождение зомби на территории работает, однако, она просто "деспавнит" всех зомби, которые заходят на территорию. Игроки могут использовать это как некий абуз, чтобы избавляться от большого количества врагов.
Claire 20 Aug @ 3:34pm 
1.3: Я как администратор сервера могу видить только красный мудлет. Если я покидаю зону, то зеленого мудлета у меня нет (он просто пропадает).

2. В настройках стоит галочка для отображения спринтеров как скелеты. Некоторые игроки видят их как обычных, хотя они бегают. Я попробовал перезапустить сервер еще раз, возможно проблема частично решена (все еще проводим тестирование).
Claire 20 Aug @ 3:34pm 
Багрепорт относительно спринтеров:
1. Есть подозрение, что мудлет работает неправильно.
1.1: В мудлете есть строка, для которой нет перевода (отображается как IGUI_...), вероятно нужно проверить Translate/EN на наличие.
1.2: Если стоит галочка "Показывать мудлет всегда", то у игроков на сервере мудлет всегда зеленый, вне зависимости от реальной ситуации. Т.е. игрок заходящий в зону (например Луизвилль) все еще видит зеленый мудлет, хотя и видит шанс риска.
UburGeek  [author] 20 Aug @ 4:01am 
Ah, that does sound pants. Ill investigate and sort Claire
Claire 20 Aug @ 12:25am 
PVP toggle works bad, any player can click on pvp button to disable it!
Naup 12 Aug @ 12:37pm 
At the same time, I noticed that an old issue has only been partially resolved.

Do you remember I mentioned that after shutting down/restarting the server, all settings would revert to zero? This still happens.

However, I can open the interface and press “Save” to reload the contents of the “lua file,” restoring all regional settings and loot drop rates. Perhaps it would be worth considering adding a “reload” button.

The problem is that when the server restarts due to a “mod update,” before an admin comes online, the world’s loot will be in its default state, allowing players to obtain more resources than intended.
Naup 12 Aug @ 12:37pm 
Before today’s update, “Default values” did not take the highest priority, but now they do.

For example, if the “Default values” are set to 0, then regardless of how I adjust the regional drop rates, no loot will appear at all.

This is just to address your question — no matter how you change it, I will adapt accordingly. The idea of duplicating is great, and in fact, I am currently doing the same thing by directly editing the “lua file” to set different loot drop rates for different regions.
UburGeek  [author] 12 Aug @ 7:16am 
Thanks for the feedback and suggestions. I may be misunderstanding you, but isn't editing the Default values the same as editing all values at once? Regardless, it makes me think a "copy" section could be useful.
Naup 12 Aug @ 3:32am 
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 12 Aug @ 3:32am 
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://gtm.steamproxy.vip/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://gtm.steamproxy.vip/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