- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
30 -
Joined
-
Last visited
Everything posted by PHOBOSS98
-
So... I'm back...you know radars are expensive... that makes radar upgrades for each drone more expensive...which defeats the purpose of having a dispensable army. This is my attempt at fixing this issue: Instead of having each of your drone fly around with equipment worth half of the US military budget, why not have a single radar and a computer to tell the swarm where to buzz around?. Here's the new stuff that you need: a Waypoint block named "yeet" -- or something else if you want, just don't forget to change it in the code Radar block --from computronics a computer
-
ok buddy Im back about the lightcolors thing I finally had time too look into it and found what might be the problem: let me know if it works Le BRAIN.lua (this goes in the drone) local m=component.proxy(component.list("modem")()) local d=component.proxy(component.list("drone")()) d.setLightColor(0x00FFE8) -- the first character 's' of the method should have been in lower case d.setStatusText(d.name()) -- same here... my bad m.open(2412) m.setWakeMes
-
yeah about that... I might have forgotten to document the version I used for this... I haven't even checked if my code even works on the latest version... its going to take me a while to sort this out actually... so you might want to start tweaking the code a bit while I can't...
-
Hi, sorry for the late reply, are you using your own code or my code above. it would really help if you could show us the part code you edited...
-
Hi, are you tired of your mundane minions? do you have a s@$# ton of drones and have no idea what to do with them? are you tired of havi- you know what here's the code for your Drone Army (I don't know what else to say to convince you that this is a program worth playing with): Le client.lua (this goes in your tablet): local component = require("component") local event = require("event") local serialization= require("serialization") local computer= require("computer") local modem = component.modem modem.open(2412
-
How many tnt blocks does it take to kill a drone?
PHOBOSS98 replied to PHOBOSS98's question in Programming
oh wait... why did I post this on the programming thread?... hold on -
How many tnt blocks does it take to kill a drone?
PHOBOSS98 replied to PHOBOSS98's question in Programming
no for real tho can it be killed? -
I used sangars drone control scheme and tried sending it "computer.shutdown" but I wouldn't be here if it did work XD
-
cause I know four isn't enough...
-
Good news I solved it somehow... I put the table sorting line in a function OUTSIDE of the while loop and call it using 'event.listen' (I got it from event.lua)
-
well thats odd... apparently the drone tries to broadcast twice, I tweaked the code a small bit: local computer=require("computer") local component=require("component") local d= component.proxy(component.list("drone")()) local m= component.proxy(component.list("modem")()) local r= component.proxy(component.list("radar")()) m.open(1) while true do local_,_,_,_,_,rtable,mov,x,y,z = computer.pullSignal() if mov=="follow" then for k, v in pairs(r.getEntities()) do m.broadcast(1,"rreeeee") - - #Le tweak end end end
-
what, do I just smack the drone with it?: I don' think that the radar would give out a nil value I tried broadcasting the 'v' entries from the drone with this code: local d= component.proxy(component.list("drone")()) local m= component.proxy(component.list("modem")()) local r= component.proxy(component.list("radar")()) m.open(1) while true do local_,_,_,_,_,rtable,mov,x,y,z = computer.pullSignal() if mov=="follow" then for k, v in pairs(r.getEntities()) do m.broadcast(1,v.name,v.distance,v.x,v.y,v.z) end
-
so for context I tested this code on some bots: local component = require("component") local event = require("event") local robot = require("robot") component.modem.open(1) local function b(_,_,_,_,_,mov) if mov=="follow" then for k,v in pairs(component.radar.getEntities()) do if v.name=="PHOBOSS" then if v.y<-1 then for i=0,v.y,-1 do robot.down() end end if v.y>-1 then for i=0,v.y, 1 do robot.up() end
-
doh, Im so dumb, thanks m8s been a great help XD
-
yeah... I want it to keep printing hello repeatedly until I tell it to stop without having to reboot
-
but still the problem stands the code still doesn't work with bots
-
I do need a loop that can stop by a modem event.. but you see when I tried the code you sent me (with a few changes): local component = require("component") local event = require("event") local m = component.modem m.open(1) repeat print("hello") --#the thing local cmd = select(6, event.pull("modem_message")) until cmd == "stop" it did end the program when I sent it the message but it doesn't print it repeatedly it just does this: and so I tried and tested something and changed the code: local component = require("component") local event = require("event") local m =
-
I slipped in a 'print("hello") in the loop... sorry m8 it didn't budge for me. It just ended the program.
-
oh yeah I talked to the devs about some bugs in the radar aparently they already fixed it in their latest version. You must be using version 1.6.5 for 1.12.1. Here's a link to the 1.6.6 version for 1.12.2: https://files.vexatos.com/?dir=Computronics/dev
-
oh right... still doesn't work it just keeps going
-
local component=require("component") for k,v in pairs(component.radar.getEntities()) do if v.name=="PHOBOSS" --entity name then print (k,v.x,v.y,v.z) -- coordinates end end no errors when used on a computer but on a robot...
-
I have this code It works on a computer: for k,v in pairs(component.radar.getEntities()) do if v.name=="PHOBOSS" --entity name then print (k,v.x,v.y,v.z) -- coordinates end end but it screws up in my bot: stack traceback: machine:756: in function '__index ' ... is this suppose to be normal? is this also a thing for drones? if it is a way around this would be greatly appreciated (note: I used the lua program in running this and the radar component comes from
-
can't seem to make this work: local component=require("component") local event=require("event") m=component.modem m.open(001) local _,_,_,_,_,cmd=event.pull("modem") repeat print("hello") until cmd== stop ...help is very much appreciated
-
What's the best way tell a drone to pause in a sequence of movements?
PHOBOSS98 replied to PHOBOSS98's question in Programming
thanks -
Do radars from computronics have blind spots?
PHOBOSS98 replied to PHOBOSS98's question in Programming
I just talked to the developer... its a bug... but its fixed now, heres a link to the 1.6.6 version https://files.vexatos.com/?dir=Computronics/dev if anyone else is finding this