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

PHOBOSS98

Members
  • Content Count

    30
  • Joined

  • Last visited

Everything posted by PHOBOSS98

  1. 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
  2. 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
  3. 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...
  4. 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...
  5. 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
  6. oh wait... why did I post this on the programming thread?... hold on
  7. I used sangars drone control scheme and tried sending it "computer.shutdown" but I wouldn't be here if it did work XD
  8. 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)
  9. 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
  10. 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
  11. 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
  12. doh, Im so dumb, thanks m8s been a great help XD
  13. yeah... I want it to keep printing hello repeatedly until I tell it to stop without having to reboot
  14. but still the problem stands the code still doesn't work with bots
  15. 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 =
  16. I slipped in a 'print("hello") in the loop... sorry m8 it didn't budge for me. It just ended the program.
  17. 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
  18. oh right... still doesn't work it just keeps going
  19. 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...
  20. 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
  21. 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
  22. 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
×
×
  • Create New...

Important Information

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