Project Zomboid

Project Zomboid

79 ratings
[BROKEN] Improved Generator Longevity
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.082 KB
20 May, 2022 @ 1:34pm
25 Jul, 2022 @ 7:42pm
11 Change Notes ( view )

Subscribe to download
[BROKEN] Improved Generator Longevity

In 1 collection by GenChadT
The Collective Server Mods
209 items
Description
IMPORTANT: This mod is deprecated and no longer receives support.

NOTE: Unfortunately this mod doesn't allow you to repair generators to anything higher than 100%, so while you can set the condition to 200 you can't repair it until it hits 99, and even then only back to 100 condition. I'm exploring ways of getting around this but I can't promise an ETA or anything. The Java files regarding repair apparently have a hard set limit of 100 condition that cannot be modified so the fix will need to be kind of tricky unless the devs update the game.

Allows you to set the maximum starting condition of generators.

By default in vanilla all generators have 100% condition and they can run down fairly quickly.

Using this mod you can set that value to 200%, 300%, up to 1000% and have generators that last several weeks provided the fuel supply lasts.

Note: Generators "baked" into the map can sometimes not have their condition modified. Most spawn correctly but you may run across the occasional vanilla generator. I'm open to suggestions on how to correct this but for now it's not a huge issue.

This mod will only work on new saves!

How to Use
  1. Locate "Generator Maximum Condition" setting under the World options tab in sandbox settings.
  2. By default it's set to the usual 100%. Change this value to your liking!

For Server Owners

Here is the settings block for your SandboxVars.lua file:
ImprovedGeneratorLongevity = { -- Minimum=1 Maximum=1000 Default=100 Generator_ConditionMax = 100, -- Minimum=1 Maximum=1000 Default=100 SteamGenerator_ConditionMax = 100, },

NOTE: This mod only works on new saves!



https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2821892172

Includes translations.

Workshop ID: 2810514843
Mod ID: ImprovedGeneratorLongevity
Popular Discussions View All (2)
9
16 Jul, 2023 @ 3:34am
Repair past 100%
dtoxic
5
4 Feb, 2023 @ 6:16pm
I think i knew what broken
kERHUS
52 Comments
Laires 3 Jan @ 2:44am 
@Aparajita Yes in sandbox there is option to change the condition, idk what admin panel is. I know the mod doesn't affect predetermined generator spawn locations, which are only a few, but the randomly spawned ones do spawn with the condition set in Sandbox which you can modify mid-playthrough with a mod that allows for that. But it will only change generators that haven't spawned yet so you will have to enter a new area to see them. I didn't have issues making this mod work even with hundreds of other mods while playing B41. There were some inconsistencies and some generators reset to 0% condition after updating modlist, but all in all I regret nothing. In the worst case you will end up with regular 100% condition generators you'd have without the mod so there is no risk to it as far as I'm concerned.
GenChadT  [author] 1 Jan @ 5:52pm 
@Aparajita This mod is deprecated and its highly likely it doesn't work anymore. I only left it up for MP servers that installed it and don't want to corrupt their saves.
Aparajita 20 Dec, 2024 @ 11:56am 
Laires, I'd like to use the mod, too, but I do not see the ability to change anything in the admin panel. Is it only changeable via editing the SandboxVars?
Laires 21 Apr, 2024 @ 1:59am 
Love this mod to bits. The only reason I still play the game and try long playthroughs is thanks to this mod. Set condition to 9999, fuel consumption to 0 and generator spawn rate to Extremely Rare. Now every generator you come across will be useful. No more are they just reactive on/off switch for gas stations. Now you can proactively power street lights anywhere, plop down 4 gens and power the entirety of a school and turn that into your base, because now you can base in large buildings and cover their entirety with electricity! Pairs extremely well with mods that make it tougher to generate food, to find food, to find water and in combination with Madhouse Repairs for fortification HP and Horde Night for putting them to the test this is how I enjoy playing the game and it would simply not be possible without this one mod tying it all together. Thank you GenChadT. :)
Ovaxius 5 Feb, 2023 @ 9:58am 
lol would do however i'm a little rusty on the programming however it's a idea if you can't get it past 200%
GenChadT  [author] 5 Feb, 2023 @ 9:51am 
@Ovaxius possibly. Rewriting vanilla methods is a bit out of my wheelhouse so feel free to go for it if you have the kills.
Ovaxius 5 Feb, 2023 @ 9:48am 
wouldn't it be easier to set the degrading rate to 50 to 25 percent? it might not be 200% but the slower degrading rate would act as if it was 200%
kERHUS 4 Feb, 2023 @ 11:21am 
GenChadT  [author] 27 Dec, 2022 @ 9:34pm 
@zee It's designed to be used only on new saves but others have commented it's worked afterwards? So YMMV
WolfChen 24 Dec, 2022 @ 3:38pm 
@zee not sure, it says that it only works with new saves.