Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: shvarz on April 26, 2005, 08:47:55 PM

Title: gene does not work
Post by: shvarz on April 26, 2005, 08:47:55 PM
How come the following gene does not work in my Alga grexa?

Code: [Select]
cond
  *.robage
  4
  <
start
  1000
  .strbody
  store
stop


it shows up fine in DNA console, it is shown as executed, but nothing happens - body remains the same, energy is not spent....
Title: gene does not work
Post by: Numsgil on April 26, 2005, 08:51:52 PM
There's a cap on strbody.  That might be it...
Title: gene does not work
Post by: shvarz on April 26, 2005, 08:56:25 PM
Why would it be so low?  The cap on .fdbody is 100, which allows making 1000 energy.  The cap on .strbody should then be around 1000 to allow making 100 of body.  I went as low as 500 and it still does not work.
Title: gene does not work
Post by: PurpleYouko on April 26, 2005, 09:14:13 PM
The cap on strbody is 100, same as fdbody.

Actually both of these transfer 100 energy. strbody converts 100 energy to 10 body and .fdbody converts 10 body to 100 energy

Your gene should work though as the cap just reduces any value higher than the limit so 1000 .strbody store should be the same thing as 100 .strbody store.

On the face of it I don't see anything wrong with your gene. Try it with 100 and see what happens.
Title: gene does not work
Post by: shvarz on April 26, 2005, 09:19:20 PM
Oh, OK.  So the values always refer to the energy thruput...
I did not really care about the 100 energy disappearing, that's why I did not notice it.  If it works this way, then I don't really need it.  I was trying to bring the Grexa up to 5000 body faster.  Just one more reason to allow starting body points to be set by user.