RimWorld

RimWorld

338 ratings
[SYR] Light Radius
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.0, 1.1, 1.2, 1.3, 1.4
File Size
Posted
Updated
270.114 KB
Sep 23, 2018 @ 6:38am
Oct 21, 2022 @ 2:17pm
10 Change Notes ( view )

Subscribe to download
[SYR] Light Radius

In 1 collection by Syrchalis
[SYR] Syrchalis' Mods
24 items
Description
Adds dynamic light radii to light sources




When selecting lights or when placing lights Light Radius shows an indicator which area will be considered "Lit".





Settings:
Show inner light radius -> Shows a radius that roughly matches the area that is "lit", meaning over 30% light.
Show outer light radius -> Shows a radius that roughly matches the area that is being affected by the lamp at all, meaning anything above 0%.

The radii are not perfect, this is because the actual light and the display radius use different calculations, however they match relatively well.

This mod automatically supports basically any mod, because it dynamically generates the display radii. (For Wall Light use the option of that mod if you want to see light radii).

Note: The colorful light overlay is from a different mod - it only shows actual light. This mod here shows a radius when placing lights and when selecting them (even if they are off!).





Savegames:
  • Adding: Safe
  • Removing: Safe

Incompatibilities:
  • Wall Light - use the setting of the mod itself





Collection of my mods for RimWorld

If you enjoy my mods consider dropping me a dime:
[ko-fi.com][www.patreon.com]
43 Comments
Narlindir Apr 27 @ 10:47am 
isnt this vanilla now?
lol Apr 27 @ 12:36am 
TD Enhancement Pack does something very similar
煤氣燈操縱 Apr 25 @ 10:27am 
15
Monkey Magic Mar 3 @ 7:32am 
Kinda wondering how this would work with lights that already have a radius - such as Owlchemist's Ceiling Mod. These ceiling mounted lights it adds already have a radius, but given that vanilla lighting does not, the mismatch kinda irritates me, so this mod would be a good addition.

But yeah, would there be an issue?
Jarrod Oct 2, 2023 @ 6:34am 
Would love a third radius for 50% light. I know 30% is "good enough" but I personally hate seeing dark corners and edges even if the pawns don't mind lol
AnimateDream Feb 17, 2023 @ 3:53pm 
*irrelevant
(please let me edit comments some day steam)
AnimateDream Feb 17, 2023 @ 3:51pm 
@Draconis
I was concerned and had a look at the source. The only stuff that affects the game while running are here.
https://github.com/Syrchalis/LightRadius/blob/master/Source/SYR_LightRadius/HarmonyPatches.cs

The second harmony patch only affects when you are placing things blueprints for stuff so it should be relevant. The first runs when anything calls DrawExtraSelectionOverlays. I don't know if this always runs on any selected object, but even if so it immediately is doing some very low cost null checks then a low cost check to see if the thing has a light emitting component before it does any other work.

If you are not placing any blueprints and don't have anything selected there should be 0 performance impact, and from my reading of the code the impact otherwise should be very minor. It honestly doesn't seem like this mod would be a problem to me. Maybe you can experiment a bit more with this knowledge, see if it indeed slows down only when a bunch of things are selected?
Draconis🐊 Jan 30, 2022 @ 11:01am 
Was noticing mid to late game I was getting pretty big slowdowns especially during raids, optimized everything and shucked a bunch of mods. Removed this and my ticks per second skyrocketed, not sure what the conflict is or if it just bogs down with lots of base lights? Loved the look of this but dang I was running at like 10-17 ticks and its back to 40+ even in late game with the new runtime optimizer.
tuk0z Oct 6, 2021 @ 4:06am 
Noice, thank you Syrchalis :)
Syrchalis  [author] Oct 5, 2021 @ 9:58am 
Updated to 1.3.