// Management · RimWorld Mod

Sleep Lights and Flames

Overview Sleep Lights & Flames is inspired by mods like Lights Out and Extinguish Refuelables.

Overview

Sleep Lights & Flames is inspired by mods like Lights Out and Extinguish Refuelables. This is my take on it to try and make a mod optimized for large colonies and the late game. The mod does not scan rooms, lights, environments, or pawns; it lets you link beds to light sources (like torches, electrical lamps, and other modded lights). When pawns go to sleep, they will walk to the linked lights and turn them off. When the last pawn wakes up, they will turn the lights back on. This way, the mod is kept lightweight and performance-friendly. To keep the game optimized, electric lights do not drop their power draw to 0W by default when sleeping (they just stop glowing). But there is a setting option to cut the power use to 0W if you really want to save electricity, with a warning that it can cause a bit of lag in very large late-game colonies.

How it works

You link beds and lights using a linking tool in the light or bed's interface. • Auto Sleep/Wake: Pawns go to the lights and turn them off when going to sleep, and turn them on when waking up. • Smart coordination: Waking pawns won't turn on lights if someone else is still sleeping or going to bed. Only one pawn will go to turn them on or off at a time to prevent pawns running around together. • Extinguish Toggle: Adds a button to fueled lights/fires so you can toggle them off manually. The button shows a green checkmark when extinguished.

Key Features

Cross-room linking: A setting lets you link beds and lights across different rooms. — Save power when sleeping: An option to reduce the power use of sleeping electric lights to 0W. — Sleep icon opacity: Adjust the opacity of the hovering sleep icon overlay on sleeping lights (default is 30%).

Slept in Light

In the base game, pawns normally get a "Darkness" mood debuff if they sleep in the dark. With this mod, since your pawns are turning the lights off to sleep, they skip the darkness debuff. Instead, we added a new "Slept in Light" mood debuff. If your pawns sleep in an area that is still lit, they will get a small mood penalty. You can tweak the light threshold and the debuff amount in the mod settings! We also added a new Sleep Lights trait. Pawns with this trait actually prefer sleeping with the lights on, and will get the normal darkness debuff if they sleep in the dark.

Light Mismatch

Sometimes the light logic can fail, so if there are multiple lights in a room, some are ON, and others are OFF. There is a fallback logic, so when pawns wake up or go to bed again, it will correct itself. If you want to correct it right away, select a light or bed and use the all lights on/off in the sleep lights window where you manage links.

Compatibility

Safe to add or remove from existing saves. Works with: • Vanilla Expanded Framework (VEF)Vanilla Helixien Gas Expanded & Vanilla Chemfuel Expanded (gas/piped lights will stop consuming Helixien gas or chemfuel when sleeping) • Appliances Expanded (wall chemfuel lights work correctly) It should also work with other mods that add custom lights using fuel, chemfuel, electricity, or gas.

Feedback & Bugs

I have done a lot of testing, but with so many different mods and large modlists there might still be bugs or performance things to smooth out. Please let me know if you run into any issues!

AI Disclaimer

Some code, bug hunting and images was made with Gemini. Still did coding and photoshop editing.

My other mods

See all my mods here