Jump to content




Bee Breeding With Attributes (Credit To Direwolf20 For Idea)

turtle

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

#1 McLeopold

  • Members
  • 123 posts

Posted 19 July 2013 - 07:45 PM

NEW VERSION! \o/

Head over to Bee Breeding with OpenPeripherals to check it out!

Installation

Download the installer first with:
pastebin get 2jKRTN8y bee-install
Then run the installer with:
bee-install


github: https://github.com/Forte40/bee

Bee Breeding with Attributes

Posted Image

Use Direwolf20's setup (http://www.youtube.com/watch?v=cqDehqzUwOI) of an Turtle facing an apiary, with a Bee Analyzer (MiscPeripherals) on the left, and an Analyzer behind and a chest below. This code will take a princess and 1 or more drones and breed them up the line to the best species. You'll need liquid honey piped to the analyzer and chocolate (or oblivion) frames speed up the process a lot.

The expensive parts are 2 diamonds for the beealyzers (4 diamonds and an eye of ender for the interactive sorter no longer needed as of MC1.5.2!).

The turtle will continue to breed until it has produced purebred bees.

The additions are that it will choose bees with the best attributes as well, so you can inject a rocky drone into the system for the tolerances and you will end up with those good attributes in the next generations.

The program can also be told to stick to a list of species, so that you can control which mutations you want.

http://pastebin.com/2jKRTN8y (FTB Unleashed / MC 1.5.2)

I've been able to place in a forest princess with a meadows drone, walk away and come back to a purebred Imperial. I've also been able to place Industrious and Imperial princesses without any tolerances into the system with rocky drones, walk away, and come back to purebreds with perfect features.

Sample Run

In the second table, you can see the turtle choose a common over a cultivated because it provides a chance to breed to a diligent or nobel, otherwise you might get stuck with purebred cultivated bees.

Spoiler

This version uses the older scoring system and will not be updated or maintained:
http://pastebin.com/dEdTNP64 (FTB Ultimate / MC 1.4.7)

UPDATE 4.3:

Improved the scoring system a bit. The link is now an installer that you need to run to get the bee program from github. You can use it to get updates.

UPDATE 4.2:

This is a complete rewrite for the better. I've changed simple scoring of species names to a graph of what combinations produce which bees. Magic Bees is included with the newer changes to Forestry and Extra Bees as well. The turtle can now make smarter decisions about which bees to choose. It will now keep 6 extra drones in it's inventory to make sure good drones stay in the system. It will choose the best combination of princess and drone by score possible outcomes. (This means not getting stuck and purebred cultivated by losing the common trait needed to advance.)

UPDATE 4.1:

Spoiler

Edited by McLeopold, 25 March 2014 - 08:19 AM.


#2 McLeopold

  • Members
  • 123 posts

Posted 25 July 2013 - 07:11 PM

Here is a sample run of starting with a meadows and forest bee and breeding up to cultivated. It's able to pick the faster producers and keep the flying attribute in the mix. This is the output displayed by the turtle:

Spoiler


#3 xInDiGo

  • Members
  • 105 posts

Posted 28 July 2013 - 06:03 PM

could you explain this a little more? or maybe a link to the setup you're talking about. direwolf20 seems to have lots of content

#4 NuBSMcGee

  • Members
  • 12 posts

Posted 29 July 2013 - 02:14 AM

Found the video where Direwolf20 sets it up.

https://www.youtube....h?v=cqDehqzUwOI

@ 20:00

#5 MrBlackCreep

  • New Members
  • 1 posts

Posted 29 July 2013 - 04:48 AM

Hey,
I currently have the problem that after the bees die off and were analyzed they dont get sucked back into the turtle. The turtle just sits there with an empty table.

EDIT: Apperently suckSneaky is the problem. I tried to pull bees out of the analyzer in lua with all possible sides. Everytime it returns false.

#6 dzdz

  • New Members
  • 1 posts

Posted 30 July 2013 - 04:28 AM

i even get an attempt to call nill in line 638

#7 xInDiGo

  • Members
  • 105 posts

Posted 30 July 2013 - 01:06 PM

i was able to get this working using a wireless inventory turtle, and the setup direwolf used in the link above.

#8 McLeopold

  • Members
  • 123 posts

Posted 30 July 2013 - 04:20 PM

View PostMrBlackCreep, on 29 July 2013 - 04:48 AM, said:

Hey,
I currently have the problem that after the bees die off and were analyzed they dont get sucked back into the turtle. The turtle just sits there with an empty table.

EDIT: Apperently suckSneaky is the problem. I tried to pull bees out of the analyzer in lua with all possible sides. Everytime it returns false.

The turtle needs to have the inventory module from misc peripherals added to it. That way it can pull from the analyzer as if it was pulling from the bottom. If you don't add the module, then the turtle would need to move below the analyzer and you'd have to provide it fuel to run constantly.

#9 McLeopold

  • Members
  • 123 posts

Posted 30 July 2013 - 04:22 PM

View Postdzdz, on 30 July 2013 - 04:28 AM, said:

i even get an attempt to call nill in line 638

This is also a lack of the inventory module being added.

#10 Horriblefate

  • Members
  • 11 posts

Posted 31 July 2013 - 11:13 AM

