Project Zomboid

Project Zomboid

80 个评价
[BROKEN] Improved Generator Longevity
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
5.082 KB
2022 年 5 月 20 日 下午 1:34
2022 年 7 月 25 日 下午 7:42
11 项改动说明 ( 查看 )

订阅以下载
[BROKEN] Improved Generator Longevity

在 GenChadT 的 1 个合集中
The Collective Server Mods
209 件物品
描述
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://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2821892172

Includes translations.

Workshop ID: 2810514843
Mod ID: ImprovedGeneratorLongevity
热门讨论 查看全部(2)
9
2023 年 7 月 16 日 上午 3:34
Repair past 100%
dtoxic
5
2023 年 2 月 4 日 下午 6:16
I think i knew what broken
kERHUS
52 条留言
Laires 1 月 3 日 上午 2:44 
@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  [作者] 1 月 1 日 下午 5:52 
@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 2024 年 12 月 20 日 上午 11:56 
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 2024 年 4 月 21 日 上午 1:59 
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 2023 年 2 月 5 日 上午 9:58 
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  [作者] 2023 年 2 月 5 日 上午 9:51 
@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 2023 年 2 月 5 日 上午 9:48 
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 2023 年 2 月 4 日 上午 11:21 
GenChadT  [作者] 2022 年 12 月 27 日 下午 9:34 
@zee It's designed to be used only on new saves but others have commented it's worked afterwards? So YMMV
WolfChen 2022 年 12 月 24 日 下午 3:38 
@zee not sure, it says that it only works with new saves.