Forcing placement of mining drill
Forcing placement of mining drill
I want to place a mining drill to an area where there are no resources.Why? I want to create a blueprint for a generic mining outpost. Is there any other way than finding a huge deposit, and creating the blueprint there? It would be great if at least I could place ghost mining drills. Thanks.
Re: Forcing placement of mining drill
Shift click to place ghosts.
copy as bluprint
profit
...
(I do apologise if you have tried this and found it not working, its just a theory of mine, works with normal buildings)
copy as bluprint
profit
...
(I do apologise if you have tried this and found it not working, its just a theory of mine, works with normal buildings)
Re: Forcing placement of mining drill
Thanks. Indeed I tried this, but Factorio won't allow me placing the ghost of the drill if there are no ores.
Re: Forcing placement of mining drill
You can still use create_entity to create entities in invalid locations, so place a chest or something where you want the mining drill to be, then point the cursor at it and run something like
to turn it into a mining drill.
Code: Select all
local p = game.local_player
local s = p.selected
local pos = s.position
p.insert{name=s.name, count=1}
s.destroy()
p.surface.create_entity{name="basic-mining-drill", position=pos, force=p.force}
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Re: Forcing placement of mining drill
Thanks a lot. That sounds like a good solution. How can I run these multi line scripts? At the console I can only run a single command. What was even better: is there a way to assign a hotkey to a script like this?
Re: Forcing placement of mining drill
You can paste multiple lines into the console, those will be concatenated into a single line. Don't think assigning a hotkey is possible (yet?)imajor wrote:Thanks a lot. That sounds like a good solution. How can I run these multi line scripts? At the console I can only run a single command. What was even better: is there a way to assign a hotkey to a script like this?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
-
- Fast Inserter
- Posts: 171
- Joined: Sun Feb 17, 2013 4:31 pm
- Contact:
Re: Forcing placement of mining drill
I used the map editor to create a large patch of resources, and then made my mining outpost. Using the bluepring string mod I could "Import" that outpost into my main save.
Thats a very roundabout way of getting at it, but it worked out pretty well.
Thats a very roundabout way of getting at it, but it worked out pretty well.
Re: Forcing placement of mining drill
Thanks. That is a good idea, I didn't think of the map editor. Too bad I already created a huge mining drill field by executing that script for all the instances. Took a while.