Page 1 of 1

Allow setting player cursor to fluid or virtual signal

Posted: Wed May 14, 2025 7:17 pm
by Zomis
There are two ways to set a player's cursor:

LuaPlayer.cursor_stack.set_stack and LuaPlayer.pipette_entity

Neither of these allows the possibility to set the player cursor to a fluid or a virtual signal, but the player can do so themselves if e.g. pipetting a signal in a constant combinator, or pipetting a signal in any circuit condition.

I tried

Code: Select all

player.cursor_stack.set_stack({ type = "fluid", name = "water" })
but that crashed because water is not an item.

Why?

I'm sick of having to click an empty slot and search for things. If you have 10 things to search for, doing it with a mod or by being able to pipette fluids and signals from mod UIs (see other feature request) would make the user experience sooooo much better.

Re: Allow setting player cursor to fluid or virtual signal

Posted: Thu May 15, 2025 2:12 am
by Osmo
I found myself trying to pipette fluids many times, but it is not currently possible, so this should probably be a feature request.
Regardless, this gets an instant +1 from me

Re: Allow setting player cursor to fluid or virtual signal

Posted: Thu Jul 03, 2025 4:29 pm
by StephenB
+1, I would like to be able to read the current virtual-signal in the cursor and also set it. Would be useful for this mod, for example: https://mods.factorio.com/mod/VariantHotkeys