Project Zomboid

Project Zomboid

Light Switch Backlight
56 Comments
function: onTick -- file: LightSwitchBacklight.lua line # 48 | MOD: Light Switch Backlight

ERROR: General , 1747434770645> 46.918.685> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isWallTo of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1747434770645> 46.918.685> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: isWallTo of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
ETC...
Munin 25 Dec, 2024 @ 2:27pm 
Will you update this for B42, replacing the orange indicator light they added but can only be seen when facing the camera?
palapapa 24 Jul, 2024 @ 3:55pm 
I tried using this in an existing save and it messed up the lighting. My world now has random patches of light everywhere.
Umbras 18 Jun, 2024 @ 1:56pm 
works better than the other lightswitch highlight mod simply because it supports the low res textures
Reifel 30 Mar, 2024 @ 8:22am 
im getting weird glitch with all easy find switches, at some point it starts to disco, rapidly change colors of objects, containers...
Tnaz.v 1 Mar, 2024 @ 12:21am 
Exactly what he said, the same thing happens to me, please fix it. thank you
Cubaweeroi 8 Jan, 2024 @ 2:22pm 
Having the same problem: after respawning with a new character the switches are not lit anymore, unless you re-enter the world.
qorrja 6 Jan, 2024 @ 10:27am 
It works nicely at first, but when respawn, doesn't work anymore until reconnect.
(played co-op, without other mods)
Thanks for your work.
Captain Tofu 25 Nov, 2023 @ 9:35pm 
Very important info: The blacklight is only applied, when you are near a switch. I did not know that and discarded this mod upon finding it. Now I happen to have stumbled over a letsplay with this mod. I suggest mentioning proximity in the description
Jane Helldiver 15 Nov, 2023 @ 7:10am 
MOD WORKS AGAIN!!!

The roll-back fixed it! Zero errors. zero call stack issues. Highlights appear as expected.

Even with 400+ mods.

Thank you and KUDOS for rapid response
Jane Helldiver 15 Nov, 2023 @ 6:59am 
Happy to help test. I run with 400+ mods, and have never seen any errors with this until just today.

I don't know enough about code to pinpoint causes, but debug mode is pointing to line 50 and 85 when it pops up the errors.
Jane Helldiver 15 Nov, 2023 @ 6:58am 
Just did more testing in DEBUG mode. Sorry to report, but mod is no longer working in several ways.

Lua line 50: If object:canSwitchLight then ()
and
Lua Line 85 outline attempt

Spitting out infinite errors when standing in a tile directly outside of doors near light switches. Doors in North and South of my base have no issue, but East/West cause the infinite errors.

And no matter what method I have tried, including re-sub, and reset of steam and the game, the borders around the light switches simply don't work.

Mod appears to be broken since yesterdays update.

Additional Info: I have used this mod since it was first posted back in February. Never had any issues, errors, or stack trace errors prior to today
Макщ  [author] 15 Nov, 2023 @ 6:56am 
Thanks for the feedback. For some reason it's working fine for me. I'm figuring out what the problem is. I'll undo the changes for now.
Jane Helldiver 15 Nov, 2023 @ 6:19am 
November 14th update broke the mod.

Tested it fully on my server, solo play and also with ONLY this mod active.

No stack trace errors, but the mod no longer works
Макщ  [author] 15 Nov, 2023 @ 6:19am 
Hi. The mod was updated 6 hours ago. Is the mod still giving errors? If you are referring to errors like in the comments below - make sure you have downloaded the latest version of the mod. In rare cases you will need to restart Steam. Also try unsubscribing from the mod and then re-subscribing to it, then completely logging out of the game and restarting it. Hope this will help.

If the errors are not the same as in the comments below, then please provide me a stacktrace and mod list/collection if possible.
Fenrir 15 Nov, 2023 @ 5:32am 
Sorry to bother you. I'm not sure if there's been an update to your module, but lately, it has been consistently throwing errors. All my modules were working fine and compatible for a while. If you could check to see what might be causing the issue, I would appreciate it. I really like this module and would rather not remove it if possible.
Макщ  [author] 14 Nov, 2023 @ 11:11pm 
Thanks for your feedbacks. I was unable to reproduce the error on my side, but it should be fixed now.
Greyrat 14 Nov, 2023 @ 6:25pm 
STACK TRACE
-----------------------------------------
function: onTick -- file: LightSwitchBacklight.lua line # 48 | MOD: Light Switch Backlight.
[13-11-23 22:51:01.738] LOG : General , 1699937461738> 39,608,488> -------------------------------------------------------------
attempted index: isWallTo of non-table: null.
[13-11-23 22:51:01.738] LOG : General , 1699937461738> 39,608,488> -----------------------------------------
STACK TRACE
Greyrat 14 Nov, 2023 @ 6:25pm 
it still causes infinite errors :D
turnip 28 Aug, 2023 @ 11:43pm 
function: onTick -- file: LightSwitchBacklight.lua line # 48 | MOD: Light Switch Backlight

