okay now here's an idea... a mod that changes lights powered by electricity with similar style as this one so you can change the color ingame, any chance you'd be up to do that? :D after his comment i'm insanely craving a purple light up house :3
Hey, not sure what I did wrong but the light simply does not show up. Interestingly, I can tell there is a microstutter when I press L or F5, so something is happening. Thanks for the mod!
UPDATE 1: Here's what's happening on the console:
changeColorKey gives me [Lua::call_function] lua_pcall returned LUA_ERRRUN => ...\Pal\Binaries\WinGDK\Mods\ToggleLantern\scripts\main.lua:86: bad argument #1 to 'for iterator' (table expected, got nil) No traceback
toggleLightsKey gives me [Lua::call_function] lua_pcall returned LUA_ERRRUN => ...\Pal\Binaries\WinGDK\Mods\ToggleLantern\scripts\main.lua:63: bad argument #1 to 'for iterator' (table expected, got nil) No traceback
Oh I see the issue now, no I don't have a lantern 😆 I'm new to the game and to be honest I didn't realize this modded an item in the game, I thought it added light to the player somehow.
A few requests: - Support for Mod Config Menu so that keybinds can be changed in game. - Now that there are so many colors, a key to cycle backwards through the list would be appreciated. - A config option to enable/disable the system text.
Hey, I have no problems so far, just wanted to mention something which can be prevented: [08:16:44] [Lua::call_function] lua_pcall returned LUA_ERRRUN => ...d\Pal\Binaries\Win64\Mods\ToggleLantern\scripts\main.lua:53: bad argument #1 to 'for iterator' (table expected, got nil)
That's true and its easy in many ways to prevent the code from spamming this error. As my message intended to say. 😁 You could go all out and add additional checks for the lanterns or just add "or {}" to the "local Lamps" so we always have a table to iterate over and there you go. No more spamming of this error message. 👌
Never thought someone gonna use this mod without a lantern cause that didn't make sense lol 😂 , also thanks for pointing the possibility for that to happen.
😂 Said like this it's understandable BUT as an example: You just switch servers and have to start from the beginning. You have a requirement to download a package to play on your server which includes this mod. You deleted your save file cause it got booring and you want to start over again. And the most important: You just like to bring up and fix unnecessary problems the usual player wouldn't even notice. 😢😂
Is there a way to turn off the system message when toggling the lantern? It apparently broadcasts it to other players in multiplayer as well. It seems kind of unneeded since it's pretty obvious when your lantern is on or off...
Could you explain how you did it for those of us who would also like to disable the system message?
Edit: Actually yeah it's really simple. For anyone else wondering simply open the main.lua file (in notepad++ or whatever program) and delete any line with "PalUtility:SendSystemAnnounce". (Lines 58, 64, and 82-85)
Playing with steam remote play a bit on my cellphone with a Xbox controller/cellphone holder. Just realized I have to go half an acre back to the house to turn the lamp back on at night.. For now, using a torch again. Would be nice to have some controller binds. But I would still want the keyboard binds also.. Only tiny issue that I have.. Awesome mod!
70 comments
UPDATE 1:
Here's what's happening on the console:
changeColorKey gives me
[Lua::call_function] lua_pcall returned LUA_ERRRUN => ...\Pal\Binaries\WinGDK\Mods\ToggleLantern\scripts\main.lua:86: bad argument #1 to 'for iterator' (table expected, got nil)
No traceback
toggleLightsKey gives me
[Lua::call_function] lua_pcall returned LUA_ERRRUN => ...\Pal\Binaries\WinGDK\Mods\ToggleLantern\scripts\main.lua:63: bad argument #1 to 'for iterator' (table expected, got nil)
No traceback
I'm new to the game and to be honest I didn't realize this modded an item in the game, I thought it added light to the player somehow.
Thanks for the reply and for the mod!
A few requests:
- Support for Mod Config Menu so that keybinds can be changed in game.
- Now that there are so many colors, a key to cycle backwards through the list would be appreciated.
- A config option to enable/disable the system text.
Thanks again!
[08:16:44] [Lua::call_function] lua_pcall returned LUA_ERRRUN => ...d\Pal\Binaries\Win64\Mods\ToggleLantern\scripts\main.lua:53: bad argument #1 to 'for iterator' (table expected, got nil)
You could go all out and add additional checks for the lanterns or just add "or {}" to the "local Lamps" so we always have a table to iterate over and there you go. No more spamming of this error message. 👌
You just switch servers and have to start from the beginning.
You have a requirement to download a package to play on your server which includes this mod.
You deleted your save file cause it got booring and you want to start over again.
And the most important: You just like to bring up and fix unnecessary problems the usual player wouldn't even notice. 😢😂
{"Peach (default)", 231, 142, 31}, -- Default Color
{"Lemon", 184, 184, 31}, -- Yellow
{"Meadow", 128, 189, 30}, -- Lime
{"Forest", 53, 178, 53}, -- Green
{"Rivulet", 35, 173, 173}, -- Teal
{"Neptune", 105, 105, 255}, -- Blue
{"Venus", 189, 76, 189}, -- Purple
{"Moon", 169, 169, 169}, -- White
{"Red", 184, 0, 0}, -- Mono Red
{"Orange", 196, 98, 0}, -- Mono Orange
{"Yellow", 145, 145, 0}, -- Mono Yellow
{"Lime", 90, 138, 0}, -- Mono Lime
{"Green", 0, 130, 0}, -- Mono Green
{"Cyan", 0, 122, 122}, -- Mono Cyan
{"Blue", 0, 0, 255}, -- Mono Blue
{"Purple", 134, 0, 201}, -- Mono Purple
{"Pink", 171, 0, 85}, -- Mono Pink
-- Orange comes after Red
{"Strawberry", 219, 86, 86} -- Red
Yeah just replace the original list of color codes with this one.
Edit: Actually yeah it's really simple. For anyone else wondering simply open the main.lua file (in notepad++ or whatever program) and delete any line with "PalUtility:SendSystemAnnounce". (Lines 58, 64, and 82-85)