Project Zomboid

Project Zomboid

Flashlight Indicator
 This topic has been pinned, so it's probably important
GLICK!  [developer] 31 May, 2024 @ 5:04pm
Bug Reports & Issues
If you encounter any bugs, glitches or otherwise weird and confusing behaviour with my mod please reply here! For urgent (read: game-breaking) issues, I respond more quickly through discord. You can reach me @grimno1re. Cheers!
< >
Showing 1-14 of 14 comments
Socorra 2 Jun, 2024 @ 1:36pm 
Got an error in the console, here's the image [i.imgur.com]
BlackViper 3 Jun, 2024 @ 6:20pm 
I have both set to only be on when lit, however it shows an unlit candle at all times regardless of setting.
GLICK!  [developer] 4 Jun, 2024 @ 9:40am 
@BlackViper, Hey! Are you playing in multiplayer or singleplayer? Trying to track down the source of this issue, thanks.
camargopedro 5 Jun, 2024 @ 12:59am 
Originally posted by BlackViper:
I have both set to only be on when lit, however it shows an unlit candle at all times regardless of setting.
same bug here!
playing singleplayer
c17i4o 5 Jun, 2024 @ 10:08am 
i get the same issue too, multiplayer. using the better flashlights mod aswell both flame and torch will show as unlit even with the settings changed to not do that, will only go away after using the torch or flame.
BlackViper 6 Jun, 2024 @ 11:53am 
Originally posted by GLICK!:
@BlackViper, Hey! Are you playing in multiplayer or singleplayer? Trying to track down the source of this issue, thanks.

Multiplayer self hosted server
Quilava 8 Jun, 2024 @ 10:54pm 
When you load your game, this error pop up every time, not game breaking or anything, but it getting on my nerve, could you check it out and patch it? Here what the error magnifier got, im not a coder so i cant understand what this is, but pretty sure it came from this mod


`attempted index: options of non-table: null
function: applySettings -- file: FlashlightIndicator.lua line # 278 | MOD: Flashlight Indicators
function: onSettingApplied -- file: FlashlightIndicatorOptions.lua line # 18 | MOD: Flashlight Indicators
function: Add -- file: FlashlightIndicatorOptions.lua line # 148 | MOD: Flashlight Indicators
java.lang.RuntimeException: attempted index: options of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:65)
at zombie.gameStates.IngameState.enter(IngameState.java:737)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`
Anyone know how to get completely remove this from a server? Ever since I first put it on things have been really laggy when accessing menus and in general gameplay, especially after opening the r-click menu on a flashlight.

I have unsubbed from the mod but the issue persists. Is there maybe a setting under the hood it changes that I can manually edit back to default?

Any help would be appreciated.
GLICK!  [developer] 24 Jun, 2024 @ 12:50pm 
Hi @Rockstar McKickass, sorry for the late response. This mod doesn't store any data whatsoever so it's odd that it would cause any issues once uninstalled. Are you running any other mods alongside this? If you mean you aren't sure how to remove the mod from a dedicated server; removing the ModId and WorkshopId from your server config should do the trick.
Hey there @GLICK!,
Just here to tell you that options choosen in the Mod Options while ingame are bugging out when returining to the game.
It seems the options are not read on load and it just uses the defaults one, the modified options are there (like alternate icons, or the position of the icon) but until i switch something up in the Mod Options settings and turn a flashlight on/off it doesn't pick up the options i set up.

I haven't check inside the mod, but i think it should be a "check options after load" kind of thing thats working funny, the Mod Options settings are ignored until you change something and force a "flashlight turned" event.
I'm self hosting from inside the game and even just backing out to the main menu will mess with the options when starting and joining the server again.

If i can be of any help with the code or testing i would gladly do so if you want me to :^]

PS: Default options are kinda trash '^.^... showing only the icons when turned ON should be default (who uses candles btw?), and i like the alternate icon better since is just an indicator and not a full drawing but thats my cup of tea
GLICK!  [developer] 1 Jul, 2024 @ 8:42am 
Thanks, I'll look into it! The reason there are separate icons for lights and flames is that the game treats these as separate sources of light (cone shaped vs dot shaped.) One of my main reasons for making this mod is because I often hit the flashlight hotkey by accident and end up wasting an entire lighter- so I wanted a better way of knowing it was on since the light is pretty crap and doesn't help, lol.

When setting the default display modes I considered making it "On Only" but decided to make the defaults as feature rich as possible since I don't want people to require one of the config mods in order to access features. If other people feel that this isn't their ideal option, I'll definitely consider changing it.

I've included support for Mod Options alongside Mod Config Menu because I know some people don't want to have to use both at the same time. Have you tried this with MCM? If it's exclusive to Mod Options then that really narrows down the issue. Cheers!

(BTW, if you're a modder the source for this lives on a public repo linked in the mod description)
Originally posted by GLICK!:
I've included support for Mod Options alongside Mod Config Menu because I know some people don't want to have to use both at the same time. Have you tried this with MCM? If it's exclusive to Mod Options then that really narrows down the issue.
Reporting back :)
I just tried that Mod Config Menu, it works perfectly, either rejoining or restarting the game makes the saved options load correctly, it does narrows it down to the Mod Options failing to load the saved config, i hope that helps.
I didn't knew MCM was a thing (~40k vs ~4mill subs is quite the gap), i'll try to make them both work but it would be nice if the "bigger" mod configurator worked fine :smile:

Originally posted by GLICK!:
When setting the default display modes I considered making it "On Only" but decided to make the defaults as feature rich as possible since I don't want people to require one of the config mods in order to access features. If other people feel that this isn't their ideal option, I'll definitely consider changing it.
I get why you would do that, but remember "more is not always better", i know the feeling of putting features in that no one will use just because they don't go into the configuration of things..., but i would say that mod configuration is as basic as mod installation, OP Steam Workshop just made ppl get lazy/forget how messy it was before (but thats a good thing).

Again, THANK YOU for the mod :heart:
I really think this kind of "light on" indicator should be in the game in some kind of way.

PS: I'm no modder, i do am a programmer who spends his workday fixing/reviewing old proyects, jumping frameworks/languages almost daily, i would gladly help you (or any modder, you guys do "lords work" '^_^) but i hope you understand that i don't really plan to decypher some one elses code in my free time if it is not needed, i rather help from the sidelines :lunar2019piginablanket:
Last edited by XiloX (♫]-MuSiK-[♫); 7 Jul, 2024 @ 8:32am
莫名某某 8 Sep, 2024 @ 8:06am 
having same issue where no matter what settings, it reverts back to over the head and both stay on same time
GLICK!  [developer] 8 Sep, 2024 @ 10:21am 
Hey everyone! I just pushed a likely fix for the issue with Mod Options not properly saving and loading your settings. Since it's an issue relating to another mod and multiplayer it's hard for me to test so let me know if you find anything wrong with the new update.

The moodle add-on has also been updated to reflect this.
< >
Showing 1-14 of 14 comments
Per page: 1530 50