Asteroid Mining

by Silari

Allows sending rockets into space to mine for asteroid bits, which can be refined into raw materials for infinite ores. Includes all 5 vanilla ores, plus Bob's Ores and Angel's support. Now with partial Krastorio 2 support. Advanced Mode (in beta) allows generating resource patches for mining using gathered materials, with rates based on the ore generation settings of the surface. Support for multiple surfaces is included, along with Space Exploration support.

Content
8 days ago
1.0 - 2.0
20.4K
Mining

b [DONE] adv-mining.lua:591: attempt to index field 'astmine' (a nil value)

21 days ago

I get this crash while trying to load an old save-game.

 466.138 Error AppManagerStates.cpp:1663: The mod Even Distribution (2.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::on_configuration_changed
The mod Asteroid Mining (2.0.13) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Asteroid_Mining::on_research_finished (ID 22)
__Asteroid_Mining__/scripts/advanced/adv-mining.lua:591: attempt to index field 'astmine' (a nil value)
stack traceback:
        __Asteroid_Mining__/scripts/advanced/adv-mining.lua:591: in function <__Asteroid_Mining__/scripts/advanced/adv-mining.lua:588>
stack traceback:
        [C]: in function '__newindex'
        __even-distribution__/scripts/setup.lua:271: in function 'enableLogisticsTab'
        __even-distribution__/scripts/setup.lua:71: in function 'func'
        __even-distribution__/framework.lua:49: in function 'handleEvent'
        __even-distribution__/framework.lua:58: in function <__even-distribution__/framework.lua:58>

The save-game is an old one from before 2.0 release (2020-11-19).

21 days ago

Did this save have asteroid mining active previously?

21 days ago

No, I was not using this mod at that time.

21 days ago
(updated 21 days ago)

Ok so what looks to be happening is even distribution is marking a technology as researched during it's on_configuration_changed event which fires an on_research_finished event before AM has had a chance to setup the storage tables it uses for that. New version checks that the tables are initialized which should fix it.

19 days ago

So far the crash isn't coming anymore. But my mod AbandonedRuins is repeatedly invoking init(). But that's my part to fix. Your fix has worked, thank you!

New response