Hi,
- I have a mining drill which took all the ore below it.
- Put new ore beneath it with "surface.create_entity({name="copper-ore", amount=ore, position={game.player.position.x+x, game.player.position.y+y}})"
- I see it correctly displayed, the mining drill shows "expected resources"
But the mining drill does not start to take the new created ore.
When destructed and a new drill is placed on the same location, it does begin.
Saving an reload of the game dos not solve it.
Is there a specific action needed to restart ?
Restart mining drill
Re: Restart mining drill
You need to remove and rebuild it. The position is burned up and will not be rescanned until you build a new miner.
Re: Restart mining drill
Did some further testing.
Looks like it is not that the drill doesn't "see" the ore but that it cannot move it to the belt.
Just rotating the drill 4 times makes it work.
See the picture, the drill has mined the ore but is not putting it on the belt.
The yellow dots are from the bottleneck mod, also showing "output full"
Looks like it is not that the drill doesn't "see" the ore but that it cannot move it to the belt.
Just rotating the drill 4 times makes it work.
See the picture, the drill has mined the ore but is not putting it on the belt.
The yellow dots are from the bottleneck mod, also showing "output full"
Re: Restart mining drill
Looking at the bottom mines in that screenshot, those also show yellow without any ore beneath them. Makes me suspect the bottleneck mod shows mines as yellow for ore shortages too, since mines do not have any input.
It's probably an optimization thing. If a mine has run out of ore, shut it down and never recheck it, since in vanilla there is no condition under which that mine could ever become active again.
It's probably an optimization thing. If a mine has run out of ore, shut it down and never recheck it, since in vanilla there is no condition under which that mine could ever become active again.
Re: Restart mining drill
Did you try to activate them?
https://lua-api.factorio.com/latest/Lua ... ity.active
https://lua-api.factorio.com/latest/Lua ... ity.active
Re: Restart mining drill
@darkfrei
Thanks, Setting the drill active first to false then to true made it get back to work.
@Aeternus
The drills you see with yellow do have resources beneath them (I checked).
Bottleneck shows red when no resources available( and green when all is running OK)
Thanks, Setting the drill active first to false then to true made it get back to work.
@Aeternus
The drills you see with yellow do have resources beneath them (I checked).
Bottleneck shows red when no resources available( and green when all is running OK)
Re: Restart mining drill
Nice!hreintke wrote:@darkfrei
Thanks, Setting the drill active first to false then to true made it get back to work.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Restart mining drill
Most likely cause: The game sends the drill into sleep mode after it's finished, to save CPU power. As adding new resources isn't a possible action in vanilla. You might try to ask if this can be fixed as a "bug". Otherwise any change to the drill will probably get it back into active state. Drill.active = Drill.active might even work, and preserves the actual active state in case some other mod made it inactive on purpose.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: Restart mining drill
You can use https://lua-api.factorio.com/latest/Lua ... onnections to wake up the mining drill.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.