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

Aerial interface with openperipherals #362

Closed
applejag opened this issue Jan 8, 2015 · 20 comments
Closed

Aerial interface with openperipherals #362

applejag opened this issue Jan 8, 2015 · 20 comments

Comments

@applejag
Copy link

applejag commented Jan 8, 2015

Being able to see the content of the player's inventory with the Aerial interface via OpenPeripherals for ComputerCraft...

Idk if I should ask you or the creator of OpenPeripherals but would be nice if you could see the content of the players inventory, and check it out. Like for example would be cool if I could check if my pickaxe is out of power and if so it replaces it with a new one. Or have the terminal glasses display like what I have in my inventory. Fun stuff like that.

So would be great if you made it so we can check whats in the interface with OP or have your own custom functions, and in the case of your own functions you can spice it up with stuff like an event for when you pick up an item or maybe be able to read what's the currently selected slot.

With great computercraft integration comes great oppertunities 👍 :)

@MineMaarten
Copy link
Owner

If it can look into chests already (IInventory), it should also be able to look into the 'inventory' of the Aerial Interface..?

@applejag
Copy link
Author

Yea but it can't for some unknown reason...

Check this out
I have this setup: chest to the right and aerial interface to the left.
Setup

The available methods for the chest peripheral.
Chest docs

The aerial interface is not accessible via openperipherals.
Aerial interface docs

I don't know but just maybe you override the peripheral, and that's why it's not part of openperipherals. That's just my theory tho

@applejag
Copy link
Author

If that's the case, that you are overriding it, maybe you can make it pneumaticMachine on top and openperipherals inventory on the other sides. But maybe that's not possible with the peripheral API...

@Vexatos
Copy link
Contributor

Vexatos commented Jan 11, 2015

@MineMaarten There is a particular problem with ComputerCraft: If multiple Peripheral Providers provide peripherals for the same block, ComputerCraft will only call the one which was registered first. This means, if the Aerial Interface is an IPeripheral or you add an IPeripheral for the Interface, any peripheral added by OpenP will get ignored (as OpenP peripherals are always the last ones being registered).

@MineMaarten
Copy link
Owner

It would be because I'm overriding it yes... I'm trying your suggestion jilleJr. Now you can access the pneumaticMachine peripheral from the top/bottom, and I'm not for the sides. Please let me know if you can use the sides to get the inventory now :)
(upcoming version)

MineMaarten added a commit that referenced this issue Jan 19, 2015
…op/bottom now. Potential fix for not being able to access the inventory via OpenPeripherals. #362
@applejag
Copy link
Author

Ahh sweet @MineMaarten you're my star. Now where can I get this version? Wait 'til it's publicly released, and in that case how much time would that take?

@MineMaarten
Copy link
Owner

not sure, when I decide to release :P. I'm thinking of tomorrow, but don't keep me to it :P

@applejag
Copy link
Author

Is it possible to get a small prerelease just to test it? :3 ?

@MineMaarten
Copy link
Owner

A new build is on curse (when approved). Have fun, and please report back if it fixes it :)

@MineMaarten
Copy link
Owner

As I didn't get any reports back I'm just going to assume it works fine :)

@Vexatos
Copy link
Contributor

Vexatos commented Feb 25, 2015

👍

@applejag
Copy link
Author

Wow I actually forgot about this, I never tested it 'til now. It does not seem like it fixed it, I still get the pneumaticcraft methods from the peripheral not a chest-like one from openperipherals...
I am running a buggy modpack and it crashed when I hooked up my computer to a chest, and I don't have the time at the moment to check further, but I can say that your fix does not seem to have fixed it.

I will reply later when I can test further but for now I have to sleep :)

EDIT:
Should be noted that I did use an older version; the one where you introduced the fix.
http://minecraft.curseforge.com/mc-mods/224125-pneumaticcraft/files/2225306
Pneumaticcraft version 1.5.3 i think.

@MineMaarten
Copy link
Owner

Not sure what I can do anymore about it though. I would think OpenPeripherals could try and look if they can make it side dependent on their side?

@applejag
Copy link
Author

Factorization got a temporary solution to this problem, as said on the other issue
OpenMods/OpenPeripheral-Integration#8 (comment)

Just found out the perfect temporary solution: Factorization Parasieve

Place the parasieve against an inventory. Any machine that attempts to access the parasieve will access that inventory through it.

This block does as expected and the peripheral for it works as expected as well. Just perfect with some more prefect on top.
I'm so happy because I can now play with my dreams and automate my own inventory. so cool

@CaptiveCreeper
Copy link

That works perfectly for accessing the inventory but is there some way to access the "tank" of xp with computercraft?

@applejag
Copy link
Author

applejag commented May 5, 2015

If there isn't then there should be a function for it, on the interface. Something like 'getXPLevel()' and 'getXPAmount()'. Catching my drift?

@CaptiveCreeper
Copy link

i looked on the wiki and did not see any functions specific to the aerial interface. Only the ones related to pressure that all machines have. If i missed something i would be happy to be corrected.

@MineMaarten
Copy link
Owner

There is no method for it currently, no. But this is one I can (and will) add :).

@CaptiveCreeper
Copy link

I looked at the wiki for the mod Computronics and don't see how this would help with accessing xp could you please explain.

@Vexatos
Copy link
Contributor

Vexatos commented May 5, 2015

It does not help accessing the XP, that's on @MineMaarten's side to do. It would be a temporary solution for accessing both PneumaticCraft and Openperipheral functions from the same side, though (in case that's still an issue).

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

No branches or pull requests

4 participants