Darwinbots Forum

Bots and Simulations => DNA - General => The Gene depository => Topic started by: mm130k on October 11, 2009, 02:38:39 AM

Title: virus bot needed
Post by: mm130k on October 11, 2009, 02:38:39 AM
I made a virus using what I read abuot them. but I cant seem to make a bot that can live long enough for the virus to take efect. Can eny one help? hers the virus:

cond
 *.robage 0 =
start
 7 989 store
stop

cond
 *.vitmer 0 =
start
 3 .mkvirus store
 200 .vshoot store
stop

cond
 7 *989 !=
start
*.thisgene .mkvirus store
200 .vshoot store
-2 .shoot store
.delgene dec
 stop

Whatever I try the bot just wont live.
thanks to all that help!
p.s. im new so try to explaine what you put into the bot that makes it live.
Title: virus bot needed
Post by: Billy on May 08, 2010, 06:45:29 PM
Quote from: mm130k
I made a virus using what I read abuot them. but I cant seem to make a bot that can live long enough for the virus to take efect. Can eny one help? hers the virus:

cond
 *.robage 0 =
start
 7 989 store
stop

cond
 *.vitmer 0 =
start
 3 .mkvirus store
 200 .vshoot store
stop

cond
 7 *989 !=
start
*.thisgene .mkvirus store
200 .vshoot store
-2 .shoot store
.delgene dec
 stop

Whatever I try the bot just wont live.
thanks to all that help!
p.s. im new so try to explaine what you put into the bot that makes it live.
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
 *.thisgene 1 =
start
 7 989 store
 2 .mkvirus store
 200 .vshoot store
stop

cond
7 *989 !=
start
*.thisgene .mkvirus store
200 .vshoot store
-2 .shoot store
.delgene dec
stop

cond
 *.eye5 0 >
 *.refeye *.myeye !=
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
stop

cond
 *.eye5 50 >
 *.refeye *.myeye !=
start
-1 .shoot store
 *.refvelup .up store
stop

cond
 *.nrg 20000 >
start
 10 .repro store
stop

cond
 *.eye5 0 =
 *.refeye *.myeye = or
start
 314 rnd .aimdx store
stop

end

Modified Animal minimalis. This works, I've tested it. Nice virus.

EDIT: Wouldn't .delgene inc work better?

EDIT 2: Oops, just noticed the age of this thread.  
Title: virus bot needed
Post by: Houshalter on May 08, 2010, 10:52:38 PM
He might not still be here, but I do want to say that your virus looks like it was designed to kill the bot its targeting, so don't be suprised when it does. Get rid of the .delgene and the -2 and it might work. I think this post is probably going to be a waste though.
Title: virus bot needed
Post by: mm130k on May 28, 2010, 01:56:34 AM
I'm still hear, and thanks for the advise ill try losing the .delgene
Title: virus bot needed
Post by: Billy on May 28, 2010, 04:19:21 AM
Ah good. Maybe, as a replacement to the .delgene inc you should just put this at the bottom of your gene:
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\'].delgene inc
*.thisgene 1 =
*.genes .delgene store
This simple code would delete delete every gene exept for the virus.
Title: virus bot needed
Post by: Houshalter on May 28, 2010, 12:00:15 PM
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']
*.genes .delgene store
*.thisgene *.genes =
.delgene dec

Err, wouldn't this work better?
Title: virus bot needed
Post by: Billy on May 28, 2010, 02:31:27 PM
Quote from: Houshalter
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']
*.genes .delgene store
*.thisgene *.genes =
.delgene dec

Err, wouldn't this work better?
Lol, it would do exactly the same thing.
Title: virus bot needed
Post by: Houshalter on May 28, 2010, 03:46:24 PM
No because when your gene is the last gene left, it deletes itself, doesn't it? That actually might not be a bad thing, a bot with no genes floating around. It would be a shell that any passing virus could take over and still affect the bot pop. And depending on its conspec, it might not be eaten by its former species and just take up their space.
Title: virus bot needed
Post by: Billy on May 28, 2010, 04:18:23 PM
Quote from: Houshalter
No because when your gene is the last gene left, it deletes itself, doesn't it? That actually might not be a bad thing, a bot with no genes floating around. It would be a shell that any passing virus could take over and still affect the bot pop. And depending on its conspec, it might not be eaten by its former species and just take up their space.
Oops, yeah, you're right. I'm dumb.  
Title: virus bot needed
Post by: mm130k on May 29, 2010, 09:04:05 PM
ok i replaced the .delgene and now it looks like this,

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
*.robage 0 =
start
7 989 store
stop

