Darwinbots Forum
Code center => Bugs and fixes => Topic started by: shvarz on February 04, 2008, 08:24:41 PM
-
Not sure if this is a bug, maybe it's just my limited knowledge of how DNA works.
I noticed that one of my veggies has a mutation that makes it eat 10 body points every cycle. But its body stays intact and no energy is gained. The gene is shown as active on every cycle. Here is the genome, the gene in question is at the very end (gene 11):
'''''''''''''''''''''''' Gene: 1 Begins at position 1 '''''''''''''''''''''''
cond
*.robage 0 =
start
.tie inc
stop
'''''''''''''''''''''''' Gene: 1 Ends at position 8 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 2 Begins at position 9 '''''''''''''''''''''''
cond
*.robage 1 =
start
.deltie inc
stop
'''''''''''''''''''''''' Gene: 2 Ends at position 16 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 3 Begins at position 17 '''''''''''''''''''''''
cond
*.nrg 10000 >
start
25 .repro store
stop
'''''''''''''''''''''''' Gene: 3 Ends at position 25 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 4 Begins at position 26 '''''''''''''''''''''''
cond
*.eye5 0 >
start
200 rnd .aimright store
*.nrg 11000 sub 100 div .up store
stop
'''''''''''''''''''''''' Gene: 4 Ends at position 42 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 5 Begins at position 43 '''''''''''''''''''''''
cond
*.robage 1000 >
*.shell 10000 <
start
1 .mkshell store
stop
'''''''''''''''''''''''' Gene: 5 Ends at position 54 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 6 Begins at position 55 '''''''''''''''''''''''
cond
*.robage 30 <
start
30 .dn store
stop
'''''''''''''''''''''''' Gene: 6 Ends at position 63 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 7 Begins at position 64 '''''''''''''''''''''''
cond
*.robage 30 =
start
300 rnd .aimright store
stop
'''''''''''''''''''''''' Gene: 7 Ends at position 73 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 8 Begins at position 74 '''''''''''''''''''''''
cond
*.robage 1000 >
*.poison 200 <
start
1 .mkpoison store
stop
'''''''''''''''''''''''' Gene: 8 Ends at position 85 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 9 Begins at position 86 '''''''''''''''''''''''
cond
*.nrg 3000 >
*.robage 41 >
start
10 .strbody store
stop
'''''''''''''''''''''''' Gene: 9 Ends at position 97 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 10 Begins at position 98 '''''''''''''''''''''''
cond
start
1000 <
'''''''''''''''''''''''' Gene: 10 Ends at position 101 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 11 Begins at position 102 '''''''''''''''''''''''
start
10 .fdbody store
stop
'''''''''''''''''''''''' Gene: 11 Ends at position 106 '''''''''''''''''''''''
I have the sim saved if you need it.
-
My off the top guess is that it is receiving body from the sun and this is offsetting the fdbody. Check on how you have the veggy body/nrg distribution slider set...
-
I am giving only energy, no body. Besides, the sun is out. So I am guessing it's not a trivial issue, so I'm attaching the sim to this reply. The bot is on the left side of the screen, right between the red teleporter and the dead bot.
-
The strbody in gene 9 is balancing out the fdbody in gene 11.
-
LOL