Jump to content


wrothmonk's Content

There have been 6 items by wrothmonk (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#179192 List table keys

Posted by wrothmonk on 18 May 2014 - 04:10 AM in Ask a Pro

I've been working with open peripherals for the past couple of days and I've come to realize that most of the data comes back in tables with the keys being individual strings that describe the data. Unfortunately there appears to be no documentation relating to what each of the keys are specifically called. Is there any way to get a list of the keys in a table, or will I just have to take a guess at each one?

EDIT: I'm an idiot. I didn't check the How to use tables post in the tutorial section.



#139453 [MC 1.7.10] [CC 1.65] Immibis's Peripherals

Posted by wrothmonk on 11 August 2013 - 01:54 PM in Peripherals and Turtle Upgrades

I have another question about the adventure peripheral; how do I check if the get closest player command worked or not? I need to check because if nobody is in the area and I try to get a username it comes up with the error attempt to index a nil value.



#139048 [MC 1.7.10] [CC 1.65] Immibis's Peripherals

Posted by wrothmonk on 09 August 2013 - 12:31 PM in Peripherals and Turtle Upgrades

Thank you, thats exactly what I needed.



#139007 [MC 1.7.10] [CC 1.65] Immibis's Peripherals

Posted by wrothmonk on 09 August 2013 - 08:40 AM in Peripherals and Turtle Upgrades

Allow me to clarify:
Spoiler
is what I get when I run a program to get the methods for the adventure interface peripheral and the right. When I attempt to call any of the other methods given on page 10 it comes up with either no such method (when calling the methods without wrapping it) or attempt to call nil (when I do wrap it), which to my understanding means the methods dont exist, I'm not wrapping the peripheral properly, or I'm not calling the the method by the right name. I suspect a combination of the last two since it says on the api documentation that the world commands start with 'w.' instead of 'p.' when 'p.' is the peripheral wrap.
Here is an exact copy of what is in the imbibis.cfg
Spoiler



#138912 [MC 1.7.10] [CC 1.65] Immibis's Peripherals

Posted by wrothmonk on 08 August 2013 - 05:52 PM in Peripherals and Turtle Upgrades

View PostMudkipTheEpic, on 08 August 2013 - 05:46 PM, said:

View Postwrothmonk, on 08 August 2013 - 09:46 AM, said:

Hey, I'm using the 1.6.2 version of the immibis core and peripherals and I'm having some trouble figuring out how to use the world or player methods given in the adventure map interface. Can anyone walk me through it?

EDIT: It would appear that the peripheral for the adventure interface doesn't have the world or player methods so can anyone tell me how to call the methods properly or are they just not updated or something?

You have to enable it in the config first.
It is enabled. Either that or I'm somehow missing a line in the generated config file.



#138852 [MC 1.7.10] [CC 1.65] Immibis's Peripherals

Posted by wrothmonk on 08 August 2013 - 09:46 AM in Peripherals and Turtle Upgrades

Hey, I'm using the 1.6.2 version of the immibis core and peripherals and I'm having some trouble figuring out how to use the world or player methods given in the adventure map interface. Can anyone walk me through it?

EDIT: It would appear that the peripheral for the adventure interface doesn't have the world or player methods so can anyone tell me how to call the methods properly or are they just not updated or something?