Auto placing ghosts when out of range.

This is the place to request new mods or give ideas about what could be done.
ps666
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Sat Jul 04, 2015 8:40 pm
Contact:

Auto placing ghosts when out of range.

Post by ps666 »

Hello,
yesterday, after 350 hours of playtime, i discovered the ghost placing feature (the shift-click an item funktion). What a shame! :oops: How could i live without this awesome feature? :shock:
I really hate this freakin error sound when you´re out of range or in the way. This drives me nuts, really! :evil:
Can someone make a small mod for me which use the ghost mode automatically (by clicking only the left mouse button) when i´m out of range or in the way?
And it would be cool when this mod could place a ghost always when i have only one item. Thereby i does not lose it and can place ghosts onward happily.

Thank you very much.
Last edited by ps666 on Mon Nov 30, 2015 9:42 am, edited 1 time in total.
ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

Re: Auto placing ghosts when out of range.

Post by ratchetfreak »

you can hold shift if you place to ghost a building
ps666
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Sat Jul 04, 2015 8:40 pm
Contact:

Re: Auto placing ghosts when out of range.

Post by ps666 »

Yes, I know that since two days ago. I edited my post a little bit for better comprehension.
SirRichie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Wed Feb 25, 2015 4:50 pm
Contact:

Re: Auto placing ghosts when out of range.

Post by SirRichie »

I think this is not possible at the moment.
There are only events that allow you to react to an item or a ghost being placed. But these events are not called when the item does not get placed, e.g., because the player is in the way.
ps666
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Sat Jul 04, 2015 8:40 pm
Contact:

Re: Auto placing ghosts when out of range.

Post by ps666 »

That is really too bad. :cry:
gheift
Fast Inserter
Fast Inserter
Posts: 188
Joined: Tue Mar 03, 2015 9:20 pm
Contact:

Re: Auto placing ghosts when out of range.

Post by gheift »

It could be implemented in the other way: change your keybindings to build ghosts on left click and normal on shift left. Then create a mod, which replaces the placed ghosts near you with the real building.
Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

Re: Auto placing ghosts when out of range.

Post by Supercheese »

SirRichie wrote:I think this is not possible at the moment.
There are only events that allow you to react to an item or a ghost being placed. But these events are not called when the item does not get placed, e.g., because the player is in the way.
I would think the on_put_item Lua event would be able to implement this, just checking what the player's holding, the position at which on_put_item was triggered, and placing a ghost entity of what was held.
SirRichie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Wed Feb 25, 2015 4:50 pm
Contact:

Re: Auto placing ghosts when out of range.

Post by SirRichie »

Supercheese wrote:
SirRichie wrote:I think this is not possible at the moment.
There are only events that allow you to react to an item or a ghost being placed. But these events are not called when the item does not get placed, e.g., because the player is in the way.
I would think the on_put_item Lua event would be able to implement this, just checking what the player's holding, the position at which on_put_item was triggered, and placing a ghost entity of what was held.
Oh... are you positive it is called even when the actual build is not allowed?
Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

Re: Auto placing ghosts when out of range.

Post by Supercheese »

SirRichie wrote:
Supercheese wrote:
SirRichie wrote:I think this is not possible at the moment.
There are only events that allow you to react to an item or a ghost being placed. But these events are not called when the item does not get placed, e.g., because the player is in the way.
I would think the on_put_item Lua event would be able to implement this, just checking what the player's holding, the position at which on_put_item was triggered, and placing a ghost entity of what was held.
Oh... are you positive it is called even when the actual build is not allowed?
Yep. I use it for my Orbital Ion Cannon mod.
SirRichie
Fast Inserter
Fast Inserter
Posts: 244
Joined: Wed Feb 25, 2015 4:50 pm
Contact:

Re: Auto placing ghosts when out of range.

Post by SirRichie »

interesting... my bad then
Post Reply

Return to “Ideas and Requests For Mods”