Project Zomboid

Project Zomboid

[B42] Lantern Fix
52 Comments
Cosmo 21 Jul @ 3:30pm 
@NamelessDude77 you my hero no errors and auto logging mod work without error too
Cosmo 21 Jul @ 3:24pm 
@NamelessDude77 let me check
NamelessDude77  [author] 21 Jul @ 3:22pm 
@Cosmo Try loading Bodily Functions after Lantern Fix, it should fix your issue.
FusionPhoenix 21 Jul @ 11:57am 
i have tons of candles and there are mods to make more. Can you make this work with candles too? it would allow me to save generator fuel and also it would make a good early game alternative to adding batteries to lamps
Cosmo 20 Jul @ 3:12pm 
at zombie.gameStates.IngameState.update(IngameState.java:1464)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
at zombie.GameWindow.logic(GameWindow.java:382)
at zombie.GameWindow.frameStep(GameWindow.java:916)
at zombie.GameWindow.mainThreadStep(GameWindow.java:642)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
`
Cosmo 20 Jul @ 3:12pm 
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:158)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3054)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5959)
at zombie.iso.IsoCell.update(IsoCell.java:5892)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4197)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4317)
at zombie.iso.IsoWorld.update(IsoWorld.java:4231)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1699)
Cosmo 20 Jul @ 3:12pm 
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:100)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:954)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1760)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:143)
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10617)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10255)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2287)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:2266)
Cosmo 20 Jul @ 3:11pm 
Hey @NamelessDude77 dont know why but "Auto logging mode" when u trying to auto gather logs and u have lantern in your inventory generate errors preventing "Auto logging mode" form working. Honestly, I don't know what the connection is here, but if you can, look at the building.

`function: transferItem -- file: BodilyFunctions.lua line # 1235 | MOD: Bodily Functions (0.12.3)
function: transferItem -- file: LanternFix_actions.lua line # 221 | MOD: [B42] Lantern Fix
function: transferItem -- file: TMRadio.lua line # 1096 | MOD: True Music Radio
function: perform -- file: ISGrabItemAction.lua line # 105 | Vanilla
java.lang.RuntimeException: Object tried to call nil in transferItem
Agent 34 10 Jul @ 10:15am 
Could u do this with candles as well?
Space Donuts 4 Jul @ 4:08pm 
Do you think it is possible to add the bulb/lamp glow? sometimes i forget my lamp since it blends to the grass lol.
NamelessDude77  [author] 2 Jul @ 11:21am 
@Zergyt Are you sure you didn't forget to disable invisible cheat in debug mode? Pressing N in debug mode also toggles invisible which disables/enables sounds.
Zergyt 2 Jul @ 11:09am 
This mod breaks sounds. Any sound of walking, actions, and other things is lost.
NamelessDude77  [author] 2 Jul @ 8:03am 
@Zarigani-san good catch, these tiles could work like a placeable objects, but I think you wouldn't be able to hold them as a 3D object. Well, I think it's better than nothing, I might look into adding them as a separate mod, just need some time, coz I'm busy right now.

