Add a way to see/set what ghost is in a player's hand and appropriate events.

Suggestions that have been added to the game.

Moderator: ickputzdirwech

Post Reply
dewiniaid
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 07, 2017 8:50 pm
Contact:

Add a way to see/set what ghost is in a player's hand and appropriate events.

Post by dewiniaid »

Factorio 0.17 has a nice feature where you can (optionally) have items selected from the quickbar or via pipette create a placeable ghost if you lack the actual item.

However, there does not appear to be a way to query (or change) what this ghost is -- it is not an item in player.cursor_stack and does not raise the on_player_cursor_stack_changed event.

Is there any chance we can get this changed? It would affect any mod that wants to extend what the pipette tool does -- and my particular usage is so QuickItemSwap can rotate between belts/splitters/undergrounds even when holding a ghost or rotating to an item that's not in the player inventory.

Boodals
Fast Inserter
Fast Inserter
Posts: 129
Joined: Sun Feb 11, 2018 7:10 pm
Contact:

Re: Add a way to see/set what ghost is in a player's hand and appropriate events.

Post by Boodals »

I have implemented this for the next version of 0.17 (I have source access).
LuaControl::cursor_ghost [R/W] (ItemPrototypeSpecification)

No events because I made some before and I hated it. If you really need them, i'd recommend making a new request topic specifically for the events.

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Add a way to see/set what ghost is in a player's hand and appropriate events.

Post by Bilka »

Note that this is part of 0.17.7, not 0.17.6.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Implemented Suggestions”