Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Martian on July 06, 2007, 09:37:37 AM

Title: Making another bot delete it's own genes
Post by: Martian on July 06, 2007, 09:37:37 AM
I modified Animal minimalis to force another bot to delete its genes with info shots, but it isn't working. Can someone please tell me why.  

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

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

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

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

cond
 *.nrg 5100 >
start
 50 .repro store
stop

end
Title: Making another bot delete it's own genes
Post by: Anazasi on July 06, 2007, 09:56:38 AM
cond
*.eye5 0 =
*.refeye *.myeye =
start
314 rnd .aimdx store
stop

this gene is wrong it only activates when there is noone at sight and refeye = myeye (thats never)

you need to add an or like this

cond
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop
Title: Making another bot delete it's own genes
Post by: Anazasi on July 06, 2007, 10:12:24 AM
ok I modified it and seems that the problem is with the memory location, for some reason you cannot write in 340 (.delgene) if you replace it with 341 you can see it works.
sorry, maybe someone else could help you.
Title: Making another bot delete it's own genes
Post by: Martian on July 06, 2007, 10:34:09 AM
Quote from: Anazasi
ok I modified it and seems that the problem is with the memory location, for some reason you cannot write in 340 (.delgene) if you replace it with 341 you can see it works.
sorry, maybe someone else could help you.

OK. Maybe someone thought that deleting genes was overpowered.
Title: Making another bot delete it's own genes
Post by: Anazasi on July 06, 2007, 10:38:48 AM
I think you could do it with ties
Title: Making another bot delete it's own genes
Post by: Anazasi on July 06, 2007, 10:54:06 AM
I stole it from the tie tutorial and modified it, I think it works check it out

replace this gene

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

with this 3 others

cond
*.refeye *.myeye !=
*.eye5 45 >
start
13 .tie *.robage sgn mult *.refage sgn mult store
stop

cond
*.tiepres 0 >
*.tienum 0 =
start
*.tiepres .tienum store
stop

cond
*.tienum 0 >
start
*.refvelup .up store
340 .tieloc store
1 .tieval store
stop
Title: Making another bot delete it's own genes
Post by: Martian on July 06, 2007, 11:12:21 AM
Thanks! It works perfectly now!  
Title: Making another bot delete it's own genes
Post by: Numsgil on July 06, 2007, 11:18:18 PM
Delgene was deemed too powerful and a block was put in specifically to limit venom and info shots from deleting genes.  Ties were supposed to be included in that, but I think they were overlooked.

It's kind of a dirty trick
Title: Making another bot delete it's own genes
Post by: Martian on July 07, 2007, 08:34:38 AM
Quote from: Numsgil
Delgene was deemed too powerful and a block was put in specifically to limit venom and info shots from deleting genes.  Ties were supposed to be included in that, but I think they were overlooked.

It's kind of a dirty trick

OK.
Title: Making another bot delete it's own genes
Post by: Trafalgar on July 15, 2007, 08:14:00 PM
Of course, since you can instakill a bot with info shots or ties (writing to strvenom or strpoison or the like), whacking a bot with a delgene doesn't sound quite as bad.

I tried thinking of clever things to use venom or info shots for, but in the end it came down to "Well, it would be more effective to just instakill them instead of doing X clever disrupting thing. :|"
Title: Making another bot delete it's own genes
Post by: Endy on July 20, 2007, 12:04:34 AM
Well for venom shots it was way too overpowered. You could have just fired a single shot and had the bot deleting all its genes. At least with ties the bots have some chance of reversing the attack or breaking free.

I like venom and poison to mess with the bots hunting abilities. Makes your own attacks tons easier.