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
a month ago
1.0 - 2.0
17.9K
Mining

b [DONE] The mod Asteroid Mining (0.9.15) caused a non-recoverable error. error found by GLaDO5

Hello, I received a compatibility error when using AE2 with asteroid mining

error found by GLaDO5:

i get this message and wont boot up my game when i wanna launch it

The mod Asteroid Mining (0.9.15) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Asteroid_Mining::on_init()
Asteroid_Mining/scripts/advanced/adv-mining.lua:348: attempt to concatenate field 'control' (a nil value)
stack traceback:
Asteroid_Mining/scripts/advanced/adv-mining.lua:348: in function 'make_resource_table'
Asteroid_Mining/scripts/advanced/adv-mining.lua:455: in function 'init_mining'
Asteroid_Mining/scripts/advanced/adv-mining.lua:475: in function <Asteroid_Mining/scripts/advanced/adv-mining.lua:474>

the user alerted me and I was able to replicate the bug:

3 months ago

This had been reported before with a different mod, but I wasn't able to reproduce the issue when I tried, even with the save game. This time, it reproduced easily.

Basically a logging function that runs before checking for nil, at the given line. It can be commented out to fix the issue, and I'll get a new version out to fix it once I'm free.

3 months ago

This should be fixed in the new version.

Thanks!

New response