Author Topic: how to virus  (Read 8411 times)

Offline MrMound

  • Bot Destroyer
  • ***
  • Posts: 156
    • View Profile
how to virus
« Reply #15 on: April 21, 2005, 09:43:41 AM »
its not working still so could someone look at it and see if its my computer thats nat working or if its my bot? :)
« Last Edit: April 21, 2005, 09:44:07 AM by mrmound »
cooperation is working together to achive a common goal
mrmound

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
how to virus
« Reply #16 on: April 21, 2005, 10:35:25 AM »
You have a * in front of your .mkvirus address.

Code: [Select]
cond
*.vtimer 0 =
start
*6 .mkvirus store
stop

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: [Select]
cond
*.vtimer 0 =
start
6 .mkvirus store
stop

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
« Last Edit: April 21, 2005, 10:36:25 AM by PurpleYouko »
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
how to virus
« Reply #17 on: April 21, 2005, 11:27:34 AM »
Take a look at Spanish Conquistador, seriously.

Offline Light

  • Bot Destroyer
  • ***
  • Posts: 245
    • View Profile
how to virus
« Reply #18 on: April 21, 2005, 11:29:23 AM »
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:
Code: [Select]
cond
*.nrg 1 >=
*.refaimsx 2 =
start
60 .repro store
stop

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: [Select]
cond
*.nrg 1 >=
*.refaimsx 1 !=
start
60 .repro store
stop

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

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
how to virus
« Reply #19 on: April 21, 2005, 01:44:29 PM »
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:
Code: [Select]
cond
*.nrg 1 >=
*.refaimsx 2 =
start
60 .repro store
stop

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: [Select]
cond
*.nrg 1 >=
*.refaimsx 1 !=
start
60 .repro store
stop

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
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
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Light

  • Bot Destroyer
  • ***
  • Posts: 245
    • View Profile
how to virus
« Reply #20 on: April 21, 2005, 07:19:34 PM »
oops :redface:

Offline MrMound

  • Bot Destroyer
  • ***
  • Posts: 156
    • View Profile
how to virus
« Reply #21 on: April 21, 2005, 08:28:07 PM »
the reason the bots good is I used the already made simple bot B)
cooperation is working together to achive a common goal
mrmound

Offline MrMound

  • Bot Destroyer
  • ***
  • Posts: 156
    • View Profile
how to virus
« Reply #22 on: April 21, 2005, 08:34:01 PM »
thanks guys it works! :boing:
I owe you one :)
cooperation is working together to achive a common goal
mrmound