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.
Bee Analyzer program help
Started by totalLoss, Feb 12 2013 03:46 PM
6 replies to this topic
#1
Posted 12 February 2013 - 03:46 PM
#2
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
Posted 13 February 2013 - 06:03 AM
m = peripheral.wrap("below")
isnt it "bottom"?
also which line exactly is causing the crash?
isnt it "bottom"?
also which line exactly is causing the crash?
#4
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
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
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
I cant figure out how to read that in beaded table but i got it a little further with this code
Spoiler
#7
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











