the mod has no post effect, i.e. it does not check what time period it is in. the mod only works when time crosses the specified boundaries during the game. i.e. if the light switch is set to 6 o'clock, and you sleep until 7, then the mod will never work. yes, in such the design it is practically useless. at least that's the impression one gets
dude, i thought it was the very simple task to get the current time and do one check: if current_time>=start_time && current_time<end_time then turn_light_on else turn_light_off, but you're making me change my mind :D
It's that simple, the thing that's not as simple is keeping track which lightbulbs have the smart lights enabled and showing the right message to the user while taking into account if he's playing mp or sp, and that's what made a simple task a little tricky. Also, I think I messed up something before since I was concerned about lights constantly checking time but now I no longer care about that since that has no performance impact whatsoever.
Also I think I inverted off and on time, so I will reupload a new version again
exactly. maybe need to reassign everything again, but those that are marked "off" and were turned off- they lit up with all others. there is another problem- my reassigned hotkey is reset back to "c" every time i start the game. this hasn't happened before. maybe there is some kind of check that this key is already in use. but this check is not needed, the player himself will figure out where which hotkeys should be and how it will work together- this is his area of responsibility
That's weird because that issue with the settings not getting saved was supposed to be fixed with a previous redloader update, so I'm not sure what's wrong, I tried to change it to C and it worked fine (also make sure to close the game normally from the menu since before I remember that if your game crashed the settings doesn't get saved).
As for the lights ignoring the smartlights status, that's odd, I tested that and it's working fine for me at least. Like here in this video.
yes, re-assigning the status of the light bulbs helped- in this time only those that were supposed to turn on. but there is a problem- all this only works until you exit the game. if you exit, all the lights bulbs will light up again(if it's time for them to light up). and this resonates with another problem. no, any time when i exit from the game, the assigned hotkey is reset to default(redloader 0.8.6). but there is a nuance- the correct hotkey is written into the config file, but it is either not read from it at all, or something else goes wrong. i don't know where the status of the light bulbs is saved, in theory the native game mechanism should be used. another mod, Illuminate, should also use this. perhaps there is some kind of conflict(but Illuminate doesn't mind such a neighborhood)
the hotkey is still reset, but now at least the correct one is indicated in the description :D, but it does not work and the default key is set in the mod settings. the strange behavior was with the light bulbs. immediately after loading the save, all the light bulbs turned off when the time came, even those that were not supposed to. but there is a nuance- before that, they were also wrong turned on with everyone else and this wrong state has been saved(or not :D it is hard for me to talk about it, i do not know where it is saved). but then the behavior returned to normal, and they did not turn on at another time. maybe(only maybe :D) that this problem has been solved. need more field testing.
ps: this makes me think that the status of the light bulbs for the game and for the mod are in different places and independent. when the game was saved, the "on" state of light bulbs was saved by the game, since the light was actually on. when the time came, the mod checked the status that was recorded in it, and he turned off the light bulbs, since according to him they should be turned off and unprocessed. in general case, living apart from reality is a potential problem :D
i change it from the mod. this is how it looks: ToggleKey = "backButton". https://pichost.net/images/2025/05/07/VfJgC.png the hotkey is displayed correctly in the game, but incorrectly in the mod's settings. and it does not work. if i reassign hotkey, it works until exit the game
Is this issue only for the value "backbutton" ? Also, the default value should be R not C. So when it's saying C the problem is that the backbutton value isn't handled well with redloader. So better just use some other button you know it's well-supported with redloader
Edit: Tried it myself and I can tell the value backbutton definitely problematic, for me, it gave me E instead of C like you
18 comments
Also I think I inverted off and on time, so I will reupload a new version again
there is another problem- my reassigned hotkey is reset back to "c" every time i start the game. this hasn't happened before. maybe there is some kind of check that this key is already in use. but this check is not needed, the player himself will figure out where which hotkeys should be and how it will work together- this is his area of responsibility
As for the lights ignoring the smartlights status, that's odd, I tested that and it's working fine for me at least.
Like here in this video.
no, any time when i exit from the game, the assigned hotkey is reset to default(redloader 0.8.6). but there is a nuance- the correct hotkey is written into the config file, but it is either not read from it at all, or something else goes wrong.
i don't know where the status of the light bulbs is saved, in theory the native game mechanism should be used. another mod, Illuminate, should also use this. perhaps there is some kind of conflict(but Illuminate doesn't mind such a neighborhood)
the strange behavior was with the light bulbs. immediately after loading the save, all the light bulbs turned off when the time came, even those that were not supposed to. but there is a nuance- before that, they were also wrong turned on with everyone else and this wrong state has been saved(or not :D it is hard for me to talk about it, i do not know where it is saved). but then the behavior returned to normal, and they did not turn on at another time. maybe(only maybe :D) that this problem has been solved. need more field testing.
ps: this makes me think that the status of the light bulbs for the game and for the mod are in different places and independent. when the game was saved, the "on" state of light bulbs was saved by the game, since the light was actually on. when the time came, the mod checked the status that was recorded in it, and he turned off the light bulbs, since according to him they should be turned off and unprocessed. in general case, living apart from reality is a potential problem :D
https://pichost.net/images/2025/05/07/VfJgC.png
the hotkey is displayed correctly in the game, but incorrectly in the mod's settings. and it does not work. if i reassign hotkey, it works until exit the game
Edit: Tried it myself and I can tell the value backbutton definitely problematic, for me, it gave me E instead of C like you