Project Zomboid

Project Zomboid

49 ratings
[OBSOLETE] Improved Light Bulb Longevity
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
6.183 KB
Jun 16, 2022 @ 1:08pm
Jun 16, 2022 @ 10:58pm
4 Change Notes ( view )

Subscribe to download
[OBSOLETE] Improved Light Bulb Longevity

In 1 collection by GenChadT
The Collective Server Mods
209 items
Description
OBSOLETE - USE IN-GAME SETTING
Tired of lamps and outdoor flood lights running out of juice?

Set the maximum/starting condition of all light bulbs higher!

By default, light bulbs start at 100% condition with colored light bulbs starting at 10%. They burn out pretty quickly.

This mod lets you take direct control of those values in the "World" options tab in Sandbox settings.

Feel free to set all bulbs to 200% or 300%, or set them separately.

This mod only works on new saves!

How to Use
  1. Locate "Maximum Light Bulb Condition" and "Maximum Colored Light Bulb" settings under the World options tab in sandbox settings.
  2. The default values are vanilla friendly - 100% for regular bulbs, 10% for colored bulbs. Change these to your liking!

For Server Owners

It is advised to use this mod on new saves only. Preexisting bulbs in world will not see their condition settings modified!

Here is the settings block for your SandboxVars.lua file:
ImprovedLightBulbLongevity = { -- Minimum=1 Maximum=1000 Default=100 LightBulbs_ConditionMax = 100, -- Minimum=1 Maximum=1000 Default=10 LightBulbsColor_ConditionMax = 20, },


https://steamcommunity.com/sharedfiles/filedetails/?id=2810514843

NOTE: This mod only works on new saves!

Workshop ID: 2821892172
Mod ID: ImprovedLightBulbLongevity
24 Comments
Laires Jan 6, 2023 @ 3:23pm 
Alright, I'll finish my current run and then start using that instead. Thank you very much for making this mod. It really made my playthroughs better. Being able to light up bases in areas without natural electrical lights was huge game changer for me and reignited my passion for base building. :)
GenChadT  [author] Jan 4, 2023 @ 8:14pm 
@Laires No idea. This mod is only a dozen lines of simple code so it's likely the in-game setting is better.
Laires Jan 3, 2023 @ 1:52pm 
How does it work now with the new sandbox setting that allows us changing the longevity?
PaddiSson_ Sep 17, 2022 @ 8:37pm 
@GenChadT After further testing, I have the impression that the unused colored light bulbs are updated with this mod. Only partially consumed colored bulbs will not be updated and keep same condition after adding this mod.
GenChadT  [author] Sep 17, 2022 @ 6:01pm 
@PaddiSson I was mistaken with Alternative Inventory Rendering. I was under the impression that bulb condition would be shown in an expanded view but I had mistaken the feature with something else.

Also regarding the pre-existing bulbs, the mod isn't supposed to update existing items since the code is run on map initialization but if it is currently doing so that's good to know, though I am unsure of how it's doing that.

Glad you're enjoying the mod!
PaddiSson_ Sep 17, 2022 @ 10:38am 
@GenChadT I tried your mod on my dedicated server, and it seems to work fine. Thanks for your contribution!

" Preexisting bulbs in world will not see their condition settings modified! "
I feel that this is not correct. I just tested the mod on my dedicated multiplayer server with an existing save and the conditions of the colored bulbs in my containers (already spawned) have been upgraded to 100.
I specified 100 as the value for LightBulbsColor_ConditionMax = 100 in the SandboxVars.lua
PaddiSson_ Sep 17, 2022 @ 8:11am 
@GenChadT, you said " Try the mod Alternative Inventory Rendering. IIRC it will show condition of bulbs when the stack is expanded in your inventory. "
I also use this mod but I don't see the bulb condition indication. I only see this indication for batteries for example. Are you using another mod that could indicate this?
https://imgur.com/a/595H5pM
Laires Sep 5, 2022 @ 5:10am 
Works great, I absolutely love it. Exactly the type of QoL mod that this game needs more of. I find the vanilla very unrealistic and annoying everytime I have to replace lightbulbs in every lamp after a week. This opens up a lot for me, especially in combination with the generator longevity mod. Both staples for anyone wanting to build their own home from scratch having the only lights consuming lightbulbs. The generator mod also allows you to make near infinite generator condition so you can put them next to roads just to turn on street lights or in different parts of the city you intend on turning into your very own gated community.

The only thing I'm missing now is a battery longevity mod to buff duration for the flashlights on pillars, radios and boomboxes from the True Action mod, but I can make do without that. :)
Madforce2k Jul 27, 2022 @ 10:50am 
@GenChadT Thank you for the suggestion for bulb condition, the mod looks great for the most part, but lacks some support around relearned recipes if using SkillRecoverJournal mod and marking magazines 'read' if you know the recipe. That's a dealbreaker for our server currently. 'Has Been Read' supports this. So those two mods are in conflict currently. :/
GenChadT  [author] Jul 27, 2022 @ 10:10am 
I have a beta version ready to support other mods if anyone needs it!