Project Zomboid

Project Zomboid

Not enough ratings
[Multiplayer] Protect my generators!
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
54.227 KB
22 Sep @ 6:50pm
30 Sep @ 9:27am
3 Change Notes ( view )

Subscribe to download
[Multiplayer] Protect my generators!

Description
Have you ever decided to play with friends, but your friends ended up playing at different times or you had to leave earlier, causing your generator to go to 0% fuel and turning all your hard-earned fishes and squirrels into ROTTEN MEAT? No? Well, I HAVE AND I HAVE HAD ENOUGH. Presenting: Protect my Generators!




This mod protects generators from losing fuel and condition when the generator is within a safehouse and all safehouse players are offline. Support to Build 42 will be added when Build 42 gets a multiplayer.




  • Prevents generator fuel from going down when within a safehouse and all members are offline.
  • Prevents generator condition from going down when within a safehouse and all members are offline.
  • Protects all safehouse generators when server starts (assuming the server doesn't pause when no one is online).
  • To be fair, I thought I had more things to list, so I will add this item as well.




1. Why is it called Frequently Asked Questions when nobody asked anything yet?
A: Look, I ain't calling it Non-Frequently Asked Questions (NFAQ) or Non-Asked Questions (NAQ). So, just accept it. If you can't, just take it as the voices in my head asked those repeatedly.

2. I installed this mod in my pre-existing server and it isn't working!
A: That isn't a question, BUT I have the answer (possibly). When installing the mod in a pre-existing save, make sure to turn off and on generators already running so that the protection can be added to them.

3. I claimed a safehouse where I was living and my generator still used fuel and condition. Why is that?
A: Similar to the case above. You have to turn the generator off and on if you already had a turned on generator before claiming the safehouse.

4. Why does it only protect generators in safehouses?
A: Because if it protects any generator, it becomes very easily exploitable. Players could just leave a generator somewhere and everyone would get infinite energy. Creating a safehouse shouldn't be a problem as I assume most servers allow it. By the way, I'm aware it can still be exploitable to some extent because generator ranges are enormous, but it is what it is. If you want infinite generators, try buffy's infinite generators

5. Can I modify, extend or pack this mod into other mods?
A: Check the Disclaimer section.

6. I found a bug, what do I do?
A: There should be a bug report post in the mods' discussion forum. Post it there and I will append it to the Known Issues list.




  • [23/09/2025]: Added generator data save on pause to prevent issues in servers that use the pause on empty option.
  • [30/09/2025]: Fixed an issue with safehouse updates and safehouses without generators. This should have affected the protection of generators in case someone leaves your safehouse (stops being a member of it) and they were the only online member of it. By consequence, it also fixed the issue of your console getting spammed by errors when this happened.




  • None that I know of yet. (~ ̄▽ ̄)~




Originally posted by The Indie Stone:
Ask for permission
This mod can only be added to and extended with the express permission from the original creator. Having received permission, credit must be given to the original creator, both within the files of the mod and wherever the mod roams online.

If no permission is received you may not alter the mod, and it must be treated as a mod that is 'On Lockdown'.

[theindiestone.com]




If you enjoyed this mod, consider supporting me!
I'll (probably) not die if you don't, but your support lets me eat plonkies instead of Dead Rat (Rotten Cooked) and I will be grateful for your encouragement. ദ്ദി ˉ͈̀꒳ˉ͈́ )✧
[ko-fi.com]
I also plan on posting stuff like announcements for new mods, polls for future mods, teasers and more, if you wanna take a look or give your input. (。•̀ᴗ-)✧

Workshop ID: 3573185483
Mod ID: SammyPMG
Popular Discussions View All (1)
3
30 Sep @ 9:34am
PINNED: Bug Report
Sammy
5 Comments
Beornvig 30 Sep @ 1:34pm 
Okay sounds great thanks very much for doing this!
Sammy  [author] 30 Sep @ 3:18am 
Hello, @Beornvig.

Yes, that is the purpose. Of course, if you share a base with other people, the generator will consume fuel until everyone from that safehouse is offline. In case someone else is online and everyone from your safehouse is offline, your generator will not consume any fuel.
Beornvig 29 Sep @ 5:38pm 
So this is basically designed such that if everyone sets their own safehouse (personal base), the genny will only use fuel when that individual is online? So others can be online and doing stuff and their gennies will be using fuel normally, correct?
Sammy  [author] 24 Sep @ 1:25am 
Hello, @Tregedy.

When you talk about blue (and grey) safehouse tiles, I assume you are talking about the safehouse area visualization added by mods like this one , since I'm unaware of this being in the base game (aside from debug mode, where it shows red tiles). Regardless, I understand what you mean.

I restricted it to safehouse areas to prevent some level of exploits, but I understand they are not completely preventable (especially if players are allowed in others' safehouses), that some safehouses have more outdoor (and indoor) space than others, and that this might limit where and how players position their generators.

That being the case, I'm positively considering your feedback.
Thanks for the suggestion. :STPWitchNya:
Tregedy 23 Sep @ 5:39am 
A suggestion: maybe add a customizable range that can be adjusted, as
1: Most SH barrier are pretty limited and many houses dont have blue sh tile outside
2: some server (like the one i'm playing) have permitted building range that you allow to build, hence it outside of blue sh zone (for example 20x20 protected SH zone blue area and a extra 30 tile outward grey area)
TL,DR : What i mean is allowing admin to customize the range to be extend outside of the blue SH area would be nice