RimWorld
151 beoordelingen
Light Map
2
3
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Mod, 1.2, 1.3, 1.4, 1.5
Bestandsgrootte
Geplaatst op
Bijgewerkt op
347.697 KB
7 feb 2021 om 15:41
12 apr om 15:01
17 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Light Map

Omschrijving
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
27 opmerkingen
Syrus  [auteur] 10 sep om 12:54 
I still look after it for bugs and such, but only expand on it when I have time and feel like doing so, which sadly has been rare lately

Adding even more cells to be accounted for when drawing the averaged map would sadly make its performance even more attrocious, though I wonder if it could at least be multithreaded, been a while since I coded this mod, probably learned a thing or two since then...hopefully.

Could make the gradients customizable, bit of work though if I remember correctly
awkward.wav 9 sep om 19:33 
Unsure if this mod is still being worked on, but I would love to have some more settings for customisation!

A setting for the average beauty map so that we can change how in-depth the average results might be handy! Like for example, having a slider from 1 to (some amount) that changes how many neighbouring tiles the calculation takes into consideration for the average result. Would maybe helps a lot with the current average method being slow for some, and could be neat to even see the less/more average areas.

The ability to also change colouring or even just a simple visual that shows what colours mean would be pretty neat. Might just be a case of "get used to the mod so you know" but still, would be useful for new users.

Aside from that, thanks for making the mod! Extremely helpful in finding unlit/ugly areas around the place. :steamthumbsup:
Flamangos 14 jul om 0:13 
Hows the performance on this? Like the impact?
Syrus  [auteur] 12 apr om 15:04 
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  [auteur] 7 jan om 14:52 
Version 1.4.2
Reduced mod size by removing git-, obj-, & .vs-files, etc.
Captain Bo Ziffer 5 nov 2022 om 14:01 
Thank you for updating this! I use infestations spawn in darkness and it's no fun without this mod!
Syrus  [auteur] 30 okt 2022 om 3:35 
Version 1.4.1
Added ProgressRenderer patch to disable overlays while it's rendering.
Syrus  [auteur] 23 okt 2022 om 6:09 
Updated for 1.4 (no changes)
Meanie 14 apr 2022 om 11:41 
I can't be the only one who ALWAYS see a dick...
Hans 28 aug 2021 om 12:14 
Thx man i will test this :D