Project Zomboid

Project Zomboid

216 ratings
[B42] Lantern Fix
2
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
128.842 KB
8 Jun @ 10:37am
8 Jun @ 6:24pm
3 Change Notes ( view )

Subscribe to download
[B42] Lantern Fix

Description
This mod adds the ability to light the new vanilla lanterns introduced in B42 unstable.
Currently, the base game allows you to light them only while equipped. This mod lets you light them on ground or any surface.

To show the option to light, right click on one of the following 3 lantern types:

- Hurricane lantern
- Propane lantern
- Improvised lantern

Make sure to have a lighter in your inventory before you try to light a hurricane lantern.

This mod also fixes the refill recipe. It requires 1L of gasoline to completely fill a hurricane lantern. The recipe needs at least 1L to work, but it will consume less if the lantern already had some fuel.

In order to avoid wasting a lighter too many times, a lit hurricane lantern can be kept in your inventory and will automatically turn on when equipped or dropped. Unfortunately, due to limitations, you can't do the same using the place option.

Keep in mind that some of these features are likely to be added in a future update by PZ devs, so I'm not extending it further nor am I adding multiplayer support.

> Known issues:

- Auto Logging crashes when gathering logs.
-- Solution: if you have Bodily Functions (0.12.3) load it after Lantern Fix.

Workshop ID: 3495594275
Mod ID: LanternFix
Popular Discussions View All (1)
1
2 Jul @ 8:11am
Lanterns arnt as cool as candles
[12FN]Night Monkey
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.