Ghost insterters should have access to pickup/drop position
Posted: Fri Jul 29, 2016 8:17 am
As the title says.
Okay, I'll keep it brief, but explain my issue.
Due to the transition away from having lots of different inserters (The complete item/recipe/entity combination) for different inserter configurations, to a GUI and hotkeys to change the configuration of an existing one, one of the issues that is coming up is that you can't configure them before they are placed.
So, I am working on that, but I have come up with an issue.
When the player places an entity, you can detect that and immediately change the configuration to match the intended layout, but there are a few issues.
If the player places a Ghost instead(by shift clicking), then trying to use pickup_position and drop_position comes up with an error stating that entity (ghost) doesn't have those values.
This is the issue I want to address. The ghost of an entity should inherit values unique to the entity type it is a ghost of, in the case of inserter, it's additional position values.
It would also allow you to configure inserter ghosts before the entity is placed. Speaking of, the values are clearly stored in the ghost, because the hand positions are copied if you use blueprints to copy a configured inserter.
Also on top of this issue, I see no method of changing the entity preview displayed while the item is in your hand, but I'm not sure if I should even ask for the ability to change that right now, so we'll leave that for another discussion.
Okay, I'll keep it brief, but explain my issue.
Due to the transition away from having lots of different inserters (The complete item/recipe/entity combination) for different inserter configurations, to a GUI and hotkeys to change the configuration of an existing one, one of the issues that is coming up is that you can't configure them before they are placed.
So, I am working on that, but I have come up with an issue.
When the player places an entity, you can detect that and immediately change the configuration to match the intended layout, but there are a few issues.
If the player places a Ghost instead(by shift clicking), then trying to use pickup_position and drop_position comes up with an error stating that entity (ghost) doesn't have those values.
This is the issue I want to address. The ghost of an entity should inherit values unique to the entity type it is a ghost of, in the case of inserter, it's additional position values.
It would also allow you to configure inserter ghosts before the entity is placed. Speaking of, the values are clearly stored in the ghost, because the hand positions are copied if you use blueprints to copy a configured inserter.
Also on top of this issue, I see no method of changing the entity preview displayed while the item is in your hand, but I'm not sure if I should even ask for the ability to change that right now, so we'll leave that for another discussion.