Jump to content




Bee Breeding With Attributes (Credit To Direwolf20 For Idea)

turtle

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

#81 McLeopold

  • Members
  • 123 posts

Posted 12 December 2013 - 04:17 AM

Yeah, I've seen that too. It should only happen if the industrious-unweary has some other attribute, like flyer, that the pure one doesn't.

#82 apemanzilla

  • Members
  • 1,421 posts

Posted 12 December 2013 - 08:11 AM

View PostMcLeopold, on 12 December 2013 - 04:17 AM, said:

Yeah, I've seen that too. It should only happen if the industrious-unweary has some other attribute, like flyer, that the pure one doesn't.
Maybe you could add an option where you run "bee Industrious species-only" or something like that, which causes it to only breed for the species and not the traits.

#83 Landstryder

  • Members
  • 31 posts

Posted 13 December 2013 - 08:35 PM

I'm using the new openperipheral only version and I'm having an odd problem with this program, It worked fine in my custom 1.6.4 mod pack but I just migrated to Direwolf20's new mod pack for 1.6.4 that has almost all the mods I used (and many more I wanted to add but could not get working), except for Extra Bees/Trees and SGCraft which I added to the pack on my server and client.

I am getting an error when it attempts to analyze the bees.

bee:593: attempt to index ? (a nil value)

	  -- Active values
	  for key, value in pairs (tableData.beeInfo.active) do  -- this line is the problem
		if key == "species" then
		  beeData["speciesPrimary"] = value
		else
		  beeData[key] = value
		end
	  end

Can anyone let me know how to fix this? other than switching mod packs again.

I'm guessing that some mod in DW20's pack is ether behind or ahead of the mods I had loaded before. I was using all the most up to date versions I could find, most were listed as alpha, beta or development and the server was a bit unstable. So I really want to stick with DW20s pack because it is a lot more stable.

Any suggestions are greatly appreciated.

Edited by Landstryder, 13 December 2013 - 08:36 PM.


#84 Eiktyrner

  • Members
  • 9 posts

Posted 15 December 2013 - 10:04 AM

It's a different version of OpenPeripheral.

The returned value from local tableData = beealyzer.getStackInSlot(9) isn't the same. In the DW20 version it doesn't return beeInfo which is the most important table.

If I had more time I would dig around in the code and see what they have done. But at this point there is no fix for this from my side at least.

#85 Landstryder

  • Members
  • 31 posts

Posted 16 December 2013 - 08:32 AM

I poked around at it for a while and discovered that DW20's pack is using a very out of date version of OpenPeripheral. So I replaced the mod on my server and changed the one in the client to snapshot 107 and now it's all back to working.

thanks for the reply!

#86 torli

  • New Members
  • 1 posts

Posted 17 December 2013 - 05:47 PM

Hey there, I've tried to get this running but get the same error as Landstryder (bee:593: attempt to index ? (a nil value)). I'm using OpenPeripheral-0.2.1-preview8.jar, which one should I be using instead exactly and where can I download it? Thanks in advance.

