Bots and Simulations > Interesting behaviour bots

Alga pollinator

<< < (5/5)

Endy:
You could use the epigenetic based conditions to make species specific genes. Still some chance that the behavior will be copied, but the odds are considerably less.

jknilinux:
Alright, I didn't notice the "virus immune" checkbox... My veggy works now.   


--- Code: ---'Alga_Pollinator v 2.0
'By: jknilinux
'It infects bots with a virus that makes them pollinate it and spread the virus to other bots.

cond
*.robage 0 =
start
7 989 store
stop

cond
*.vtimer 0 =
start
3 .mkvirus store
stop

cond
7 *989 !=
start
*.thisgene 1 rnd 2 mult -1 add add .delgene store
*.eyef 0 =
10 .up store
not
*.refxpos *.refypos angle .setaim store
*.refvelup 5 add .up store
*.refveldx .dx store
-8 .shoot store
*.thisgene .mkvirus store
50 .vshoot store
stop

cond
*.eye5 0 >
*.refeye *.myeye !=
start
50 .vshoot store
stop

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

cond
*.fertilized 0 >
*.nrg 5000 >          'Sometimes works better without this
start
33 .sexrepro store
stop
end

--- End code ---

You can just run it with good ol' A. Minimalis, but you need to check "virus immune" on this veggy, otherwise the virus will infect it for some reason...

Now, it will infect bots with a virus that deletes their entire genome, and makes them instead pollinate algae. When they pollinate, the veggies will only get the virus code in them, but won't be infected by it, so now we have true pollination!

An interesting side note: once a bot is infected with the virus, it apparently messes up the refeye/myeye conspec system, so if an uninfected a. minimalis sees an infected one, it tries to kill it! Pretty interesting...

jknilinux:
Actually, never mind. The "virus immune" veggies are still getting infected. Another bug?

peterb:

--- Quote from: jknilinux ---Actually, never mind. The "virus immune" veggies are still getting infected. Another bug?
--- End quote ---

Does your system crash too ?
Could you perhaps try it with my bots to verify what causes DB to crash?
If your system keeps running stable then I know a litle bit more as I would like to run it too.

I used in one sim:
your vegy
My vegy
my 2 bots in these post above here.


(what would be intresting to see then is that one bot uses .tie wile the other does not >> what will the algey perfer in pond mode (gravtiy = moon).

jknilinux:
Yeah, mine crashes all the time just from my one veggy of doom. Reinstalled DB- That helped a little, but not much.. Maybe you could try that. I think there's something going on with the viruses...

-------

EDIT:

Sorry for getting off-topic with these error reports. However, I found that DB works for the most part if you restart it each time before you run a sim. So, maybe that helps peterb.

Navigation

[0] Message Index

[*] Previous page

Go to full version