RimWorld

RimWorld

146 ratings
Light Map
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
347.697 KB
7 Feb, 2021 @ 3:41pm
12 Apr @ 3:01pm
17 Change Notes ( view )

Subscribe to download
Light Map

Description
This mod adds overlays showing potentially interesting information about map tiles.

Light Map - brightness overlay
Adds an overlay which shows the brightness of tiles on the map.

Can be toggled to only show the overlay for roofed areas.

Dark areas are colored black and red.
Lit areas are color in shades of green if at 50% or above and yellow if below 50%.
Brightly lit areas show up white.


Path Map - movement speed overlay
Adds an overlay showing the movement speed of each tile on the map.

Inaccessible areas will show in black.
Movement speed is colored from lowest to highest in red to green.
100% is colored white to make it stand out a bit better.

Notes:
This overlay is not perfect.
Some things are not taken into account, like pawns standing in a tile causing the movement speed to be lowered as pawns have to move past them.
The game normally does not allow for movement speeds over 100% through the "pathCost"-parameter (it gets limited to 0 as the lowest value in some methods), but it can be achieved through other modding. As my overlay uses pathCost to determine the movement speed, it does not take this into account sadly.


Beauty Map - beauty overlay
An overlay that allows showing the beauty that is contained in each tile.

Notes:
There is also an option to toggle between showing the tile's beauty and the average beauty of the tile. The average beauty is what will affect the beauty need of a pawn, increasing or decreasing it depending on the value. Its calculation, though, is very very slow, especially when it has to be calculated over the whole map instead of just for where a pawn is currently standing or for the mouse cursor (beauty display, hotkey "t").
Because of how insanely slow the calculation is, I made the overlay force pause the game while it is active if the "average"-option is checked.
Unless I missed something there is no easy way to optimize the calculation for showing the average beauty, especially not to a point where it can run in real time. Still, I liked this overlay mode option enough to include it, despite this severe draw back.



Should be safe to add to an existing safe.



GitHub: https://github.com/XT-0xFF/LightMap

---

The code for this was derived from the highly recommendable mod "Heat Map", which shows temperature in rooms:
https://steamproxy.net/sharedfiles/filedetails/?id=947972722
25 Comments
Flamangos 14 Jul @ 12:13am 
Hows the performance on this? Like the impact?
Syrus  [author] 12 Apr @ 3:04pm 
Version 1.5.0
Small code update
Beauty map mode may need to be looked into, patch notes said something about optimizing the calcuations, but no idea in what way - might want/need to remove/change the "average" method
Syrus  [author] 7 Jan @ 2:52pm 
Version 1.4.2
Reduced mod size by removing git-, obj-, & .vs-files, etc.
Admiral Rickets 5 Nov, 2022 @ 2:01pm 
Thank you for updating this! I use infestations spawn in darkness and it's no fun without this mod!
Syrus  [author] 30 Oct, 2022 @ 3:35am 
Version 1.4.1
Added ProgressRenderer patch to disable overlays while it's rendering.
Syrus  [author] 23 Oct, 2022 @ 6:09am 
Updated for 1.4 (no changes)
Meanie 14 Apr, 2022 @ 11:41am 
I can't be the only one who ALWAYS see a dick...
Hans 28 Aug, 2021 @ 12:14pm 
Thx man i will test this :D
Syrus  [author] 28 Aug, 2021 @ 11:05am 
Sorry, it took me a while to get around to it.

Technically it is possible to do what I think you want.
Sadly, it goes beyond what this mod is made for or capable of, code wise, as it can only color tiles, which wouldn't quite be helpful with figuring out what's being planted where.


Maybe this mod might be interesting for you:
https://steamproxy.net/sharedfiles/filedetails/?id=2580713054 (Comments and No Signs)
Haven't tested it myself, but it sounds quite good for planning.
Hans 24 Aug, 2021 @ 3:11pm 
*plantation
Sry was in german language :D