Project Zomboid

Project Zomboid

Let There Be Light (B41 IWBUMS)
51 Comments
✪[KING] 8 Jan @ 2:47pm 
b42?
Jedimastertobias - Napoleon 22 Nov, 2024 @ 7:44pm 
mod is in location:
C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\2096940441\mods\LetThereBeLight\media\scripts\LetThereBeLight.txt for me.

If you want to change the values to less consumption change the useDelta = <somethingSmaller> then save the file.

I think maybe the torch on belt uses vanilla consumption and might be more.
Vanilla file for Torch is here:
C:\Program Files (x86)\Steam\steamapps\common\ProjectZomboid\media\scripts\items.txt
search for item Torch and maybe change to something smaller
Memmo  [author] 7 Feb, 2023 @ 1:27am 
@LogoNegro Glad to hear that! I'll still probably update the mod at some point to use LUA functionality rather than text scripts so that the changes are less destructive and can be used with other mods more easily, but great to hear it works for you.
LoboArtico 6 Feb, 2023 @ 11:07am 
@Memmorath Thanks for you answer. The mod doesn't need any update, something did the trick:

First: I disabled al the mods,both in the main menu and in the mutipiplayer. Then restarted and enabled all againa.
Second: I replaced the battery in the already existing lamps on pillars.

After that, it's working like a charm! Thank you again! I dindn't want to be changing batteries in my backyard daily :D
Memmo  [author] 5 Feb, 2023 @ 1:28am 
@LoboNegro you'll note that this mod was released in 2020, way before multiplayer arrived, and hasn't been updated since. So the likelyhood that this is incompatible with multiplayer is high, and as of right now, I have no plans to update this yet. (Probably when update 42 releases and I start playing again).
LoboArtico 4 Feb, 2023 @ 3:24pm 
I'm a bit disoriented at this. It doesn't work, but i'm in the stable 0.41. I could find the IWBUMS option. Perhpas the mod isn't compatible with multiplayer?
Memmo  [author] 3 Feb, 2023 @ 7:51am 
@Vitrolic Wither You only need a text editor to edit this mod. Once the mod is downloaded to your computer you can edit your local copy to have whatever values you want. Your local copy is only updated if I update this mod -- which is very unlikely.

That said, if you change the use delta to plain 0, I think that should disable battery consumption, or just make it into something really low, like 0.000000000001
Vitrolic Wither 2 Feb, 2023 @ 3:30pm 
Also if I wanted just the lamp on pillar battery increase could I just edit your mod to only do that?
Vitrolic Wither 2 Feb, 2023 @ 2:25pm 
So if I wanted to edit some mod files do I need a certain program to do so? Some files I can open with a text editor and edit them but others open into a cool file viewer and can't be edited.
Memmo  [author] 14 Apr, 2022 @ 8:04am 
@MAB no, but you should probably use Better Flashlights mod anyway. It has more features and less destructive coding.

I don't think it says so in the mod description, but that mod does also increases the battery life of handheld vanilla flashlights. Not nearly as much as my mod, but still a considerable increase. The only thing it doesn't seem to modify is the Lamp on a Post building.
MAB 14 Apr, 2022 @ 7:22am 
dose this work with "Better Flashlights" mod ?
Memmo  [author] 13 Mar, 2022 @ 5:56am 
@buffy Thanks for the tip, I'll take a look at the api.
buffy 13 Mar, 2022 @ 1:43am 
This could become compatible with other flashy lighty mods if you use itemtweaker api to set the usedelta rather than overwriting the base items! <3
Memmo  [author] 3 Feb, 2022 @ 3:25am 
@Rimean I just checked the code for Flashlight on Belt, and yeah sure, it doesn't add new items, but it modifies the exact same file as my mod does. My mod modifies the useDelta value of the vanilla flashlight; Flashlight on Belt uses the vanilla value. The mods are incompatible because they modify the same file. If you want to use Flashlight on Belt, just manually modify the useDelta. Flashlight vanilla value is 0.0009, my modded value is 0,00003. The lower the number, the longer the battery lasts.

Also, just a heads up, the way Flashlight on Belt is made is very destructive, as he has included in his files EVERY OTHER item as well. His mod affects dish cloths, needles, baking trays, bowls, every other item in the game. So if you ever use a mod which affects needles or bowls, Flashlight on Belt will overwrite those (depending on your load order, of course).
rimean 2 Feb, 2022 @ 1:16am 
Flashlight on belt affects vanilla flashlight, it does not add new ones.
Balalaika 29 Jan, 2022 @ 5:01am 
is this updated for MP?
Memmo  [author] 26 Jan, 2022 @ 1:40pm 
I'm going to guess that "Flashlight on Belt" is a different item from the vanilla flashlight, and this mod modifies only the vanilla items. The duration of a flashlight's battery is an attribute that is inherent to the item itself, rather than the battery placed in the flashlight. Since this mod doesn't touch the item "Flashlight on Belt" there is no extended battery duration.

