RimWorld
340 lượt đánh giá
[SYR] Light Radius
2
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Mod, 1.0, 1.1, 1.2, 1.3, 1.4
Kích cỡ file
Đã đăng
Đã cập nhật
270.114 KB
23 Thg09, 2018 @ 6:38am
21 Thg10, 2022 @ 2:17pm
10 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
[SYR] Light Radius

Trong 1 bộ sưu tập tạo bởi Syrchalis
[SYR] Syrchalis' Mods
24 vật phẩm
Mô tả
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 bình luận
Narlindir 27 Thg04 @ 10:47am 
isnt this vanilla now?
lol 27 Thg04 @ 12:36am 
TD Enhancement Pack does something very similar
Апозита вырубили 25 Thg04 @ 10:27am 
15
Monkey Magic 3 Thg03 @ 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 2 Thg10, 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 17 Thg02, 2023 @ 3:53pm 
*irrelevant
(please let me edit comments some day steam)
AnimateDream 17 Thg02, 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🐊 30 Thg01, 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 6 Thg10, 2021 @ 4:06am 
Noice, thank you Syrchalis :)
Syrchalis  [tác giả] 5 Thg10, 2021 @ 9:58am 
Updated to 1.3.