Bee Breeding With Attributes (Credit To Direwolf20 For Idea)
#21
Posted 09 August 2013 - 06:20 PM
analyzer.analyze() returns the table with some informations about the bee. A lot of stuff like "flyer", "range", "fertility" and much more is in there, but the species name is actually missing. Everything else is there. Because of this missing information sour script dies all the time.
Any idea what could be the problem?
#22
Posted 10 August 2013 - 05:57 AM
Im a big fan of this, so thanks for sharing. Would you be able to explain were we now enter the specific bee we are after in the coding. In the previous version, it was at the top of the code just under the programm info, however i cant seem to find anywere to enter it in the new program
#23
Posted 10 August 2013 - 11:23 AM
enLighteN, on 10 August 2013 - 05:57 AM, said:
Im a big fan of this, so thanks for sharing. Would you be able to explain were we now enter the specific bee we are after in the coding. In the previous version, it was at the top of the code just under the programm info, however i cant seem to find anywere to enter it in the new program
If you use the new installer , your program will be named "bee". Type in "bee Industrious Imperial" to target both of those species and all the species that come before. There is no need to modify the program. It will now list all the species that it is targeting if successful.
#24
Posted 10 August 2013 - 11:27 AM
tuxtux, on 09 August 2013 - 06:20 PM, said:
analyzer.analyze() returns the table with some informations about the bee. A lot of stuff like "flyer", "range", "fertility" and much more is in there, but the species name is actually missing. Everything else is there. Because of this missing information sour script dies all the time.
Any idea what could be the problem?
I haven't seen that before. Paste in you bee.log file. If that doesn't tell us I can add a debug feature.
Did the bee get analyzed properly. Is there enough liquid honey? Is it a species not in the table. Also post your version of MC, forestry, extra bees and magic bees.
#25
Posted 11 August 2013 - 08:01 AM
McLeopold, on 10 August 2013 - 11:27 AM, said:
tuxtux, on 09 August 2013 - 06:20 PM, said:
analyzer.analyze() returns the table with some informations about the bee. A lot of stuff like "flyer", "range", "fertility" and much more is in there, but the species name is actually missing. Everything else is there. Because of this missing information sour script dies all the time.
Any idea what could be the problem?
Did the bee get analyzed properly. Is there enough liquid honey? Is it a species not in the table. Also post your version of MC, forestry, extra bees and magic bees.
I'm quite sure that's a problem with the itself Analyzer, not within your script.
Ok, first the stuff you've asked for. Here you see how it behaves with a Common princess and a Diligent drone. Both are pure and analyzed, the Beealyzer shows all their properties.

There is no need to check the paste bin log. It only shows the first few lines you see here.
So i went a bit deeper and took this bee:

Put it in the Analyzer and tried to write some lua myself:

As you can see it get's all the properties of the bee, except for the species. This is why I believe there is some kind of strange problem with the Analyzer itself. Does the Analyzer (the one with one single slot for a single bee) maybe need any kind of power?
Thanks…
Btw. This is on FTB Unleashed v1.1.2 with gregtech and extrabiomesXL.
#26
Posted 11 August 2013 - 11:03 AM
Line 449 is where the program fixes incorrect species names and it got a nil instead os a string because there was no table entry.
Maybe it is due to how gregtech was added? There are gregtech bees and that code path may not be well tested? Try backing up your world and disabling it to see if it works.
#27
Posted 12 August 2013 - 04:09 AM
http://filesupload.f...12_11.04.39.png
~ Edit: got it myself i had 2 princess in the turtle
#28
Posted 12 August 2013 - 11:31 AM
HoneycakePlay, on 12 August 2013 - 04:09 AM, said:
http://filesupload.f...12_11.04.39.png
~ Edit: got it myself i had 2 princess in the turtle
I added an extra check to make sure the program doesn't stop if this occurs. I might add multiple princess support later. For now, it will just skip the second princess when sorting. It might ping-pong back and forth between the 2 princesses depending on the order bees are pulled out of the apiary.
#29
Posted 12 August 2013 - 03:28 PM
McLeopold, on 11 August 2013 - 11:03 AM, said:
Line 449 is where the program fixes incorrect species names and it got a nil instead os a string because there was no table entry.
Maybe it is due to how gregtech was added? There are gregtech bees and that code path may not be well tested? Try backing up your world and disabling it to see if it works.
Hmm… too bad. Playing on a server, so can't disable it. Thanks, I'll hope it's fixed with the next update ;-)
#30
Posted 14 August 2013 - 04:16 PM
#31
Posted 14 August 2013 - 05:09 PM
tuxtux, on 12 August 2013 - 03:28 PM, said:
McLeopold, on 11 August 2013 - 11:03 AM, said:
Line 449 is where the program fixes incorrect species names and it got a nil instead os a string because there was no table entry.
Maybe it is due to how gregtech was added? There are gregtech bees and that code path may not be well tested? Try backing up your world and disabling it to see if it works.
Hmm… too bad. Playing on a server, so can't disable it. Thanks, I'll hope it's fixed with the next update ;-)
I'm also having this issue, playing on Unleashed with GT installed. It works fine in single player, but not on the server I play on. The Bee Analyzer does not seem to return the species at all, or only one half of the genome, 90% of the time and I can't figure out why.
A couple people on my server suggested it might have something to do with MCPC. Not sure.
#32
Posted 17 August 2013 - 04:34 AM
I'm good at just about everything else in FTB, Applied enegistics, power armour, MFFS, computercraft, RedPower2, IC2, ThermalExpansion and everything else (except the new Mystcraft), yet I still don't understand bees or tree breeding!
#33
Posted 17 August 2013 - 04:24 PM
mitchfizz05, on 17 August 2013 - 04:34 AM, said:
I'm good at just about everything else in FTB, Applied enegistics, power armour, MFFS, computercraft, RedPower2, IC2, ThermalExpansion and everything else (except the new Mystcraft), yet I still don't understand bees or tree breeding!
"Don't understand" as in not good at breeding nor know how to do it well, or as in don't know why someone would bother because it seems useless?
I breed bees to make platinum to spin into iridium ( in ultimate ) and in unleashed I will do it to produce thaumcraft shards with magic bees. I am also going to breed them for their effects such as edenic ( free xp ) and others.
As for how to breed and doing it well, you now have my program to take care of the mundane work.
#34
Posted 19 August 2013 - 08:03 PM
This program looks great, and I'm really hoping it works out for me. I'm running the newest version of the unleashed pack (1.1.3, on MC 1.5.2), with biomes o plenty enabled. This is also in SMP. I have it all setup like in the pic in the first post. I install, then run bee with a forest princess and a meadows drone in the turtle. I get the following output:
Clearing system...
ditching product...
scanning bees...
analyzing bees...
Bee 1 not correctly analyzed
Bee 2 not correctly analyzed
Waiting for bees.......
At this point it hangs forever. The bees were properly scanned, and I can see their attributes now when I shift click. I believe the turtle found and used the bee analyzer, since it turns that direction and spits them out, then back in.
Any idea on how I can get this running?
EDIT: I've confirmed this works in single player on the same client. I believe this is also an MCPC+ server, someone above mentioned this might be a problem.
I checked with the server owner and he is using mcpc+ build 635. I tried this on my own server with both MCPC+ 635 and the newest one, 638, and it worked on both. Is there a debug mode where I can see what the problem is? Or is there a local log written somewhere?
I ran the lua from a post above that outputs the analyzer data, and got similar output to tuxtux, but using a forest bee. FYI gregtech is NOT installed on this server.

