Skip to content

Instantly share code, notes, and snippets.

@MEXAHOTABOP
Created July 17, 2018 20:57
Show Gist options
  • Save MEXAHOTABOP/378721123f4d4646b5f991f1456e7ad9 to your computer and use it in GitHub Desktop.
Save MEXAHOTABOP/378721123f4d4646b5f991f1456e7ad9 to your computer and use it in GitHub Desktop.
local scan = require("scan")
local comp = require("component")
local serialization = require("serialization")
local tun = comp.tunnel
function main()
local scan_array = scan.scan(-8,-8,-8,16,16,16,3,2.5,3.5,false)
local prepared_array = serialization.serialize(scan_array)
if #prepared_array > tun.maxPacketSize() then
print("#prepared_array > tun.maxPacketSize() NIY")
os.exit()
end
tun.send("ore_scan",prepared_array)
comp.computer.beep()
end
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment