Bots and Simulations > DNA - General
how to virus
MrMound:
its not working still so could someone look at it and see if its my computer thats nat working or if its my bot? :)
PurpleYouko:
You have a * in front of your .mkvirus address.
--- Code: ---cond
*.vtimer 0 =
start
*6 .mkvirus store
stop
--- End code ---
This is loading the current value of memory location 6 (aimsx) into .mkvirus.
Given the rest of your DNA code, this number could be anything from 0 to 1860 depending on earlier genes.
Drop the * and it works fine.
--- Code: ---cond
*.vtimer 0 =
start
6 .mkvirus store
stop
--- End code ---
Your main problem is that your robot has no defence against his own virus. The sim ends up in a right old mess of your robots violently reproducing and dying. Most of them have upward of 20 genes after a couple thousand cycles.
Adding genes to the genome (via viruses) tends to make your desired virus gene move to some position other than 6 so the viruses are all different. :blink:
Not a bad little robot actually. Without the virus he would do reasonably well in the lower part of the F2 league
Numsgil:
Take a look at Spanish Conquistador, seriously.
Light:
--- Quote ---Your main problem is that your robot has no defence against his own virus.
Adding genes to the genome (via viruses) tends to make your desired virus gene move to some position other than 6 so the viruses are all different. :blink:
--- End quote ---
--- Code: ---cond
*.nrg 1 >=
*.refaimsx 2 =
start
60 .repro store
stop
--- End code ---
your virus will only activate in bots that have 2 aimsx, which wont be many if you change it so it wont activate in bots with 1 aimsx (ie yours) it will affect almost all bots
--- Code: ---cond
*.nrg 1 >=
*.refaimsx 1 !=
start
60 .repro store
stop
--- End code ---
also if you move your virus gene to the begining of the code, so that it is gene 1, it will be much less likely to be moved when genes get added to the genome
PurpleYouko:
--- Quote ---
--- Quote --- Your main problem is that your robot has no defence against his own virus.
Adding genes to the genome (via viruses) tends to make your desired virus gene move to some position other than 6 so the viruses are all different. :blink:
--- End quote ---
--- Code: ---cond
*.nrg 1 >=
*.refaimsx 2 =
start
60 .repro store
stop
--- End code ---
your virus will only activate in bots that have 2 aimsx, which wont be many if you change it so it wont activate in bots with 1 aimsx (ie yours) it will affect almost all bots
--- Code: ---cond
*.nrg 1 >=
*.refaimsx 1 !=
start
60 .repro store
stop
--- End code ---
also if you move your virus gene to the begining of the code, so that it is gene 1, it will be much less likely to be moved when genes get added to the genome
--- End quote ---
Uh.... no!
That won't work at all Light.
*.refaimsx tells your robot how many .aimsx command the robot he is facing has.
I think you must have meant *.myaimsx
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version