using openperipheral or miscperipheral modem to read warded jar contents

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Azurl

New Member
Jul 29, 2019
172
0
0
is that possible? I have bound a transvector interface to a jar, the essentia symbol shows up on the transvector interface, is there wa way to hook up a modem or computer to the transvector interface and get the name of the essentia and the amount?
 

megamit

New Member
Jul 29, 2019
33
0
0
you can read a warded jars aspects as a peripheral with a periproxy+modem(or adjacent computer), but i dont believe that the transvector interface exposes a blocks peripheral methods.
EDIT:
https://github.com/Vazkii/ThaumicTinkerer/wiki/Peripheral-Documentation#aspect-container-commands
You are in luck as the documentation says that you should be able to use the p.getAspects() method to get a list of all the aspects in the jar (will only be one tho) then use p.getAspectCount(SomeAspectName) to get the number.
 

Azurl

New Member
Jul 29, 2019
172
0
0
sadly, peripheral proxy did not work :( the reason why i wanted to use the transvector interface was to hide away the computer stuff from the magic room. but seems the only way is to hook a computer directly to the jar. the essentia symbol showed up on the transvector interfave when i bound them, it's a shame it doesn't interact in the same manner with a computer
 

megamit

New Member
Jul 29, 2019
33
0
0
sadly, peripheral proxy did not work :( the reason why i wanted to use the transvector interface was to hide away the computer stuff from the magic room. but seems the only way is to hook a computer directly to the jar. the essentia symbol showed up on the transvector interfave when i bound them, it's a shame it doesn't interact in the same manner with a computer
In the version i have using a modem + transvector interface worked somewhat. i knocked up a simple script that produces a table of aspects and quantities. However there seems to be a bug at the moment where an empty jar will kill the program if you try to get its aspect. Script.
A work around for the bug would be to have hardcoded aspects and to never call the getAspects method a jar, or calling a second program to do check for aspects and if it crashes it just returns to the main program.

EDIT: fixed version http://pastebin.com/T8hVpm6z
 
Last edited:

Azurl

New Member
Jul 29, 2019
172
0
0
that seems awesome, I hope they fix that bug soon. which modpack are you using? I tried listing all methods available with the transvector interface, but i could only get the standard tank, and energy etc commands.

I will try your script the next time I get into it.
 

Azurl

New Member
Jul 29, 2019
172
0
0
your code doesn't work for me. the variable modem is never used. and the devices it gets from peripheral.getNames() is only modem, and peripheral.
 

megamit

New Member
Jul 29, 2019
33
0
0
your code doesn't work for me. the variable modem is never used. and the devices it gets from peripheral.getNames() is only modem, and peripheral.
oops i left in the modem peripheral from testing. It very may be that the version in whatever pack you are using is from before the methods were added. i use a custom pack for the private server i play on using TT version 2.0-47
 

Azurl

New Member
Jul 29, 2019
172
0
0
seems the support for transvector interfaces were added in version 45. hopefully it will come with the next pack update.
 

Azurl

New Member
Jul 29, 2019
172
0
0
Update: I now have the update that allows me to read jars with computers. and even through transvector interfaces.
but the modems won't connect through the peripheral proxies. right clicking the modem does nothing and the code returns no devices when looking through the network.