[2.0.13] Selection tool with flag "only-in-cursor" but without "spawnable" can't be used when switching into remote view

Place to report issues and suggest improvements to the API documentation.
User avatar
ickputzdirwech
Filter Inserter
Filter Inserter
Posts: 794
Joined: Sun May 07, 2017 10:16 am
Contact:

[2.0.13] Selection tool with flag "only-in-cursor" but without "spawnable" can't be used when switching into remote view

Post by ickputzdirwech »

A selection tool (in my case a deconstruction planner) with the flag "only-in-cursor" but without "spawnable" can't be used in remote view, when it was in the cursor before switching into remote view. When I add the "spawnable" flag it works as expected. (The flag wasn't set, since the item is given to the player with a shortcut with action = "lua" anyways.).

I would expect that the "spawnable" flag doesn't change the behaviour in remote view and that it doesn't make a difference if the item is in the cursor before remote view is activated or not.

If this is at least partially intended the description of ItemPrototypeFlags should reflect that behaviour.
Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5284
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [2.0.13] Selection tool with flag "only-in-cursor" but without "spawnable" can't be used when switching into remote

Post by Klonan »

This is intended, I will move this to doc requests

E.g, You can have a physical item that is 'only in cursor', that physical item is in your characters cursor, and should not be in the remote cursor since it is a physical item of your character

The 'spawnable' flag is what we use to determine if the remote controller can hold it, (i.e if its considered a 'virtual' item)
Post Reply

Return to “Documentation Improvement Requests”