RimWorld

RimWorld

86 ratings
Ore Overlay
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
1.043 MB
31 Oct, 2022 @ 5:37pm
17 Jul @ 6:30am
15 Change Notes ( view )

Subscribe to download
Ore Overlay

Description
Description

This mod adds a new overlay into your Rimworld experience. The Ore Overlay will highlight unmined ores on the map to aid in spotting resources for gathering.

Steam Geysers will also be shown to aid planning your base expansions at a glance.

With a powered Ground-Penetrating scanner, the overlay will also show you ores inside of rock faces and mountains to help you gather all the available ores in your tile.

Using the ground overlay you can also see the underground deposits without needing to select a drill or the scanner.

Known Issues

This is my most complex mod to date, so please let me know if you have any issues and I will work on fixing them!

  • Investigating lag issue in some situations, Hopefully fixed!
  • Game must run for a few seconds before overlay shows on save game load.
  • Once a Ground-Penetrating scanner is built, something must be mined or found with the scanner before all ores show.
  • Mod setting window not closed caused by assumption that a game is in progress.

The issues marked above should be resolved now, please let me know if you see anything wrong!
Note: When digging ores there might be a second or two delay before the overlay updates to remove these ores.

Compatibility
The mod has been tested in a heavily modified save and I have not found any conflicts.
The deep drill overlay works with Colored Deep Resources

Future Updates
A few ideas I've had for changes in the future, none guaranteed but let me know if there are any changes you'd like to see.
  • Customisable highlight colors
  • Extra research to highlight in-mountain resources

About
This mod has been created by me, SpaceMoth! A mod I have been wanting personally for some time due to the amount of time I spend manually scanning rock faces looking for resources.

This mod is available on GitHub[github.com] with the GNU GPL v3 License[choosealicense.com] so please feel free to take a look to help develop your own mods!

I will aim to update my mods within a couple weeks of any major update!
Please feel free to suggest ideas of additional mods. New mod creation can take some time but I am welcome to ideas. Please note my skills are in scripting and coding, and I have very little ability when it comes to art and assets.

IDs
ID: 2882785661 Mod ID: Spacemoth.OreOverlay
Popular Discussions View All (2)
5
13 Apr, 2024 @ 2:56pm
[bug] Can't close mod settings menu
Fridgemagnet
0
5 May, 2024 @ 6:20am
Severe lag with two maps/bases
anon ame
53 Comments
Ayako-Chan (Piotrek0909) 3 Oct @ 10:08am 
Thanks for the info — I must have accidentally enabled that option in the settings
Space Moth  [author] 3 Oct @ 4:19am 
@Ayako-Chan if you have a powered deep ore scanner this is by design, and can be disabled under the mod options.
I will see if I can add support for the Terrain scanner, just need to get into the modding groove again!
Ayako-Chan (Piotrek0909) 3 Oct @ 3:38am 
I think I’ve got a bug where the ore display overlay shows all the ore on the map even when it’s undiscovered. I don’t know what’s causing it, but it didn’t happen before. Also, I have a question — would you consider adding compatibility with the Complementary Odyssey mod, specifically with the Terrain Scanner?
Space Moth  [author] 10 Sep @ 2:52am 
Sorry about the delays in update, will look if I can address the issues!
... 10 Sep @ 2:29am 
same error @MrXarous
any fix?
Gravenwitch 5 Aug @ 9:21pm 
I can confirm another scenario with extreme lag coming from this mod when the overlay is active. Under certain rare circumstances this mod causes drops to under 1 fps, with 1000ms delays / second showing up w/ dubs performance analyzer. I believe occurs when deep drilling is taking place, or when an anomaly pit gate opens. I recommend you add some code preventing the overlay from updating more than once per real-time second to catch edge cases like this.

I will get back to you if I can 100% confirm what action causes this. Sorry to keep bothering you about this, I appreciate your work!
Gravenwitch 19 Jul @ 10:37pm 
Lag seems to be significantly improved! I am still seeing very regular calls to regenerate mesh and am still seeing some outsized performance impact (like -20 fps on average) but it is nowhere near as debilitating to leave the overlay on compared to pre-patch
MrXarous 17 Jul @ 4:21pm 
in Odyssey when going to a new map via gravship I get this NRE:

Exception in UIRootUpdate: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 7EEB6D2]
at OreOverlay.HarmoneyPatchUpdate.Postfix (Verse.DeepResourceGrid __instance) [0x00005] in <b41d1804311846b99587e50f8ffc3cde>:0
at RimWorld.MapInterface.MapInterfaceUpdate () [0x00279] in <981a33edf24d499488b0f820d94638e1>:0
- POSTFIX Spacemoth.OreOverlay: Void OreOverlay.HarmoneyPatchUpdate:Postfix(DeepResourceGrid __instance)
at RimWorld.UIRoot_Play.UIRootUpdate () [0x00015] in <981a33edf24d499488b0f820d94638e1>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
RimWorld.UIRoot_Play:UIRootUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Play:Update ()
Space Moth  [author] 17 Jul @ 6:36am 
I've just dropped an update that should hopefully vastly decrease the lag on maps.
Now on startup and after a major refresh the mod will make a list of all the known ores regardless if they are shown or not.
Each time the overlay refreshes only these known ores are checked for update instead of every cell on the map.

This should hopefully fix the issue. Only time it might not work right is if a meteor crashes with ore, but turning the overlay off and on again should prompt an update.

I am glad the mod helps! I always found it frustrating having to slowly check along the cliffsides or stripmine to find ores so a nice high contrast way to find them made sense to me.
Gravenwitch 16 Jul @ 7:45pm 
I suggest you only update the overlay when mining has occurred recently, or other building destruction occurs. You can still update it manually when the overlay is opened, or every long time (> a few minutes) to catch edge cases of new ores appearing.

I am working on a more permanent fix, and can get back to you if I succeed. I can provide some (scuffed) ways to detect mining if you need one, but you are more experienced in Rimworld modding than I am and I was pushy enough already.

I greatly enjoy the mod! It really helps the mad mining rush when hitting a new map w/ the gravship start.