You could probably very easily edit that mod yourself to give the belt flashlight extended duration by modifing that item's UseDelta value.
Falkon 26 Jan, 2022 @ 8:45am 
For some reason this isnt compatible with "Flashlight on belt" what a shame :(
rimean 25 Jan, 2022 @ 9:33pm 
IS there any chance that you would make this mod compatible with mod that allows you to put flashlight on belt?
i hope that i'm not asking for too much!
Great mod btw
Memmo  [author] 19 Jan, 2022 @ 8:42am 
@AndyLoco I find it highly unlikely that this mod would mess with car batteries, as I don't have that issue, and second, this mod modifies only three specific items (HandTorch, Torch, and basic Battery).
Falkon 19 Jan, 2022 @ 8:10am 
Hey, could it be that this mod has a problem with car batteries? Since I put this mod on my server car batteries remains on 100% but in reality they are not 100%, they can be 0% and the car wont start and you dont know what is happening, It took me a while to realise it was the batteries.
rat 23 Nov, 2021 @ 7:45am 
If you can find me a flashlight battery that lasts you six days non stop, I'll subscribe to this mod.
Flash 8 Oct, 2021 @ 7:03pm 
A lot of Souls mods causes conflicts with other mods. @Commander Kai disable exploring time
Commander Kai 3 Oct, 2021 @ 12:24pm 
I'm not sure why this mod isn't working. I'm on 41.53, and I added a battery at 4 AM...only for it to be dead 6 hours later.

I am in a heavily modded game, but I can't think of another mod that would cause incompatibilities. Maybe Soul's Exploring Time?
Memmo  [author] 26 Sep, 2021 @ 8:12am 
@axelroadman Probably. I tried to achieve that initially but couldn't figure out where that data was stored, so no luck there.
axelroadman 26 Sep, 2021 @ 2:48am 
Is it possible to make wall and table lamps also work on batteries for a long time?
Chivers S'Jet 1 Aug, 2021 @ 12:19am 
Does this work on 41.50 ? (not 51 and not IWBUMS)
Memmo  [author] 27 Jul, 2021 @ 6:54am 
@CSI48 no, but you can modify the mod's files to achieve something like that quite easily. Just change the UseDelta value to something very low, such as 0.000000001 and you'll get near infinite battery.
CSI48 27 Jul, 2021 @ 6:41am 
Is there a version that uses NO battery that can just stay on forever ?
The Ninth Pawn 25 May, 2021 @ 1:31am 
@Memmorath maybe you can look at the 'connect radio to grid' mod from MrRAT, he made grid-powered radio's
Workshop ID: 2001719506
Memmo  [author] 7 May, 2021 @ 7:10am 
@KingLouie that's a very good idea, but unfortunately beyond my modding skills.
KingLouie 7 May, 2021 @ 7:05am 
Oh nice mod, the battery life was a bit too short for my taste. :D
Would it be possible to make the pillar Lamps connect to the generator power grid? I've seen a mod do something like that, but it seems to be abandoned for a long time now.
Memmo  [author] 4 May, 2021 @ 8:13am 
@Ryu Shouldn't be.
Ryu 4 May, 2021 @ 4:10am 
Any problems with adding this mod mid-playthrough?
Memmo  [author] 1 Dec, 2020 @ 7:04am 
3 different options would be 3 different mods, so that's not gonna work.
If you want to change the values you can do so yourself by editing the text file in the mod.
Michał 1 Dec, 2020 @ 6:29am 
Why does the flashlight use 30 times less battery, and the Hand torch and Lamp on Pillar 10 times less battery? The modification causes that the Big Flashlight consumes less battery than a small flashlight. I am asking to make three lower consumption options for all batteries: 2x less, 5x less and 10 times less. Best regards.
Memmo  [author] 12 Nov, 2020 @ 10:21am 
@Zhmur only base game items: Flashlight, Hand Torch, and Lamp on Pillar, as the battery duration is determined by the items themselves, not actual batteries.
Mr Zhmur 12 Nov, 2020 @ 9:35am 
@Memmorath is that real add this flashlight too?
https://steamoss.com/sharedfiles/filedetails/?id=2041993851
Nefaerion 18 Aug, 2020 @ 11:01pm 
Ty, I might toy around with this. :)
Memmo  [author] 18 Aug, 2020 @ 6:58am 
@Nefaerion Very easy. There is only one text file in the mod. Change the UseDelta to whatever you want. The lower the number the longer the battery lasts. Do keep in mind the default values I've provided in the mod description.
Nefaerion 18 Aug, 2020 @ 3:45am 
Question, how easy would it be for someone to edit / tweak the effects of your mod to their own liking if they were to DL it? And could you detail that if at all possible? I do feel battery consumption is a bit much, but I do agree that this seems a bit extreme of a buff, to me anyway.
Higgins 26 May, 2020 @ 11:11am 
@Nebula
How can you possibly cheat in a single player game?

@Memmorath
Thank you for this. :)
epic 18 May, 2020 @ 10:23am 
Thank you! This mod makes for more sense than the actual battery life currently in the game. You could easily keep a flashright running a few days before it died.
Memmo  [author] 15 May, 2020 @ 7:15am 
@Nebula Right, I changed the mod description for you and instead of using percentages (which were based on the number value changes moreso than actual in-game time), I'll use the actual values that might not really mean anything to anyone. Enjoy :)
Memmo  [author] 15 May, 2020 @ 6:10am 
@Nebula I don't think so, no. It's a mod that adds longevity to three items based on personal preferences. If you don't like the mod no one is asking you to use it.
Nebula 15 May, 2020 @ 6:09am 
Your mod extends battery life too much. This is not good.
Nebula 15 May, 2020 @ 6:06am 
Your mod is cheat.
Memmo  [author] 15 May, 2020 @ 6:04am 
@Nebula Well, if there are cheat codes that extend Flashlight battery duration that's cool, but I fail to see what your point is..?
Nebula 15 May, 2020 @ 6:04am 
very long flashlight operating time ... 2900%. really? This is a lot. Therefore cheating.
Memmo  [author] 15 May, 2020 @ 3:25am 
@Nebula What cheat?