@RunYouCleverBoy yeah, I don't think I can change the colors of lit lanterns in your hands. I could, however, add options to change the color of placed lanterns, so you can try and match with the default color.
RunYouCleverBoy 2 Jul @ 7:16am 
hello
holding lantern and it on the floor have different light color and bright (radius)
Zarigani-san 1 Jul @ 11:49pm 
I'm not familiar with mods, but is it possible to use the images of candles on the ground that you see at campsites?
ex.Coords: (X: 1221, Y: 10549)
NamelessDude77  [author] 18 Jun @ 7:38pm 
Candle guys, I might add them if they're still not in the game when B42 reaches Stable, or before if the sprites become available in some update.
Shiro 18 Jun @ 1:11pm 
PLEASE include candles in your mod I beg you, thank you a lot for your work!
D.A.V. 17 Jun @ 5:26am 
Класс. Благодарю. Считаю это должно стать базовой функцией!
jermany (He/Him) 15 Jun @ 5:05pm 
Your thumbnail is so cozy, i love it
tender lavender 14 Jun @ 3:32pm 
yay finally thx! :cherrypie:
GestumStage 14 Jun @ 12:20pm 
Спасибо Вам
bipolar 14 Jun @ 8:06am 
10k Visitors!!
LittleGiant 14 Jun @ 3:07am 
Excellent. Been waiting for someone to do this.
verdugo 13 Jun @ 8:53am 
Thank you!
Arsenal[26] 13 Jun @ 8:24am 
outstanding.
BoogerSugar 12 Jun @ 12:51pm 
I must say how much you just "lit up" my day. lol FINALLY!!
Dar'Gan 12 Jun @ 4:32am 
Can you do the same with ordinary lanterns and candles?
Kenpa 11 Jun @ 11:12pm 
Thank you for creating the obvious. Very much appreciated.
RunYouCleverBoy 11 Jun @ 7:22pm 
@NamelessDude77 maybe create invisible nocliping vehicle with headlight to become a flashlight))
Может поверх положенного фонарика создавать невидимую без столкновений и взаимодействия машину которая будет фарой светить? (может и есть способ натурально через функции использовать эти механизмы но я не знаю я не кодер))0)
Gorgonite 11 Jun @ 4:46pm 
Chuck McGill moment
Seti 11 Jun @ 1:58pm 
oooo can you make this work with candles too?
Moon-and-Star 11 Jun @ 1:28pm 
I love you. Thank you so much for this mod
Radical Randy 11 Jun @ 12:56pm 
I can't even begin to express my disappointment when I finally found a lantern. Sweet mod.
ousiaSEManistia 11 Jun @ 12:26pm 
THANK YOU!
Суъея Сvит 11 Jun @ 9:39am 
I've been hoping someone would make a mod for this. The community would immensely appreciate if you started doing the same for all other light sources. So, so crucial. Especially with the new lighting system that B42 has implemented. Again, thank you!
NamelessDude77  [author] 11 Jun @ 5:30am 
@Heartnire done
Heartnire 10 Jun @ 9:03pm 
Remember to mention the Workshop ID and the Mod ID at the bottom!
Zarigani-san 10 Jun @ 1:04am 
Can you make a candlestick using an empty can and a candle?
mcs 10 Jun @ 12:31am 
Great work - instant download!
If it can ever have flashlights and candles included that would be amazing.
[12FN]Night Monkey 9 Jun @ 11:55pm 
Candles would be great, I always wanted Standing Candles that could be lit.
R o c k y J e t 9 Jun @ 11:15pm 
thank you!
Space Donuts 9 Jun @ 10:32pm 
Nice, I was actually sad when I found a lantern and it doesn't let me place and light them. Thank you for this.
NamelessDude77  [author] 9 Jun @ 5:34pm 
@Gimbo I'd like to add light to candles too, but there's no object that could be used as base. Even the ones seen in The Sanatorium trailer can't be found as an item, but I hope we'll have those in game soon.
Gimbo 9 Jun @ 4:04pm 
It could be possible to find a solution also to place candles and lit them?
leshi49 9 Jun @ 9:00am 
hurray! I was waiting for this! thanks!
Slav3106 9 Jun @ 8:29am 
Thank you. Absolute must have.
Katabolic 9 Jun @ 7:12am 
Dang, been waiting for this mod a while now.
Gimbo 9 Jun @ 7:03am 
Dude i can only say...thank u! U are the best!
NamelessDude77  [author] 9 Jun @ 5:52am 
@RunYouCleverBoy I wanted to deprecate this mod once PZ devs add this to the base game, but maybe I could turn this into something that does that for flashlights instead, if it's still not there. Right now, I'm not sure I can do it with the same method without giving up realism due to flashlights emitting light towards a direction instead of a radius, but I'll see.
RunYouCleverBoy 9 Jun @ 5:12am 
can u make able do same with flashlights? like big yellow- i wanna place it in corner of the room and go do mu business and search and fight with 2handed weapon and e.t.c