over 4 years ago - /u/Klonan - Direct link

Link to mod: https://mods.factorio.com/mod/Mining_Drones

Mining drones

These guys mine for you, based from their mining depot.

You can also mine things like Uranium, by inputting the required fluid into the back of the depot. The mining depot has a small caution floor mat in front of where the drones spawn. If you block it, a warning will show, and drones won't be able to spawn.

The mining area is shown when hovering over a depot, it is a 80x80 area in front of the depot.

The mining drones and mining depot is unlocked from the start of the game (so you can use it instead of mining drills), and they don't require any power.

There are 2 technologies related to the mining drones:

  • Mining drone speed: Increases walking speed, mining speed, and carry capacity.

  • Mining drone productivity: Gives a chance to produce extra products when mining.

If you change the recipe or mine the depot, all the 'connected' drones will die. Painfully. So lets try to avoid that.

Each depot can hold 100 drones, and more under some circumstances. Drones will automatically be deployed when the resources in the depot become low.

The mod should detect all modded resources, and work correctly with them.

As far as performance goes, obviously they will not be as good as mining drills for super mega bases, due to the units and the script update. With a running save with over 2,300 active mining drones, the script update was only about 0.4ms. So you can probably have upwards of 10,000 mining drones without any problem.

over 4 years ago - /u/Klonan - Direct link

Originally posted by obchodlp

Will they have headlights or Santa's hats?

They have headlights... but maybe I can do a Christmas special

over 4 years ago - /u/Klonan - Direct link

Originally posted by aqua55

Does concrete floor increase the movement speed?

Yep

over 4 years ago - /u/Klonan - Direct link

Originally posted by kosherbacon79

Out of curiosity, what was the inspiration for making this?

I was tired of the setup process of mining drills. So many belts, drills, poles, etc. Especially before construction robots.

This makes it, more expensive an investment, but then its way more convenient to set up.

over 4 years ago - /u/Klonan - Direct link

Originally posted by Ibrahaim

Laggy Drones?

Compared to the efficiency of the base game, everything is laggy.

I've had 10,000 actively mining before and still at 60UPS

over 4 years ago - /u/Klonan - Direct link

Originally posted by a0nemanarmy

Klonan, any idea what this would do to your ups lategame?

Its as efficient as it can be, I've had over 10,000 mining before and UPS has been fine.

With all the upgrades they mine faster than the mining drills, so that means less are needed to do the job, but with the overhead of the script update, they are probably worse than mining drills for megabase scales

over 4 years ago - /u/Klonan - Direct link

Originally posted by Cassiopee38

Nice idea ! I would have liked trucks/excavatrices but slave are cool too =D

I thought about little baby excavators with tiny buckets, but I am not well versed in the wizardry of 3d animation or rendering, so I just reused the base game character dude.

over 4 years ago - /u/Klonan - Direct link

Originally posted by Azthais

Have you done the math on how well the drones work vs. drills? Obviously there's going to be some sort of linear graph that states how far a drone travels before a drill would outperform it, but from raw numbers about how many drones would you say would equal a drill?

It depends on the technology level. The drones have some researches that really start to boost their max output.

At the start, I'd say that it about 2-3 drones is comparable to 1 mining drill.

over 4 years ago - /u/Klonan - Direct link

Originally posted by GeePee29

Do they produce pollution?

Yep

over 4 years ago - /u/Klonan - Direct link

Originally posted by Troyseph91

Do the blue arrows on the building mean anything?

One indicated which way the drones will come out (and where the mining area is). The other is the fluid input, for things like mining uranium.

over 4 years ago - /u/Klonan - Direct link

Originally posted by solazs

It's awful. I love it.

How does it scale? Look like it's not exactly UPS friendly.

Should be fine until you start getting really late game multiple rockets a minute bases.

over 4 years ago - /u/Klonan - Direct link

Originally posted by Azthais

It's so tempting to use as a replacement, it makes me wonder what if any of a UPS difference would be using a field of drills vs. their equivalent in mining drones on a large scale. I know you mention elsewhere this is probably not a good replacement for larger factories but seeing that you'd need to move to logistic drones at a certain point due to drills outputting more than a single blue belt in a row, it makes me wonder if there's a point where mining drones would produce more ore for less processing power compared to drills and a logistics network.

Hmm... if you get enough speed and productivity research, they could be more efficient

over 4 years ago - /u/Klonan - Direct link

Originally posted by DaemosDaen

Notice a lack of slots for modules/ Guess speed modules are useless if you can have a stupid number of drones.

Any spicific reason you didn't just use a re-colored construction robot doing the repair animation for mining?

They walk along the ground and do pathfinding, so the flying drone graphics would look out of place

over 4 years ago - /u/Klonan - Direct link

Originally posted by Loraash

Are they driven from Lua to still have this UPS or some kind of clever biter AI abuse to make them hate ore?

Most of the hard stuff is handled through the engine, the script just makes the drones and tells them to 'attack' the ore.

over 4 years ago - /u/Klonan - Direct link

Originally posted by krusnikon

But can they mine Uranium?

They can, as long as you provide the acid

