TwoThe 4 Posted August 28, 2014 Share Posted August 28, 2014 Because either I am completely missing something or it is heavily outdated. Just started with OpenComputers and it took me a while to figure out why most of the documented functions just weren't working. Turned out the documentation is just plain wrong. Example: Wiki: robot.forward()Actually: robot.move(sides.forward)I don't mind the code update, but without a proper documentation there is hardly anyone going to use this mod. Quote Link to post Share on other sites
Sangar 92 Posted August 28, 2014 Share Posted August 28, 2014 Take care not to mix up the robot component with the robot library. What's documented on the wiki is the library, which is used like `robot.forward()`. It only wraps the component to make it nicer to work with. You can always also do `component.robot.move(sides.forward)`, if you really want to (or it makes some code easier to generify). Quote Link to post Share on other sites
TwoThe 4 Posted August 30, 2014 Author Share Posted August 30, 2014 This is very confusing... so there is a robot API and a robot API, both do the same, but they are different? Have I mentioned that the documentation could use some clarification? Quote Link to post Share on other sites
ingie 6 Posted September 9, 2014 Share Posted September 9, 2014 Hi, I logged into the wiki to clarify sangar's point - as the robot api page pre-amble is a little out of date, or perhaps unclear, but I don't seem to be able to edit that page :/ any reason why Sangar ? Quote Link to post Share on other sites
TwoThe 4 Posted September 9, 2014 Author Share Posted September 9, 2014 Wiki can now be edited again! =) Quote Link to post Share on other sites
ingie 6 Posted September 9, 2014 Share Posted September 9, 2014 ... i was being a derp anyway, i was looking for the edit button which was on some of the pages, hadn't seen the pull-down option for it Quote Link to post Share on other sites
ingie 6 Posted September 9, 2014 Share Posted September 9, 2014 i've updated that page, TwoThe http://ocdoc.cil.li/api:robot i've added a paragraph at the top which goes some way to describing the difference... it's perhaps not as clear as it could be, but to make it any clearer it really would need a whole new page adding in the components section for the robot's lower level component api and linking to that instead... but that seems like overkill - and hopefully the way i've described the differences for the few cases i've detailed explains the other cases one might encounter. Quote Link to post Share on other sites