Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add advanced item interface with support for fake player interaction #1331

Open
gjmhmm8 opened this issue Mar 11, 2024 · 6 comments
Open

Add advanced item interface with support for fake player interaction #1331

gjmhmm8 opened this issue Mar 11, 2024 · 6 comments

Comments

@gjmhmm8
Copy link

gjmhmm8 commented Mar 11, 2024

Currently, Integrated Dynamics lacks an advanced item interface that allows for interaction with fake players. This feature would greatly enhance the mod’s capabilities by enabling the use of fake players to store and retrieve items from various inventories within the mod’s systems.
By adding an advanced item interface with fake player support, players would be able to automate complex tasks more efficiently. This would open up new possibilities for automation and integration with other mods that rely on fake player interaction.
The advanced item interface could include features such as:
Support for fake player interaction with inventories, allowing for automated storage and retrieval of items.
Configuration options to customize the behavior of the fake player, such as setting its game mode or player level.
Compatibility with other mods that utilize fake players, ensuring a seamless integration with existing setups.
Implementing this feature would greatly expand the mod’s potential for automation and provide players with more flexibility in their creations. It would also encourage further creativity and complexity in the use of Integrated Dynamics’ systems.
Thank you for considering this feature request. I look forward to seeing it implemented in a future update.

@rubensworks
Copy link
Member

I'm not sure I understand your need. How would this be different to the player simulator for Integrated Tunnels?

@gjmhmm8
Copy link
Author

gjmhmm8 commented Mar 14, 2024

Player Simulator does not support opening machine GUI for item input and output operations.

@bangplaysgames
Copy link

Player Simulator does not support opening machine GUI for item input and output operations.

Why would you need this? Every spot you can input or extract an item from a machine's GUI is a slot in the block entity's inventory. If you're needing to interact with a specific slot, then you can just specify the slot number you need to interact with. This can also be determined by using an inventory reader on the machine, placing the item in the slot, and then looking at what item is returned for the inventory slot numbers.

@gjmhmm8
Copy link
Author

gjmhmm8 commented Dec 13, 2024

Player Simulator does not support opening machine GUI for item input and output operations.

Why would you need this? Every spot you can input or extract an item from a machine's GUI is a slot in the block entity's inventory. If you're needing to interact with a specific slot, then you can just specify the slot number you need to interact with. This can also be determined by using an inventory reader on the machine, placing the item in the slot, and then looking at what item is returned for the inventory slot numbers.

Some machines do not support item input and output through pipes for specific slots, but instead allow interaction through the GUI.

@Jack-McKalling
Copy link
Contributor

Jack-McKalling commented Dec 13, 2024

The player simulator uses a standard mechanism for interactions, blocks that don't follow that standard cannot be interacted with this way. For instance there is a standard for a block's ability to accept item insertions/extractions too, which requires it to implement a container interface, but if the block doesn't support this interface, it won't support item insertion/extraction (not even through vanilla hoppers). Similarly, if a block requires direct user interaction with a GUI to support some features, this would not be something the player simulator can natively support, since it doesn't understand how other mod's code is written.

To add support for a block that requires actual GUI interactions for its features as opposed to the standard inventory exposing mechanics, requires specific compatibility be added for specifically that block. And while this may be interesting for some blocks, there are way too many blocks added by mods that don't support this standard that would require individual compatibility.

In other words, if you want the player simulator to support this type of interaction, it can only do so on a by block basis, and not through some generalized standard - as these don't support the standard.

@bangplaysgames
Copy link

While I'm just interpreting the request, the way it reads to me is that they want logistics to and from a specific slot in the GUI of some machines (using metallurgic infusers as an example, the infusion catalyst slot). But that's already possible by specifying the slot to export items into or import them out of using the existing item exporter and importer. It's just a matter of determining which slot is which, and an inventory reader makes that easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Options
Development

No branches or pull requests

4 participants