cond
*.vitmer 0 =
start
3 .mkvirus store
200 .vshoot store
stop

cond
7 *989 !=
start
*.thisgene .mkvirus store
200 .vshoot store
-2 .shoot store
.delgene inc
*.thisgene 1 =
*.genes .delgene store
stop

i haven't tested it yet so ill get back with the results in a day or two
Title: virus bot needed
Post by: Billy on May 30, 2010, 04:03:34 AM
Quote from: mm130k
ok i replaced the .delgene and now it looks like this,

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
*.robage 0 =
start
7 989 store
stop

cond
*.vitmer 0 =
start
3 .mkvirus store
200 .vshoot store
stop

cond
7 *989 !=
start
*.thisgene .mkvirus store
200 .vshoot store
-2 .shoot store
.delgene inc
*.thisgene 1 =
*.genes .delgene store
stop

i haven't tested it yet so ill get back with the results in a day or two
It's been pointed out in this thread that that method does not work.
Title: virus bot needed
Post by: mm130k on May 30, 2010, 03:51:07 PM
ops sorry, used the wrong method thanks for pointing it out
Title: virus bot needed
Post by: Billy on May 30, 2010, 04:38:43 PM
No problem.
Title: virus bot needed
Post by: mm130k on May 30, 2010, 04:54:58 PM
i'm noticing a couple things with the bot
1. 50% of the time when the bot reproduces its offspring are infected with the virus
and,
2. 50% of the time when it reproduces it loses the virus gene

here is the code for the parent

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']''''''''''''''''''''''''  Gene:  1 Begins at position  1  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  1 Ends at position  23  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  2 Begins at position  24  '''''''''''''''''''''''
 cond
 *.thisgene 1 =
 start
 7 989 store
 2 .mkvirus store
 200 .vshoot store
 stop
''''''''''''''''''''''''  Gene:  2 Ends at position  38  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  3 Begins at position  39  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  3 Ends at position  61  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  4 Begins at position  62  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  4 Ends at position  84  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  5 Begins at position  85  '''''''''''''''''''''''
 cond
 *.eye5 0 >
 *.refeye *.myeye !=
 start
 *.refveldx .dx store
 *.refvelup 30 add .up store
 stop
''''''''''''''''''''''''  Gene:  5 Ends at position  101  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  6 Begins at position  102  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  6 Ends at position  124  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  7 Begins at position  125  '''''''''''''''''''''''
 cond
 *.eye5 50 >
 *.refeye *.myeye !=
 start
 -1 .shoot store
 *.refvelup .up store
 stop
''''''''''''''''''''''''  Gene:  7 Ends at position  139  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  8 Begins at position  140  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  8 Ends at position  162  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  9 Begins at position  163  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  9 Ends at position  185  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  10 Begins at position  186  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  10 Ends at position  208  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  11 Begins at position  209  '''''''''''''''''''''''
 cond
 *.nrg 20000 >
 start
 10 .repro store
 stop
''''''''''''''''''''''''  Gene:  11 Ends at position  217  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  12 Begins at position  218  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  12 Ends at position  240  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  13 Begins at position  241  '''''''''''''''''''''''
 cond
 *.eye5 0 =
 *.refeye *.myeye =
 or
 start
 314 rnd .aimright store
 stop
''''''''''''''''''''''''  Gene:  13 Ends at position  254  '''''''''''''''''''''''


and here is the child
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']
''''''''''''''''''''''''  Gene:  1 Begins at position  1  '''''''''''''''''''''''
 cond
 7 *989 !=
 start
 *.thisgene .mkvirus store
 200 .vshoot store
 -2 .shoot store
 *.genes .delgene store
 *.thisgene *.genes =
 .delgene dec
 stop
''''''''''''''''''''''''  Gene:  1 Ends at position  23  '''''''''''''''''''''''


any one know what is happening??
Title: virus bot needed
Post by: Billy on June 01, 2010, 06:22:32 AM
The code in this virus carrying bot is very fragile, and breaks if it gets infected with a virus in gene 1. It should only be used for introducing viruses, usually.
Title: virus bot needed
Post by: mm130k on June 01, 2010, 09:43:02 PM
i see when the virus gets inserted there it deletes all the other genes but i don't get why the offspring just have the virus as the gene
Title: virus bot needed
Post by: Houshalter on June 01, 2010, 09:55:16 PM
The bots only pass on the genes they have. If you delete a gene, its permnament.
Title: virus bot needed
Post by: mm130k on June 01, 2010, 10:03:56 PM
yes i know but when you look at ythe dna for the parent it has 13 genes but the kid only has one gene