Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
corvorosso

View component methods

Question

when in lua i try to see some methods from a component

 

=compoment.componentname

 

the reseult show only 9 entries

and

 

"..."

 i know there is some other methods over the 3 dots.

 

there is a way to show all methods from a component ?

 

 

 

other problem

when i see my component with a low tier graphic card or low tier monitor, the result is more than one page and the monitor scroll down.

 

there is a way to see the text before, or maybe a way to show the list page by page, or stop the scrolling at the end of the page until I press enter ?

 

Thank you all in advance :)

 

PS sorry for my poor english :P

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

I actually wrote a program to make looking at components and libraries easier:

http://oc.cil.li/index.php?/topic/576-cbrowse-inspecting-lua-components-and-other-objects/

You can navigate through everything using your mouse or the command line.

You can go back via Ctrl+C.

If you like to read a component method's documentation just input that:

=tostring(method)

To install the program you also need another program. (cbrowse is packed in a tar archive; this program creates and extracts them)

http://oc.cil.li/index.php?/topic/421-tar-for-opencomputers/

 

To make it a bit easier for you, here are the commands for installation (needs an internet card):

cd /
wget 'https://raw.githubusercontent.com/mpmxyz/ocprograms/master/home/bin/tar.lua'
wget 'https://raw.githubusercontent.com/mpmxyz/ocprograms/master/tars/cbrowse.tar'
tar -xf cbrowse.tar
Link to post
Share on other sites
  • 0

Your program is really amazing , and i think i will use it for check method and components.

 

but i want to know , if and how i can resolve the problem to show more than 9 entries, when i search for a component method. Not only for find more method, but for undersend better OpenComputer mod.

And if there is any command to see a list of something like components, page by page with a console command.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.