over 4 years ago - /u/Klonan - Direct link

Originally posted by Flux7777

Hi Klonan, thanks for this, it has great uses for mixed ore patches. Does it work with custom ores from other mods?

Yes, it should work with mod ores. If you find a mod that doesn't work, just let me know and I can fix it

over 4 years ago - /u/Klonan - Direct link

Originally posted by JMJ05

How many miners does a supply depot allow you to create?

100, up to 144 or so (The game engine does some weird logic to determine the number)

over 4 years ago - /u/Klonan - Direct link

Originally posted by mobsterer

for performance: would a version with default drones and without sounds possibly improve it?

I love the mod, but am afraid of not being able to use it in big setups.

The graphics and sound don't really affect performance.

You can use up to like 10,000 mining drones before it would start to affect the UPS a lot.

over 4 years ago - /u/Klonan - Direct link

Originally posted by DaemosDaen

I had an idea that would probably render faster (if that is even an issue) but I'm not sure how much of the animation you used or have control of but....

Dunno about that, the bot flying, then 'landing' (playing the drone's portion of the animation used for entering a roboport) then minning (the repair animation of the construction robot) then taking off (exiting the roboport animation) back to flying.

having said all that, nor sure if that's less frames as I'm not sure how many frames from the player character you are using for these drones.

Man we need the return of pre-blue science construction robots.

If you want early game construction bots: https://mods.factorio.com/mod/Construction_Drones

over 4 years ago - /u/Klonan - Direct link

Originally posted by Wuave

Is there a way to make these work with the infinite resources mod? They seem to deplete the ore patches even though they're suppose to be "Infinite".

Hmm, which mods in particular? I can look at adding support

over 4 years ago - /u/Klonan - Direct link

Originally posted by Wuave

Tested it with All Resource Yield (https://mods.factorio.com/mod/yield-ores)

and Infinite Resources (https://mods.factorio.com/mod/sonaxaton-infinite-resources)

The issue is that because they don't list a set ore amount, the mining drones instead pull from the yield percentage, which causes them to deplete the ore patches.

Ok, I did some basic fix, they won't deplete them.

As for correctly calculating how much they should mine, it is some very complex equation, I might tackle it some other time.

over 4 years ago - /u/Klonan - Direct link

Originally posted by StormTAG

Out of curiosity, for a single depot, how many drones can attack the same tile?

Its just 1 drone per resource

over 4 years ago - /u/Klonan - Direct link

Originally posted by CzBuCHi

Another mod, that i never knew i need ....

but some "serious" questions:

1) why not use domesticated bitters?
2) how they react to natives? do they fight them?
3) do they say 'yes m`lord?' when clicked?

As for 2, they are only programmed for mining, so won't defend themselves.

over 4 years ago - /u/Klonan - Direct link

Originally posted by Zako248

It seems that inserters cannot insert mining drones into the mining depot.

I was trying to automate deploying newly made drones.

They can, but only when the output is empty. Its some hardcoded engine logic.

over 4 years ago - /u/Klonan - Direct link

Originally posted by 500239

/u/Klonan some spec questions:

  • How far will these drones go out to mine from that building?

  • When there is no ore to mine, do they mark on the map?

The drones can mine any ore in the 80x80 mining area.

They make a warning in the GUI and on the map when they run out of things to mine

over 4 years ago - /u/Klonan - Direct link

Originally posted by 500239

1 ore at a time, or can you select multiple ores? That would be a neat solution for some of those overlapping ore sites.

1 at a time, but you can switch the depots anytime you like (killing hundreds of now useless drones)

over 4 years ago - /u/Klonan - Direct link

Originally posted by overmog

How do you feel about replacing the drone visuals with something like ground based construction robots from your other mod? Having human slaves is a little bit too morbid imo.

I used the character graphics mainly because they have the mining animation already prepared, so i didnt have to worry about making any sprites or anything.

over 4 years ago - /u/Klonan - Direct link

Originally posted by StrangerFeelings

I have a question, and I hope it doesn't get burried under the hundreds of comments here before it's answered.

I keep having my drones dying for some reason, but there are no biters nearby or anything like that. Also the amount of drones I have in the mining base hasn't gone down with every death. What is up with this?

Image attached to show whats up: https://imgur.com/a/dX155UL

When they get stuck on things they suicide, but that shouldn't happen that often. Are you playing with any other mods?

over 4 years ago - /u/Klonan - Direct link

Originally posted by puuuuuud

Could you make the area visible while placing similar to the mining drill?

Its not really possible with the modding api yet

over 4 years ago - /u/Klonan - Direct link

Originally posted by Flux7777

Hi Klonan, I've been playing with this a lot and I've only found one thing I would change. Not sure how difficult it would be. But I'd like the ability to insert directly into the storage of the depot. This way I could chain a few together so they could share outward belts. Really useful in the early game especially

unfortunately that isnt possible in the engine

over 4 years ago - /u/Klonan - Direct link

Originally posted by ZeruuL_

What is the pollution/min from these drones? I can see them in the pollution tab but the drone doesn’t display the exact number/min like miners’.

It depends on their speed, they make a certain amount of polluter per resource mined