Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GERTi = require("GERTiClient")
- local socket = GERTi.openSocket(0.3, true, 1)
- --incoming end Loading computer
- serTable = socket:read()
- table = serialize.unserialize(serTable)
- print(table)
- --i need to make the incoming data the new verbales
- --table["amount"] =="256000" and table["type"] == "Sewage"
- --^^^^example
- local function cartRelease()
- myTable = loaderInfo.getFluidInTank(sides.down)
- rs.setBundledOutput(sides.east, colors.blue, 253)
- os.sleep(1)
- rs.setBundledOutput(sides.east, colors.blue, 0)
- rs.setBundledOutput(sides.east, colors.blue, 253)
- os.sleep(1)
- rs.setBundledOutput(sides.east, colors.blue, 0)
- -- Changed loaderInfo.getFluidInTank to transposers[fluid]
- print(myTable[1]["amount"],"cartRelease")
- end
- local function loaderCheck()
- myTable = loaderInfo.getFluidInTank(sides.down)
- --myTable = transposers[fluid].getFluidInTank(sides.south)
- while myTable[1]["amount"] > 0 do
- print(myTable[1]["amount"],"loaderCheck1")
- cartRelease()
- os.sleep(70)
- end
- end
- local function getRemainder()
- if myTable[1]["amount"] <= 32000 then
- print(myTable[1]["amount"],"getRemainder")
- end
- end
- -- Changing MilkTrans to fluid
- transposers[fluid].transferFluid(sides.north, sides.south, order)
- os.sleep(5)
- --cartRelease()
- loaderCheck()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement