SCANsat icon indicating copy to clipboard operation
SCANsat copied to clipboard

SCANsat ignores resources without a GLOBAL_RESOURCE block

Open Starstrider42 opened this issue 8 years ago • 2 comments

While experimenting with some planetary resource configs, I found a strange bug: if a resource does not have a GLOBAL_RESOURCE block, SCANsat will not display that resource on either the large map or the overlay. This happens even if the resource has PLANETARY_RESOURCE or BIOME_RESOURCE blocks, and the stock resource system confirms that the resource is present. (A good example if you don't want to mess around with configs is Karborundum in the default CRP config).

Please allow SCANsat to display resources that use any of the three planetary resource declarations.

Starstrider42 avatar Jun 02 '16 19:06 Starstrider42

Adding planetary resources should be easy, it checks them anyway. SCANsat doesn't touch biome resource configs, so I'm not sure how much trouble it would be to account for them.

Is there any reason to use the configs like this, rather than just giving them a global config with all values set to zero?

DMagic1 avatar Jun 02 '16 22:06 DMagic1

Yes, as far as I can tell an empty global config works around this bug with no side effects -- but the config-maker has to know about the bug in the first place, since it's not a very natural approach if you only want a resource to appear in specific circumstances. Not requiring a global node would keep the issue from being re-reported with mods X, Y, and Z.

Starstrider42 avatar Jun 03 '16 05:06 Starstrider42