Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: havingphun on October 13, 2011, 06:24:36 PM

Title: Other ways of identifying freinds and foes
Post by: havingphun on October 13, 2011, 06:24:36 PM
Is there any other ways to identify if another bot is friend or foe instead of checking there eyes?
Title: Re: Other ways of identifying freinds and foes
Post by: Panda on October 14, 2011, 02:54:15 AM
You can use many of the other "*.my----" and *.ref----" such as "mypoison" and "refpoison".
Then there's memval.
There's not really an unbreakable way of doing it, though, most other bots can fake it all..
I don't have time to explain them all now, but I will at some point.
Title: Re: Other ways of identifying freinds and foes
Post by: havingphun on October 15, 2011, 09:40:00 AM
Well thats what i was planning on doing i made a bot that can trick some basic bots into thinking it is there friend, but what do the other bots use?
Title: Re: Other ways of identifying freinds and foes
Post by: Panda on October 15, 2011, 09:50:09 AM
Most simple bots will use myeye and refeye but a lot will use memloc and memval. Or the use of "out" and "in" is good, too. Everything method I've seen can be faked, though.
Title: Re: Other ways of identifying freinds and foes
Post by: havingphun on October 15, 2011, 10:05:11 AM
thats good i want to make a bot that is unnoticed by all others then it just tie feeds like a parasite.
Title: Re: Other ways of identifying freinds and foes
Post by: Panda on October 15, 2011, 10:51:33 AM
To fake every single method would be difficult, though, as new methods can be created quickly. For example

Code: [Select]
def total 50
def outval1 50
def outval2 50

'set two out values at birth
cond
*.robage = 0;
start
20 rand .outval1 store
20 rand .outval2 store
*.outval1 *.outval2 add .total store
stop

'output values
cond
start
*.outval1 .out1 store
*.outval2 .out2 store
stop

'add in1 and in2
cond
start
*.in1 *.in2 add .out3 store
stop

'attack if in3 is not the sum of own totals
cond
*.in3 *.total !=
start
'attack code
stop
end

I'm not sure if I've ever seen that before but I suspect it has. It's likely that it has and it's easy to fake, if you know it exists but somebody may use it with 3 vars or multiply instead of adding.
I haven't tested the code but I think it would work.
Title: Re: Other ways of identifying freinds and foes
Post by: havingphun on October 17, 2011, 04:03:44 PM
I was looking at the code of some bots and realised it wouldn't be useful for long even if i could trick every one.
Title: Re: Other ways of identifying freinds and foes
Post by: Numsgil on October 19, 2011, 03:20:32 AM
There's a training veggy somewhere in the bestiary that spoofs a large number of conspec systems.  I can't seem to find it anymore, though :(  I'm pretty sure it's in the bestiary somewhere.
Title: Re: Other ways of identifying freinds and foes
Post by: Numsgil on October 19, 2011, 03:24:26 AM
I found it: clicky (http://forum.darwinbots.com/index.php/topic,2738.msg1379529.html#msg1379529)