Thanks!
#35
Posted 21 August 2013 - 01:36 PM
I tried ssp and it worked beautifully, dont know why we are getting the not correctly analyzed message. Hope to see a fix soon
#36
Posted 21 August 2013 - 07:39 PM
nottah, on 21 August 2013 - 01:36 PM, said:
I tried ssp and it worked beautifully, dont know why we are getting the not correctly analyzed message. Hope to see a fix soon
Is it an MCPC+ server? That seems to be the common thread. If so try and ask for the bukkit mods that are installed to help us track down the incompatibility.
Unfortunately I can't do anything about the missing data. My code calls .analyze() and expects a proper table back with the correct values. I'm not sure if this is a MiscPeripherals bug or if the MCPC+ installation is corrupting it somehow.
I could allow the program to ignore the species data and just breed bees with good attributes. It would be up you to monitor any mutations that occur.
#37
Posted 21 August 2013 - 10:57 PM
Allowing to program to ignore the species as an option would be very helpful. But dont do any major rewrites on our behalf. The program does do what it says in the right enviroment.
Nottah
#38
Posted 22 August 2013 - 11:15 AM
by the way.....the program is great!
#40
Posted 26 August 2013 - 08:47 PM
I started to play with bees for the first time today. Took me hours too just get up to Imperial and Industrious with pure blood. Wow painful.
Shockingly enough I started searching for ways to automate it. Thank god for this thread. Really nice work. I went straight to a test world, did the set up, whipped out some nova frames and typed the following:
bees Industrious
All was going well. It was getting the mutations and pushing down the correct line. Until all of a sudden it had a pure drone and princess for industrious (Yes!). However, instead of exiting or breeding them it started breeding the pure princess with dirty mixed blood mongrel Dilligent and then Unweary's. I thought it must be some extra attributes that its trying to pull in, but it went on indefinitely.
I tweaked the code to reverse the score table, to make sure I could see the scorings of the princess and the drone (damn those tiny turtle screens). I noticed that the unpure Unweary-Industrious and Diligent-Industrious drones got the same score as the pure drones so I started looking at the Scoring Function.
First of all I noticed this :
score = max(bees[combo[1]].score, bees[combo[2]].score)
It didn't take into account if one of the combo's might not a targeted drone. So I changed it to :
local s1
if bees[combo[1]].targeted then
s1 = bees[combo[1]].score
else
s1 = 0
end
local s2
if bees[combo[2]].targeted then
s2 = bees[combo[2]].score
else
s2 = 0
end
score = max(s1, s2)
(Damn lua and its lack of a turnery operator.)
This wasn't the problem though. It seems that the code scores everything the same that has the potential to make a particular type of bee. So all the following have the same score :
Industrious - Industrious
Unweary - Industrious
Dilligent - Industrious
Unweary - Dilligent
...
There was nothing really modifying the score based around the probability of getting that particular type of drone. Maybe there should be a percentage taken off to give the pure drone higher ranking? I'm not sure.
I slapped in the below after the previous bit of code mentioned :
-- pure drone boost in score
if combo[1] == combo[2] then
score = score + 1
end
I reran from my test world and the rankings were adjusted and it started selecting the pure drones. I didn't re-run from the beginning to see how this would affect the full process. Thought I seek other peoples thoughts on a better solution.
Eventually I got the pure princess back and it started pairing with the pure drone. However it didn't exit as I suspected it should from looking at the code.
To get it to exit I had to change the following line :
if value ~= droneData[key] and key ~= "territory" and key ~= "type" then
to
if value ~= droneData[key] and key ~= "territory" and key ~= "type" and key ~= "slot" then
as the slot was always going to be different.
I'm guessing this program is usually run to target all bee's rather than just a particular one.
A pastebin of these changes are here: http://pastebin.com/WNBY7eHa
Thanks for all the hard work on this program and for sharing it
Dybukk
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











