Peppermint Mining

by Mylon

Mark ore with the Peppermint tool and construction bots will start mining it. Or enable Nougat Mining mode and it'll happen automatically!

Content
14 hours ago
0.16 - 2.0
4.06K
Mining Logistic network

b Game crashing bug?

4 years ago
(updated 4 years ago)

I've just installed the mod and encountered an error. Not sure whether it's already known, but thought I'd share, as the most recent post is a few months old here.

Ive included a copy of the error message below, but thought I'd also say how I caused it (repeatedly):
I'm using the mod in a dangoreus world. I wanted to test and see, so placed a roboport (disconnected from my current logistics system - no yellow lines, but overlapping green areas) to mine coal. I selected some area within the red square, and the bots started mining, dropping the ores of in a buffer chest.
Happy with this succes, I placed a second one (again disconnected, but overlapping with anothers build area) to mine copper. I used a deconstruction planner, but the bots didn't mine (roboport powered, buffer chests requesting the copper ore right next to it, robots present). I decided to remove the copper ore order again. Somewhere around this point, an autosave happened, so I could repeat the following multiple times, crashing every time:
I thought perhaps, the bots didn't mine because there were too many coal ores in the deconstruction que. So, using shift click on a tree-rock-only-deconstruction planner, I removed all the coal ores from the que. Then, I tried to que the mining of copper ores again, and bots from my main system (for which the ores were in the green area, not the red) tried mining the ores instead. When they almost reach the ores (and the ores spill onto the ground) the game crashes with the included error message. It reverts me back to the title screen, allowing to reload at the last autosave.

Edit: I seem to have recreated the same error slightly differently: I removed all coal mining orders, so the bots stopped completely. Then, I ordered the bots to mine something just outside the red, but inside the green area of that roboport. they started mining, but on their way back, the game crashed again with the same error.
Oh, and btw, apart from these errors/bugs, I do really love the concept, especially for this dangoreus map (which I am thoroughly enjoying too)!

Edit2: carefully trying to avoid bots going into this green area, I've only commisioned jobs that are within only 1 roboport's range, and well inside the red one to boot. it ran well for a few minutes, but then crashed again... same error message.

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

Error while running event Peppermint_Mining::on_tick (ID 0)
Item stack count has to be a positive integer.
stack traceback:
Peppermint_Mining/control.lua:233: in function 'mine'
Peppermint_Mining/control.lua:147: in function 'stretch'
Peppermint_Mining/control.lua:373: in function <Peppermint_Mining/control.lua:373>
stack traceback:
[C]: in function 'spill_item_stack'
Peppermint_Mining/control.lua:233: in function 'mine'
Peppermint_Mining/control.lua:147: in function 'stretch'
Peppermint_Mining/control.lua:373: in function <Peppermint_Mining/control.lua:373>

4 years ago

I think this is caused by a mod that adds non-deterministic mining outputs. The mod calculated an output of 0 and this caused the crash. I'll publish a fix.

4 years ago

I have no idea about such things, but it might then also be useful to say that I am only running dangoreus and peppermint mining... I dont think any of those add non-deterministic outputs? could it have to do with mining productivity?

New response