Nvm, after a little search I came across the download page for the most recent OpenPeripheral snaphots (http://www.openmods....OpenPeripheral/). Seems to be working now. :)

#87 walkerboh

  • New Members
  • 2 posts

Posted 21 December 2013 - 06:12 PM

[RESOLVED]
Hello.
So I'm hoping someone can just tell me that I am being stupid, because I am really hoping to get this working. I have my setup done as told, shown in screenshot below. There are princesses and drones in the chest below (also tried a Diamond Chest from IronChests, I assume those should work fine as well). When I run 'bee common' the program starts but doesn't say its targeting any species and when it says analyzing bees it doesn't seem to find any bees from the chest as none show up in the analyzers. Am I just setting anything up wrong? Thanks in advance!

Posted Image

EDIT: Ok, so I realized I needed to start with the bees in the turtle. Still not sure if I am calling the program correctly as I still can't get it to say its targeting any specific type.

EDIT x2: Ok so we can chalk up all my problems to me being stupid. Wasn't capitalizing properly. But I am now getting this error : "bee:615: attempt to index ? (a nil value)". Any ideas?

Last edit: We can chalk up all my issues to me just being stupid. All working now. Thanks for the cool program.

Edited by walkerboh, 28 December 2013 - 10:16 AM.


#88 lsutigers527

  • New Members
  • 1 posts

Posted 28 December 2013 - 11:36 AM

When running it in 1.6.4 on the DW20 pack I get
"bee:615: attempt to index ? (a nil value)"
Any ideas on how to fix this?

#89 XiledSniper

  • Members
  • 6 posts

Posted 03 January 2014 - 11:55 PM

Just curious, especially given the above post. Is this ported to the DW1.6.4 or? (Can it use open peripheral, or does it use misc?)

#90 Eiktyrner

  • Members
  • 9 posts

Posted 04 January 2014 - 02:59 PM

I'm not sure if the DW20 pack is updated with a newer version of OpenPeripheral. If that is the case it should work fine, otherwise you get the attempt to index null since it doesn't return the bee specific information.

Easy way to test is to run the "beealyzer.getStackInSlot(9)" command and see if it returns the beeInfo table.

#91 walkerboh

  • New Members
  • 2 posts

Posted 04 January 2014 - 11:09 PM

View Postlsutigers527, on 28 December 2013 - 11:36 AM, said:

When running it in 1.6.4 on the DW20 pack I get
"bee:615: attempt to index ? (a nil value)"
Any ideas on how to fix this?

I had this problem and it was because I was putting multiple queens in the turtle. Make sure you are only using one.

#92 XiledSniper

  • Members
  • 6 posts

Posted 06 January 2014 - 04:24 PM

View PostEiktyrner, on 04 January 2014 - 02:59 PM, said:

I'm not sure if the DW20 pack is updated with a newer version of OpenPeripheral. If that is the case it should work fine, otherwise you get the attempt to index null since it doesn't return the bee specific information.

Easy way to test is to run the "beealyzer.getStackInSlot(9)" command and see if it returns the beeInfo table.

What version is required for the script?

#93 yinduyun

  • Members
  • 5 posts

Posted 11 January 2014 - 05:13 PM

I've just checked the files, current Direwolf20 pack uses OpenPeripherals 0.2.1-preview8
I have tried to run the program, and also got a nil value error message on line 599. Since I am very VERY inexperienced with computercraft, could someone please help me with the commands I'd need to get any kind of readout from the table?

edit: tinkered a bit, wrapped the analyzer as a, serialized the response of getStackInSlot(9) with an analyzed bee in there and here's the output:

Posted Image

So, no beeInfo. What can be done?

Edited by yinduyun, 13 January 2014 - 07:16 PM.


#94 Bentenmaru

  • Members
  • 3 posts

Posted 15 January 2014 - 06:40 AM

View Postyinduyun, on 11 January 2014 - 05:13 PM, said:

I've just checked the files, current Direwolf20 pack uses OpenPeripherals 0.2.1-preview8 I have tried to run the program, and also got a nil value error message on line 599. Since I am very VERY inexperienced with computercraft, could someone please help me with the commands I'd need to get any kind of readout from the table? edit: tinkered a bit, wrapped the analyzer as a, serialized the response of getStackInSlot(9) with an analyzed bee in there and here's the output: Posted Image So, no beeInfo. What can be done?

tried updating OpenPeriphearals? I tried it and apparently the program that tried with at https://github.com/eiktyrner/bee worked after updating OP

#95 Keunic

  • New Members
  • 1 posts

Posted 17 January 2014 - 03:52 PM

I am getting the same error as Yinduyun and as far as I am aware I am using the most updated version of OP - OpenPeripherals 0.2.1-preview8.

bee:599: attempt to index ? (a nil value)

Does anyone know to fix this issue?

#96 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 17 January 2014 - 03:55 PM

Update. I don't believe that that is the latest version.

#97 Eiktyrner

  • Members
  • 9 posts

Posted 18 January 2014 - 06:52 AM

I can confirm that OpenPeripheral-0.2.1-preview8 does NOT work. It was built with minimal mod support because not many mods were updated at that point.

I've been using dev snapshot #112 but it seems the jenkins server is down at the moment. It's usually found over here

So either build it from the source or grab this from dropbox

Note that this is a development build and there may be bugs in it, use at own risk...

PS I might improve the script further, any ideas on what to add? It would be nice to interface with ExtraBees or those other genetic machines...

Edited by Eiktyrner, 18 January 2014 - 06:57 AM.


#98 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 18 January 2014 - 07:46 AM

View PostEiktyrner, on 18 January 2014 - 06:52 AM, said:

I've been using dev snapshot #112 but it seems the jenkins server is down at the moment. It's usually found over here
The Jenkins server no longer contains OpenPeripheral, it contains our new format of OpenPeripheral-Core and OpenPeripheral-Addons as such our Jenkins server no longer contains a working version of 'OpenPeripheral'. Please make use of the link that was provided to the Build #112 that I've hosted on my Dropbox.

#99 troslim

  • Members
  • 8 posts

Posted 18 January 2014 - 12:29 PM

Maybe it's just me being stupid, but wondering what do when you have downloaded the code from github to the turtle. What do I need to do to start breeding?

Got it up and running now in my creative world, but when I try to use in my single player world it gets stuck at waiting for bees. It doesn't put the bees into the apiary. Any solutions for this?

#100 Eiktyrner

  • Members
  • 9 posts

Posted 19 January 2014 - 03:49 AM

Are you using Open or misc peripherals?

Can you describe step by step how you end up in the situation so I can repeat it?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users