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

Grenslickr

Members
  • Content Count

    2
  • Joined

  • Last visited

Posts posted by Grenslickr

  1. Hello, I am attempting to create a program which will mimic the functionality of a bucket by placing the equivalent amount of fluid into the world from the internal tank of the robot. However, I am having an issue when attempting to do this within the program when importing the Robot API.

    The functionality I am attempting to achieve is possible using the lua console.

    When I use the "robot.fill()" command within the lua interpreter and the robot is not facing a block it places the fluid into the world without issue. I have attempted to reproduce this functionality using a program on the disk of the robot which runs the same function:

    component = require("component")
    robot = component.proxy("967f2323-a467-47b4-aba0-f56eba593d6f")
    robot.fill(1000)

    When attempting to run this code with the component's functions imported, it presents the following error in relation to the use of the 'fill' command:

    invalid side:
    stack traceback:
    		[C]: in function 'error'
    		machine:986: in function <machine:983>
            (...tail calls...)
            /home/progs/oil:21: in main chunk
            (...tail calls...)
            [C]: in function 'xpcall'
            machine:751: in function 'xpcall'
            /lib/process.lua:84: in function </lib/process.lua:80>

    Please be aware that I am fairly new to using this mod (I have only started using this mod yesterday).

    Any insights you could provide to this issue would be helpful,

    Thanks in advance!

×
×
  • Create New...

Important Information

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