Jump to content




Bee Analyzer program help


  • You cannot reply to this topic
6 replies to this topic

#1 totalLoss

  • New Members
  • 1 posts

Posted 12 February 2013 - 03:46 PM

Title: Bee Analyzer program help

I keep getting an error when running the program Analyze:
bios:338: [string "analyze"]:4 '=' or 'in' expected

I have a bee analyzer under the Advanced CPU
Here is the analyze program:

m = peripheral.wrap("below")
if m.isBee() then
data = m.analyze()
for i.j in pairs(data) do
print(i .. ":" .. j)
end
else
print("Empty or not a bee?")
end


Any help to what I have done wrong would be a huge help.
Thanks for everyones interst.

#2 OmegaVest

  • Members
  • 436 posts

Posted 13 February 2013 - 05:00 AM

I think you have a problem because you use a period instead of a comma in your for loop. I'm not sure, and my instance is weirding out, so I can't check this right now, but try it and see.

#3 ikke009

  • Members
  • 224 posts
  • LocationSliding between sunbeams

Posted 13 February 2013 - 06:03 AM

m = peripheral.wrap("below")
isnt it "bottom"?
also which line exactly is causing the crash?

#4 soccer16x

  • Members
  • 58 posts

Posted 13 February 2013 - 11:08 AM

Yeah it should be a comma not a period like what is in there currently on line 4 and I'm pretty sure that it should be bottom not below, But since you didn't get that error it might for some reason work as below?

#5 ChunLing

  • Members
  • 2,027 posts

Posted 13 February 2013 - 12:43 PM

No, it's just not erroring on the loadstring. When the program actually is run that will at least result in m not containing the desired peripheral methods (it may error on the pcall).

#6 detsuo04

  • Members
  • 35 posts

Posted 07 June 2013 - 10:04 AM

i noticed that part of the table returns a Boolean value and another part returns another table.

I cant figure out how to read that in beaded table but i got it a little further with this code

Spoiler


#7 Almerish

  • Members
  • 9 posts

Posted 01 July 2013 - 06:24 AM

Using this code i was able to view all of the information that the bee analyzer gives the computer. I changed the way how the 2nd table is shown to more accommodate how it is shown in forestry's beealyzer. Also the program will not work if the bee isn't already analyzed.

Spoiler






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users