Deep core mining

by VortiK

A not cheaty infinite ore mod. Adds ore patches that appear when ore fields are depleted that can be mined with a pair of advanced mining drill to upgrade mining outposts and provide source of expensive but steady infinite ore. Adds an high tech infinite ore mining from rare deep core cracks spawned in the world that require heavy refining. Now with automatic mod support !

Content
5 months ago
0.15 - 1.1
36.0K
Mining

b [FIXED] Drill keeps being disabled by script

3 years ago

I've been racking my brain trying to figure this one out - I've got this one drill that keeps saying that it's disabled by script. It's not hooked up to any circuit networks, it's just decided to stop working, and short of removing and replacing it nothing I do can kick this thing back online. Any ideas? As a result it's made me rethink how I'm balancing fuel between the 3 drills I have in this area - this script business is causing the other two to run out of mining drones and not request more from my production center.
http://prntscr.com/ziiji5

3 years ago

Hello,

From your screenshot it seems the 2nd drill is missing an inserter to input the mining drones inside it so it can mine ?

3 years ago
(updated 3 years ago)

The bottom one is the one with the issue. The middle and top have been working without any problems. http://prntscr.com/zji5tx
It's got fuel, got power, but for some reason it's saying there's a script disabling it.

3 years ago

I also have this issue, 2 ADCMD i tried and neither works. IF i spawn them directly with inserters for minning drones it will run for a little time (1-2 seconds) then it goes "Disabled by script"...

3 years ago

I've also been having this issue with drills just stopping and showing as "Disabled by script". I thought it must be something I was doing but I'm glad to see I'm not the only one with that issue.

3 years ago

I think it has something to do with power draw. Despite having efficiency modules on them and showing as consuming 2MW, in the overview it still show 20MW, so instead of breaking your power line, it is disabled by the script.... also efficiency modules appear to be useless.
They started working for me once I had a lot of extra power.

3 years ago
(updated 3 years ago)

numaiomul what you're describing is exactly what mine is doing. I'll pick it up and replace it, the inserter will load it and it'll run for around 5 seconds, then it will shut off. Power isn't an issue for me as I've overbuilt my generation capacity - 4.14 MW Solar, 94.5MW Steam Engine, 5,476.62MW Steam Turbine, (5.6GW total/2.3-3.5GW in active use), and I have 1.7 GJ of Accumulator charge on standby just for laughs. There's something really odd with how the advanced mining drills are set up electrically - they show up as both a consumer and a provider, and each one is consuming just 1MW, even though I'd expect to see 20MW while running.

----Edit:
I'm poking around through the code and found what's tripping the drill on and off (script being run every 120 ticks)... gets down to this chunk of code here:
if companion.energy < companion.power_usage then
drill.active = false
else
drill.active = true
end
What I haven't figured out yet is how the hidden companion is figuring out the energy value.

----Edit 2:
Looks like there's a buffer value set on the drill that depletes and recharges?
energy_source =
{
type = "electric",
emissions_per_minute = 0,
usage_priority = "secondary-input",
buffer_capacity = settings.startup["vtk-deep-core-mining-deepcore-advanced-energy"].value.."MW",
input_flow_limit = settings.startup["vtk-deep-core-mining-deepcore-advanced-energy"].value.."MW"
},
On a whim I'm half tempted to comment out the buffer and input flow and see what happens. VortiK, what's the method to the madness here?

3 years ago
(updated 3 years ago)

Hello,

The idea is that the ADCMD consumes mining drones as fuel but as I wanted it to also consume electricity I ninja'ed a "companion" entity that is invisible but consume electricity. It should be the same size as the ADMD and there is indeed a monitoring script to check if the companion is powered and if not disable the drill.
Due to this, efficiency modules will only reduce the mining drones consumption and not electricity usage.

This was working fine when I made this feature so this is weird it bugs on your games, could any of you provide a save so I can investigate and at least reproduce this issue ?

3 years ago

Just tested again and drills properly work so this must be another mod that changes something that breaks it. Only having a save will help to debug it :)

3 years ago
(updated 3 years ago)

Here's a link to my save - https://www.dropbox.com/s/owoe2tffxiaskr3/bug%20hunt%203.zip?dl=0

The other issue I'm seeing with the ADCMD is that the companion isn't drawing off the correct amount of energy - it's been locked hard to 1MW per drill.

3 years ago

I did notice that there was an update pushed out, after the update the 3 drills to the northeast seem to have been running non-stop, but the 4 the southwest are script disabled.

3 years ago

Thanks, first rapid test, with my mod list the drills works. When I sync all the mods in the save they indeed don't work properly. It seems something is interfering with the checking script that slows it down or something.

3 years ago

Ok so after more testing, this seems to be some sort of weird rounding issue ...

3 years ago

Hopefully found a way to fix it. Let me know how it runs now in 2.7.1 !

3 years ago

Hello there !!

The "disabled by Script" is back !

https://ibb.co/mSnyydj https://ibb.co/zXbRVJw

I love your Mod and planned my base founding itself.
All Mods are updated.

I use this other Mods: https://ibb.co/3vQqm6x

I hope we can fix that issue.

3 years ago

Hello again!

That Problem has fixed himself...

After serveral try to fix it by myself; new install etc, i kept playing und fix some other problems in my base. This building isnt so important atm.
After few hours i worked in that area, und tryed it again (deconstruct & reconstructinon) , and it works .

2 years ago

Yes, I encountered the same bug. If you need my list of mods, please check: https://cloud.mxchange.org/index.php/s/public?path=%2FFactorio - You won't find my save-game where I'm using the miners there as I stream it publicly on Twitch (Quix0r there).

2 years ago

Hello, I've push some changes to the ADCMD electricity management in 2.8.2, it should work better but may need to replace the drills once again.

2 years ago

So far they worked without any re-adding them.

New response