When using this program for some reason it stops randomly with purebred bees

example of my most recent attempt

B2 (name of the program) industrious

if then says that it's "Targeting Industrious Species" but it eventually spat out two meadows bees saying they're purebred and then stopped working


am i using this incorrectly?

#11 McLeopold

  • Members
  • 123 posts

Posted 31 July 2013 - 11:51 PM

View PostHorriblefate, on 31 July 2013 - 11:13 AM, said:

When using this program for some reason it stops randomly with purebred bees

example of my most recent attempt

B2 (name of the program) industrious

if then says that it's "Targeting Industrious Species" but it eventually spat out two meadows bees saying they're purebred and then stopped working


am i using this incorrectly?

Yes, you are using it wrong, assuming you didn't start with an industrious or the combination to produce them (Unweary princess, Diligent drone)

If you have purebred bees, you have a drone and princess with the same attributes. No amount of breeding will produce a new species, so the program will stop to prevent wasting all that liquid honey.

If you target a species, such as industrious, it will score only industrious bees and every other bee type will be scored as a zero. (Attribute tie-breaks will still be active.) It doesn't score the bees previous in the line. (Maybe this is a feature I could add?) So you can't just throw in a forest and meadows and target industrious. Targeting is more for making sure you keep a species and don't loose it. For instance if you wanted to breed perfect cultivated bees by tossing in a good rocky or common, but wanted to drop out any noble or diligent drones that got created.

To get industrious, put in a forest and meadows and just let it run its course without targeting.

#12 xInDiGo

  • Members
  • 105 posts

Posted 01 August 2013 - 04:50 PM

any chance we can get this updated for FTB unleashed? There are tons of new bees with the new modpack.

#13 Horriblefate

  • Members
  • 11 posts

Posted 01 August 2013 - 08:27 PM

View PostMcLeopold, on 31 July 2013 - 11:51 PM, said:

View PostHorriblefate, on 31 July 2013 - 11:13 AM, said:

When using this program for some reason it stops randomly with purebred bees

example of my most recent attempt

B2 (name of the program) industrious

if then says that it's "Targeting Industrious Species" but it eventually spat out two meadows bees saying they're purebred and then stopped working


am i using this incorrectly?

Yes, you are using it wrong, assuming you didn't start with an industrious or the combination to produce them (Unweary princess, Diligent drone)

If you have purebred bees, you have a drone and princess with the same attributes. No amount of breeding will produce a new species, so the program will stop to prevent wasting all that liquid honey.

If you target a species, such as industrious, it will score only industrious bees and every other bee type will be scored as a zero. (Attribute tie-breaks will still be active.) It doesn't score the bees previous in the line. (Maybe this is a feature I could add?) So you can't just throw in a forest and meadows and target industrious. Targeting is more for making sure you keep a species and don't loose it. For instance if you wanted to breed perfect cultivated bees by tossing in a good rocky or common, but wanted to drop out any noble or diligent drones that got created.

To get industrious, put in a forest and meadows and just let it run its course without targeting.

That'd be really cool to have.. a turtle that auto makes/breeds stuff up to a designated species, i'd totally use it

#14 xInDiGo

  • Members
  • 105 posts

Posted 02 August 2013 - 06:00 PM

i can't seem to get this working with FTB Unleashed. dog gamnit!

tried it with plain forest and meadows and after it puts the bees in the analyzer it just hangs there.

#15 Kamefrede

  • Members
  • 30 posts
  • LocationPortugal,porto

Posted 03 August 2013 - 08:00 AM

Hm might try it in the near future seems like a good program, just for curiosity ppl seem to cant get it working so does it works on 1.5 packs or only in 1.4.7 packs?

#16 lifewcody

  • Members
  • 143 posts
  • Locationstill looking....

Posted 03 August 2013 - 10:36 AM

I LOVE IT GREAT IDEA!!!!

#17 McLeopold

  • Members
  • 123 posts

Posted 03 August 2013 - 10:29 PM

View PostKamefrede, on 03 August 2013 - 08:00 AM, said:

Hm might try it in the near future seems like a good program, just for curiosity ppl seem to cant get it working so does it works on 1.5 packs or only in 1.4.7 packs?

Yes, it was broken in the new packs. There is an updated link in the original post. http://pastebin.com/2jKRTN8y

#18 xInDiGo

  • Members
  • 105 posts

Posted 05 August 2013 - 02:30 PM

i'm super excited to for this program! :) when do you think you might get the magic bees added in?

also, i think this program might take off a bit more if you repost it in the turtle programs sub section!

#19 McLeopold

  • Members
  • 123 posts

Posted 07 August 2013 - 10:21 PM

View PostxInDiGo, on 05 August 2013 - 02:30 PM, said:

i'm super excited to for this program! :) when do you think you might get the magic bees added in?

also, i think this program might take off a bit more if you repost it in the turtle programs sub section!

Magic Bees is in. Also, a new super awesome scoring system to prevent stagnating at a level and the ability to keep extra drones in the system for more breeding combos. Targeting has changed as well, it will work like you think it should. If you target Industrious, it will include all the bees the lead up the that species.

#20 Horriblefate

  • Members
  • 11 posts

Posted 08 August 2013 - 11:04 AM

This is exciting! i can't wait to play with it some more!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users