Making placement of pumps and miners possible in prototype surface

Place to get help with not working mods / modding interface.
Post Reply
mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Making placement of pumps and miners possible in prototype surface

Post by mrvn »

Some mods have a prototype surface (e.g. my own PersistantBlueprints or TheBlueprintLab) where player can create prototypes, blueprint them and then place them in the real game without having to load a sandbox every time.

But not everything can be build there. For example (without waterfill) one can not place any water pumps. And miners can only be placed on ore resources so are out too.

Would there be anything the mod could do to say XYZ can be placed on this surface regardless of normal rules?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Making placement of pumps and miners possible in prototype surface

Post by DaveMcW »

You can allow offshore pumps by deleting the tile collision mask.

Code: Select all

data.raw.tile["lab-dark-1"].collision_mask = {}
data.raw.tile["lab-dark-2"].collision_mask = {}
Mining drills require resources, so you would have to cover the surface with a resource.

mrvn
Smart Inserter
Smart Inserter
Posts: 5709
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Making placement of pumps and miners possible in prototype surface

Post by mrvn »

That probably works for the pumps while not being surface specific. Let's hope no other mod uses lab tiles where pumps shouldn't be placeable.

Miners are still a problem though. It's not just that you need resources. Depending on mods you also need the right resources. A pyaddon copper mine can not be placed on iron for example.

Post Reply

Return to “Modding help”