Bots and Simulations > The Gene depository
Antivirus
Numsgil:
Can you delgene numgenes + 1? That would let you delete a virus if it manages to get lucky and gets inserted into the last position in the DNA. If you don't have to worry about a virus comming last, then antivirus techniques become much simpler. You can guarentee that your last gene wipes away any mkvirus or vshoot commands.
EricL:
--- Quote from: Numsgil ---Can you delgene numgenes + 1? That would let you delete a virus if it manages to get lucky and gets inserted into the last position in the DNA. If you don't have to worry about a virus comming last, then antivirus techniques become much simpler. You can guarentee that your last gene wipes away any mkvirus or vshoot commands.
--- End quote ---
I see no reason why this won't work except that when a infection happens where the insertion isn't last, the gene with the delgene will delete itself... And of course, a bot can potentially get hit by two or more virus shots in the same cycle and you can only .delgene one gene per cycle..
This is one reason I want a richer virus targeting mechanism. There are co-evolution riches to explore here.
EricL:
--- Quote from: Shasta ---On another note, once I finished this tonight during testing I noticed something strange. When virus gets deleted, if it already submitted a .mkvirus call, it WILL shoot, no matter what. So even though there is nothing to copy into a virus in the bot, it still does with the full original virus. I wasn't sure if this is a bug or not.
--- End quote ---
On the cycle .mkvirus goes non-zero, if .vtimer is 0, the DNA of the specified gene gets snapshotted and stored. If will get shot on the next cycle where .vtimer is 0 and the bot sets .vshoot to something non-zero.
If the virus is firing without the bot storing into .vshoot or before .vtimer counts down to 0, that is a bug. It's not a bug that the virus contains the original DNA even after that gene is deleted in the mainline DNA.
But this begs an interesting question: once .mkvirus is executed, there is no way for a bot to change it's mind and cancel the virus short of creating a new virus. I do beleive that if .mkvirus is set again (once .vtimer has counted down to 0) the new virus will supplant the old without the old being fired. It looks like we might leak a shot here though, but that's a bug for me to investigate.
Endy:
Might be able to make a better antivirus method out of that. Tons safer than trying to use delgene to delete what you think might be an actual virus. Might even be happening naturally, helping spread genes and limiting viruses at the same time.
Could still use a better system for viruses though. Kind of messed up that all of our viruses are Retro viruses, be better if there were viruses that replicated without being incorporated into the genome.
MacadamiaNuts:
Yeah I suggested something about that once.
Like:
hack
virusstuff
virusstuff
virusstuff
endhack
being inserted anywhere, hack and endhack being ignored during execution, the whole block deleted upon reproduction, .mkvirus making reference to existing hack blocks instead of genes, and adding *.thishack for self replication.
Navigation
[0] Message Index
[*] Previous page
Go to full version