Allows you to extend the time that streetlamps are "on" in-game by setting their on/off times. Supports customizing times of day for individual weather states (including any modded weather states in "Env" mods) or for all weather states simultaneously.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
Thanks to u/TheCyanideX for the thumbnail, helping me figure out some of this in general, and the mod name
Thanks to u/psiberx for "Cron.lua" (used for timers in the script)
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 1.8
Fixed minor issue with some CET overlay menu elements not being fully visible at higher screen resolutions (specifically ~4k and higher).
Added toggle in the CET overlay menu to disable/enable the "Auto Resize" functionality of the window.
Added toggle in the CET overlay menu to lock/unlock the window's position.
Version 1.7
Fixed a bug causing the game to crash when reloading a save (this may still happen with quickloading, but should not happen if you load from a menu. I am still trying to resolve it for quickloading). Note that this issue does/did not affect all users.
Fixed an issue with streetlamps not toggling again after reloading a save (if you didn't have crashes in preivious versions, you likely had this issue instead).
Version 1.6
More code improvements to hopefully resolve crashes some users were experiencing
Version 1.5
Improved compatibility with env mods that add custom weather states to the game (such as "Nova City" by u/TheCyanideX"). You can now adjust per weather state for these mods.
Version 1.4
Minor changes to the mod that may prevent crashes for people that were experiencing them (potentially)
Version 1.3
Removed a debug print statement I accidentally left in for v1.2, which would spam CET console when you spawned into a game
Version 1.2
Reintroduced the option to adjust the times of day (that streetlamps turn on/off) for all weather states simultaneously (this feature was removed in v1.1).
Changed the timer method used to be more reliable.
Version 1.1
(Temporarily) removed the sliders to adjust all states simultaneously. These will return in an update, but were having minor issues in v1.0...
What Does This Mod Do?
Allows you to set the times of day (in hours) that the streetlamps in-game will turn on/off (per weather state or globally for all weather states).
Can also disallow rain from toggling on/off the streetlamps when the rain starts/stops (vanilla behavior always toggles streetlamps on for rain).
Does not allow reducing the amount of time that streetlamps are on, only increasing. The game will always force the lights on at 19:45 and off at 05:00. Due to this, the sliders are limited to those hours.
Does not affect every streetlamp in the game, only ones that normally turn on/off with rain... Some areas of the game leave streetlamps on 24/7 no matter what or toggle at specific game times... Messing with those could mess with quest lighting, so that is why I didn't...
Compatibility Notes:
Is not compatible with my Streetlamp Tweaks mod (that forces lights to stay on 24/7).
Anyone that has previously installed my recently released The Weather Listener mod (required for "Preem Weather") should uninstall that mod and replace it with this one (I believe @TheCyanideX will be updating that mod to include a save file for this mod with streetlamp hours adjusted for each state).
Should have no other mod compatibility issues as of release.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Installation:
Extract to main CP77 install folder or install with Vortex (make sure to also install CET if you do not already have it)
Uninstallation:
Delete the "TheLampLighter-StreetlampTimeScale" folder from your [CP77>bin>x64>plugins>CET>mods] folder