Jump to content




Open peripherals+add ons tutorial



6 replies to this topic

#1 bomber1949

  • Members
  • 12 posts

Posted 12 August 2014 - 02:30 PM

So, I started computer craft I can do a fair bit of coding-not much, but a gpod amount

And now I want to learn about openpeipherals and openperipheralsaddon
Eg like the sensor and PIM and glasses and terminal bridge


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 12 August 2014 - 03:36 PM

Moved to Ask a Pro.

#3 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 12 August 2014 - 05:41 PM

There's documentation in game for any available peripherals. You can use openp/docs <side> when connected to a peripheral, and it'll give you basic info about what functions are available for that peripheral, and what it does.

#4 bomber1949

  • Members
  • 12 posts

Posted 12 August 2014 - 11:35 PM

You what?
I don't quite understand that?


#5 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 13 August 2014 - 12:00 AM

does this help?
>openp/docs right
-->stuff on the peripheral
>openp/docs left
-->stuff on the peripheral
etc.


#6 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 13 August 2014 - 03:08 AM

To see what - if any - functions OpenPeripheral gives you access to, run its documentation script along with the name of the peripheral (as per the name you'd use to wrap it):

openp/docs <name>

For specific info on given functions, follow that up with:

openp/docs <name> <functionname>

Note that whether or not OpenPeripheral supports your block may depend on both the version of OpenPeripheral and the version of the mod that block comes from. For older OpenPeripheral builds, you may need to install the documentation script manually (see the OpenPeripheral thread for info on this).

For further info on wrapping and using peripherals, take a read through this tutorial.

#7 bomber1949

  • Members
  • 12 posts

Posted 13 August 2014 - 08:33 AM

Yeah that does hekp, thanks guys





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users