1

I'm playing skyfactory 3 with OpenComputers 1.6.2.7 installed. I'm used to playing with computercraft where you could read information from blocks fron other mods and use them in your program (for example read rf/t output of a big reactors reactor). I'm trying to accomplish the same thing but with the OpnComputers mod (which is installed in skyblock 3 by default).

I'd like to setup the following:

  • on demand crafting with the Refined Storage mod (the crafting is already setup I just want to be able to trigger it from a computer)
  • See basic power consumption of an EnderIO compositor bank.
  • See amount of liquid inside a Tinkers' Construct Casting Basin
  • Check quantity of given item inside Refined Storage system.

I've no problem with writing the code to do this, however I don't know what blocks I need to interact with other mods or if it's even possible...

How would I go about doing this? again, I'm only looking for the hardware setup required (I already have setup a basic (tier 1) computer with screen, disk drive and keyboard)

4
  • What did you try so far? Does the computer just read NBT data? If yes, those tasks all seem pretty doable. Commented Dec 21, 2017 at 11:22
  • I've tried to see if a computer can check this information directly but it doesn't seem to be working... I probably need another block for that...
    – BRHSM
    Commented Dec 21, 2017 at 11:41
  • What did you try so far? And how does the computer work then? Commented Dec 21, 2017 at 16:03
  • I added an adapter to the blocks I want to interact with but I've not figured out how to use it yet
    – BRHSM
    Commented Dec 21, 2017 at 16:06

1 Answer 1

1

TL:DR; READING IS FOR CHUMPS!

  • adapter on block
  • adapter to computer
  • internet card in computer
  • In the command line of your computer run each of these commands in order.
  • wget https://raw.githubusercontent.com/Gimpeh/gimptopia/main/misc/getMethods.lua && install
  • getMethods all > methods.txt
  • edit methods.txt

The verbose explanation

place an opencomputers adapter block literally on, so it is touching, the block you want to check compatibility with. There is a way around this (at least in Gregtech New Horizons, which has massively increased opencomputers support and functionality)

The way around placing the adapter directly on the controller (or just block if it isnt a multiblock, or computerport in the case of things like bigreactors reactors) is to use an MFU. Shift right click the block with the MFU. Put the mfu in an adapter that is (configurable in configs) within 16? blocks range by default.

Next, using opencomputers cables, connect the adapter to a valid opencomputers computer (robots for example are not allowed component access. IDK anything about microcontrollers)

For the valid computer, make and install an internet card (not to be confused with network or wireless network cards)

wget https://raw.githubusercontent.com/Gimpeh/gimptopia/main/misc/getMethods.lua && install

run getMethods from the commandline to get it's usage. The output for actually running it is massive. It will require you to use one of its printed recommended methods to deal with the output. getMethods all > methods.txt followed by edit methods.txt alternatively pipe it to less, this is explained when you run getMethods with no arguments.

All connected components will be listed. Under each listing will be contained all methods (functions) provided by that component. For each method, any documentation provided is retrieved and displayed as part of the method entry.(DOCUMENTATION PROVIDED IN GAME.. Could maybe probably not be documented elsewhere)

WHAT THE HECK! YOU POST ALL THIS CRAP AND STILL DONT ANSWER MY QUESTIONS!?!?!

  • Refined Storage mod -- no clue. Applied Energistics.. Yes. But basically all integration outside of what I post about at the bottom, feels terrible and incomplete. For every mod, not just AE2. So good luck !
  • EnderIO compositor bank. -- dunno, pretty sure capacitor banks have functions though
  • Tinkers' Construct Casting Basin -- probably possible using some kind of inventory controller, theres 2 types. Fluid and Item. Im guessing fluid.. but programming has taught me that things that work for more things than intended to, at times, work in funny ways. And that one has a storage that uses both fluids and Items.
  • Refined Storage system -- I have a clue what this even is... does it have inventory slots accessible to like, a hopper? If yes, inventory controller upgrade. If no, then probably not. But.. idk.. so run the program I posted and find out..

Pro-Tip: Put Upgrades you want to use with a non-robot (ie Actual Computer) in a connected adapter

Actual OpenComputers Integration

Final note to those interested in a REAL pack, with REAL opencomputers support! and an ACTUALLY active opencomputers help channel. WITH REALLY USEFUL use cases for Opencomputers.

Check out the Gregtech New Horizons modpack. I can't promise the opencomputers help channel there will help you much for how to do things or what is possible outside of the GTNH pack.... But for programming within the pack... Help has been granted to just about every person I've seen post. in skill levels ranging from brand new, to advanced. In that world, opencomputers is actually useable. And Actually Used.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.