Bots and Simulations > DNA - General
Making another bot delete it's own genes
Martian:
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
Anazasi:
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
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.
Martian:
--- 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.
--- End quote ---
OK. Maybe someone thought that deleting genes was overpowered.
Anazasi:
I think you could do it with ties
Navigation
[0] Message Index
[#] Next page
Go to full version