ERROR: General , 1693289445861> 180,560,637> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isWallTo of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1693289445861> 180,560,638> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: isWallTo of non-table: null
turnip 28 Aug, 2023 @ 11:42pm 
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
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:92)
turnip 28 Aug, 2023 @ 11:42pm 
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
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)
LOG : General , 1693289445862> 180,560,638> -----------------------------------------
32Alpha 14 Jul, 2023 @ 11:04am 
@I Cat Hair You - you make the mod.
物理系魔法师 29 Jun, 2023 @ 2:28am 
Can you tell what type of mod this is in conflict with? It was normal until last week, when this message started appearing.


STACK TRACE
-----------------------------------------
function: onTick -- file: LightSwitchBacklight.lua line # 48 | MOD: Light Switch Backlight

Error possible involving MOD:

LightSwitchBacklight.lua:
Mash💀 27 May, 2023 @ 3:50pm 
THIS IS THE BEST MOD ON THE WORKSHOP
I Cat Hair You 1 May, 2023 @ 7:16am 
the whole point of a dark room is to not be able to see. you shouldnt be able to find the switch unless you fumble around in the pitch black room for a second or two. make a mod like that where youre forced to search around the walls till you find the switch, like a right click button option [search for switch]
404_coffee.exe 17 Apr, 2023 @ 7:29am 
this is really useful!
Kirino 16 Apr, 2023 @ 1:30am 
"Can it highlight the ceiling "lamps" also, as i'm always having trouble finding the right spot for the lightbulb when it burns out."

EXACTLY THIS!, if this mod can archieve that, then it´s a straight 11/10 in my Book.
{playername(-1)} 23 Mar, 2023 @ 11:59am 
Excuse me, when the power goes out in the city, will the switch also stop looking bright?
FooPhoenix 28 Feb, 2023 @ 1:23pm 
Very good mod, 10/10 :)
Viperel 27 Feb, 2023 @ 11:12pm 
Can it highlight the ceiling "lamps" also, as i'm always having trouble finding the right spot for the lightbulb when it burns out.
Fabiparty 27 Feb, 2023 @ 4:45am 
Thanks! It begin when electricity go down
Макщ  [author] 27 Feb, 2023 @ 4:15am 
Thanks for the feedback. I will update the mod this week.
Fabiparty 26 Feb, 2023 @ 4:31pm 
It cause infinite errors at coop
function: onTick -- file: LightSwitchBacklight.lua line # 48 | MOD: Light Switch Backlight

ERROR: General , 1677451742925> 770.315.275> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isWallTo of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1677451742926> 770.315.275> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: isWallTo of non-table: null
♠️ 💗 22 Feb, 2023 @ 10:36pm 
Excellent, I'd have subbed regardless.
Rhasmoth 22 Feb, 2023 @ 5:47pm 
Worked fine in local co-op! :)
Макщ  [author] 22 Feb, 2023 @ 5:40pm 
I haven't tested this in MP, but since it's a clientside, it should work, i guess. I'll fix it if it doesn't.
东方彩虹🌈 22 Feb, 2023 @ 4:34pm 
thank you
PapaFern 22 Feb, 2023 @ 1:06pm 
MP supported?
Rhasmoth 22 Feb, 2023 @ 11:59am 
...a god among mortals. :crying_yeti:
jestin pippers 21 Feb, 2023 @ 7:17pm 
just say you noob...... noob. nob.....:steamfacepalm:
Endless Jam 21 Feb, 2023 @ 12:48pm 
макщ сделал мод на жеппу :WhiteWolfHappy:
Garstmarst 21 Feb, 2023 @ 12:43pm 
God bless you
Макщ  [author] 21 Feb, 2023 @ 5:12am 
Yep, it is. But if generator is connected to the building, the backlight will work again.
♠️ 💗 21 Feb, 2023 @ 3:36am 
This is cool. Does this disable when the power goes out?
Jehstr 21 Feb, 2023 @ 1:39am 
Nice
[✚] 🌧RAIN🌧 21 Feb, 2023 @ 12:53am 
Nice!
Plineo 20 Feb, 2023 @ 5:52pm 
Nice.
SRPA-Sentinel 20 Feb, 2023 @ 3:01pm 
Nice
Nippytime 20 Feb, 2023 @ 12:48am 
Nice!