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

wbrown2wmb

Members
  • Content Count

    8
  • Joined

  • Last visited

  1. Here's my problem. I create a robot. I edit autorun.lua in the robot so I can find the file in the robot root directory. I edit the file in Notepad++ and add lines. When I edit the file in the robot again the file is what I created on the robot not the file I saved in Notepad. Where is or why can't the robot see the changes to the file? Is there a different location I should be looking? I'm looking in C:\...\AppData\Roaming\.minecraft\saves\Dad's World 2\opencomputers\0515163a-37ea-49f2-a692-d8801536949dwhich is the robot root directory.
  2. ok, thanks. Have to learn the syntax. Found out some of my mistakes are because I don't know the commands yet. Founs a turtle progam that I think I can convert to work in the robot. Anybody have code to check the contents of a chest. I have had no luck finding an example.
  3. Thank you, but it does not explain why I get the same error on local component = require("component") on required. I want to test the commands to see what they do before I code them.
  4. I am trying to set up robots to craft fireworks and am having a problem. Each robot will only respond to up down forward and back. any other command in lua throws and error, even exit. I get it on required, component and everything else. stdin:1: attempt to call field 'turnleft' (a nil value) stack traceback kernel:137: in function turnleft stdin:1: in main chunk [c]: in function 'xpcall' /bin/lua.lua:62 in min chunk (..tail calls..) What am I am missing? I found the robot.lua and placed it in the bin folder for each robot but it didn't help. What I want to do is take all the items fr
  5. Thank you. Built my robot and was testing the commands and I've run into a problem. My robot will not recognize robot.turnleft() or other commands except forward, back, up and down. I get this error: stdin:1: attempt to call field 'turnleft' (a nil value) stack traceback kernel:137: in function turnleft stdin:1: in main chunk [c]: in function 'xpcall' /bin/lua.lua:62 in min chunk (..tail calls..) I have no clue as to what is causing the error.
  6. I already have done all that. I have all the API code save in a word document. I read the wiki and it gives all the BASIC commands. I can make the robot go up, down and sideways. I build databases and web apps for a living. I'm just not familiar with the lua language and was asking for guidance. Nowhere have I seen any code on how to make the robot actually craft anything other than in the crafting API.
  7. What i'm attempting to do i use the robot to craft fireworks. I want it to take items from a chest, craft the stars then craft the rocket and put it in a different chest. I have no clue as where to start. I program in VB mostly so lua is a new beast for me. Any help with sample code would be appreciated as my searches didn't return much on using the crafting upgrade. Also is it possible to write the code on a computer and send it wirelessly to the robot? I crafted robot and computer with wireless cards but still need to make them communicate. Thanks.
×
×
  • Create New...

Important Information

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