Project

General

Profile

Bug #13386

Asteroid mining does not preserve mass if more than one resource is in the asteroid

Added by Hexicube over 7 years ago. Updated over 7 years ago.

Status:
Not a Bug
Severity:
Normal
Assignee:
-
Category:
Gameplay
Target version:
-
Start date:
12/07/2016
% Done:

0%

Version:
Platform:
Windows
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

If an asteroid has more than one ModuleAsteroidResource attached and some (but not all) have storage available on the vessel, all resources are mined and the ones that lack storage are dumped.

The issue comes from ModuleAsteroidDrill, inside PrepareRecipe; Once space is detected for any resource, a flag is set that permits every resource to be mined without checking each resource separately. This is not an issue with mods themselves, even though they are required for it to manifest.

If need be, I can show the section of the code inside ModuleAsteroidDrill that causes the issue as well as provide a suitable replacement.

Replicating the issue:
1. Modify PotatoRoid to contain a second resource by copying the ModuleAsteroidResource and setting the resource to XenonGas.
2. Launch a vessel with storage for either Ore or XenonGas (but not both), a drill, preferably a lv5 engineer (speeds things up), a klaw, and thermal control.
3. Locate an asteroid, preferably class A (more likely to show 2 decimals).
4. Attach to the asteroid, note down the mass after attaching, and start mining.
5. Once tanks are full, compare your mass against what was noted down.
Note: The mass fluctuates when using time warp, ignore discrepancies from a different time warp amount.

Step 1 causes the issue to manifest, steps 2 through 5 demonstrate it.


Related issues

Related to Kerbal Space Program - Bug #13385: Asteroid mining does not preserve mass if more than one resource is in the asteroidNot a Bug12/07/2016

History

#1 Updated by sal_vager over 7 years ago

  • Status changed from New to Not a Bug
  • % Done changed from 0 to 100

Sorry to have to tell you this Hexicube but according to the developer this is not a bug, please see here #13385

#2 Updated by sal_vager over 7 years ago

  • Related to Bug #13385: Asteroid mining does not preserve mass if more than one resource is in the asteroid added

Also available in: Atom PDF