Darwinbots Forum

Code center => Bugs and fixes => Topic started by: shvarz on January 10, 2008, 02:31:32 PM

Title: Gene structure RESOLVED (NO REPRO)
Post by: shvarz on January 10, 2008, 02:31:32 PM
Not sure if this is the same problem that is described in EndGene bug topic, but the following DNA is not interpreted consistently:
Quote
''''''''''''''''''''''''  Gene:  5 Begins at position  42  '''''''''''''''''''''''
 cond
 *.robage 1000 >
 *.shell 10000 <
 stop
''''''''''''''''''''''''  Gene:  5 Ends at position  49  '''''''''''''''''''''''
 1 .mkshell store
 stop

''''''''''''''''''''''''  Gene:  6 Begins at position  54  '''''''''''''''''''''''
 cond
 *.robage 30 <
 start
 30 .up store
 stop
''''''''''''''''''''''''  Gene:  6 Ends at position  62  '''''''''''''''''''''''

It appeared as a mutation in the gene 5 where a start command was mutated into stop command, splitting gene 5.  There are no other shell-making genes in the bot. The gene 5 still works even though it is split in this way. All bots with this gene have 10000 shell units.
Title: Gene structure RESOLVED (NO REPRO)
Post by: EricL on January 10, 2008, 04:10:36 PM
It's not the same issue as the EndGene() bug.

I cannot reproduce this.  Testing a bot with just the DNA above works correctly (I.e. no shell is made) and I can find no issues in the code which could cause this from a manual code inspection.  Can you please post the sim and indicate the specific bot(s) where this is happening?  Thanks.
Title: Gene structure RESOLVED (NO REPRO)
Post by: shvarz on January 10, 2008, 06:40:23 PM
Shoot, I did not save!  And autosave did not have any saves near that time either. Now all those bots are dead...  Never mind.  I'll let you know if I see it again, but forget it for now.
Title: Gene structure RESOLVED (NO REPRO)
Post by: googlyeyesultra on January 10, 2008, 07:31:22 PM
The bots probably had a large amount of shell already built up before they mutated. Half of your shell is passed to your children (or however much you put in repro), so a whole line of non-shell making bots could still have lots of shell.
Title: Gene structure RESOLVED (NO REPRO)
Post by: EricL on January 12, 2008, 01:52:11 PM
Resolved no repro for now.  Please re-open if you see this again.