Placing tile gost on ore patch with a selection tool

This is the place to request new mods or give ideas about what could be done.
Post Reply
Teneombre
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 04, 2021 8:52 pm
Contact:

Placing tile gost on ore patch with a selection tool

Post by Teneombre »

Hi,
I made a few research but was unsucessfull. I'm looking for a ingame tool (like planner/Deconstruction/upgrade) with, when selecting an area, would place ghost of a given tiles (said concrete) on any tiles which have ore on it.
I'm planing to try to mod this myself but I'm really a newbie at coding so I post here with little hope ^^
Since I will probably try if I have no answer, I'm also interested in any mod with a selection tool about ore patch, so I may retro-engineering what I want.

I'm sorry if it's not really clear. English is not my main language and I have difficulty to explain clearly really highly specific things.
Thanks for reading !

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 489
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Placing tile gost on ore patch with a selection tool

Post by Silari »

I don't know of any mod that does that, but it should be possible.

You can make a selection tool that's set to select entities, and set the entity_filters list to whatever entities are a ResourceEntity. With that you can set an event in control.lua for on_player_selected_area, check if item is the selection tool you made, and if so you can iterate the entities list and make a ghost on top of each for concrete.

Teneombre
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 04, 2021 8:52 pm
Contact:

Re: Placing tile gost on ore patch with a selection tool

Post by Teneombre »

Thanks ! If I have to do it myself, your post will help me a lot !

Post Reply

Return to “Ideas and Requests For Mods”