Darwinbots Forum

Bots and Simulations => Bestiary => F2 bots => Topic started by: d-EVO on November 30, 2008, 10:20:37 AM

Title: BETA-AA-(F2)(30-11-2008)
Post by: d-EVO on November 30, 2008, 10:20:37 AM
Just upgraded the aiming and tuned it a bit
Uses no anti-virus protection or tie feeding or slime, but gets all the way to ThisnThat in F2 and beats every F1 bot !!!
feel free to comment

Code: [Select]
'NAME         :BETA-AA
'LEAGUE        :F2, SB
'CREATOR    :d-EVO

'BEHAVIOR
'    If this bot sees a frienly that is tracking an enemy, The bot will aim at that enemy
'    Unfoolable recognition system (well almost, cant think of a way to beat it(well I have but it wont be easy))
'    It will reproduce out the back while feeding, offspring will help the mother if no enemys are behind

'FACTS
'    3 genes with 2 states (setting the bot, attacking and finding something to attack)
'    most of the actions are controled through ratios. some of them are listed below
'                    poison /shell is retio between body size and the current amount of poison /shell
'                    How close it must be to feed from a target is determined by refveldx

cond
  *.robage 0 =
start
  -436 .eye9dir store
  -327 .eye8dir store
  -218 .eye7dir store
  -109 .eye6dir store
  109 .eye4dir store
  218 .eye3dir store
  327 .eye2dir store
  436 .eye1dir store
  109 .eye1width store
  109 .eye2width store
  109 .eye3width store
  109 .eye4width store
  109 .eye5width store
  109 .eye6width store
  109 .eye7width store
  109 .eye8width store
  109 .eye9width store
  .shoot .ploc store
  .tie inc
  0 .timer store
  0 .out1 store
  100 rnd dup .out8 store 10 add .out9 store
stop

cond
 *.eyef 0 =
 *.eyef 0 >
 *.in8 *.in9 10 sub =
 *.in8 *.out8 != and and or
start
  100 rnd dup .out8 store 10 add .out9 store
  0 .out1 store
  *.maxvel .up store
  -4 *.eye1 sgn mult *.eye2 sgn -- abs mult *.eye3 sgn -- abs mult *.eye4 sgn -- abs mult *.eye5 sgn -- abs mult
  *.eye6 sgn -- abs mult *.eye7 sgn -- abs mult *.eye8 sgn -- abs mult *.eye9 sgn -- abs mult 4 *.eye9 sgn mult *.eye2 sgn
  -- abs mult *.eye3 sgn -- abs mult *.eye4 sgn -- abs mult *.eye5 sgn -- abs mult *.eye6 sgn -- abs mult *.eye7 sgn --
  abs mult *.eye8 sgn -- abs mult add -3 *.eye2 sgn mult *.eye3 sgn -- abs mult *.eye4 sgn -- abs mult *.eye5 sgn -- abs
  mult *.eye6 sgn -- abs mult *.eye7 sgn -- abs mult *.eye8 sgn -- abs mult add 3 *.eye8 sgn mult *.eye3 sgn -- abs mult
  *.eye4 sgn -- abs mult *.eye5 sgn -- abs mult *.eye6 sgn -- abs mult *.eye7 sgn -- abs mult add -2 *.eye3 sgn mult
  *.eye4 sgn -- abs mult *.eye5 sgn -- abs mult *.eye6 sgn -- abs mult *.eye7 sgn -- abs mult add 2 *.eye7 sgn mult
  *.eye4 sgn -- abs mult *.eye5 sgn -- abs mult *.eye6 sgn -- abs mult add -1 *.eye4 sgn mult *.eye5 sgn -- abs mult
  *.eye6 sgn -- abs mult add 1 *.eye6 sgn mult *.eye5 sgn -- abs mult add 0 *.eye5 sgn mult add .focuseye store
 *.eye5 0 > *.in1 0 = and *.timer 1001 = and
  20 .dx store
  dropbool
 *.eye5 0 > *.in1 1 = and
  *.in2 *.in3 angle .setaim store
  *.maxvel .up store
  1000 .timer store
  dropbool
 *.nrg 2 mult *.body  >
  *.nrg 10 div 10 sub 99 ceil .strbody store
  dropbool
 *.nrg 2 mult *.body <
  99 .fdbody store
  dropbool
 *.body 900 >
  628 .aimdx store
  40 .repro store
  0 .timer store
  dropbool
 *.timer 1 =
  628 .aimdx store
  dropbool
 *.shell 6 mult *.body <
  100 .mkshell store
  dropbool
 *.poison 8 mult *.body <
  100 .strpoison store
  dropbool
 *.waste 100 >
  .backshoot inc
 *.waste .shootval store
  -4 .shoot store
  dropbool
 *.robage 1 =
  .deltie inc
  dropbool
 *.poisoned 0 != *.paralyzed  0 != or
  99 .repro store
  dropbool
stop

cond
  *.eyef 0 >
  *.in9 10 sub *.in8 !=
  *.in8 *.out8 = or and
start
  0 .focuseye store
  100 rnd dup .out8 store 10 add .out9 store
  1 .out1 store
  *.refxpos .out2 store
  *.refypos .out3 store
  *.refxpos *.refypos angle .setaim store
  0 .focuseye store
  *.refveldx .dx store
  32 .shootval store
 *.eye5 *.refveldx abs 10 add <
  *.refvelup 40 .up store
  dropbool
 *.eye5 *.refveldx abs 10 add >
  *.refvelup 10 sub .up store
  dropbool
 *.refpoison *.refshell => and *.eye5 7 > and
  -6 .shoot store
  dropbool
 *.refpoison *.refshell < *.eye5 7 > and
  -1 .shoot store
  dropbool
 *.nrg 2 mult *.body  >
  *.nrg 10 div 10 sub 99 ceil .strbody store
  dropbool
 *.nrg 3 mult *.body 2 mult <
  100 .fdbody store
  dropbool
 *.body 900 >
  628 .aimdx store
  40 .repro store
  0 .timer store
  dropbool
 *.timer 1 =
  628 .aimdx store
  dropbool
  *.shell 3 mult *.body <
  100 .mkshell store
  dropbool
 *.poison 4 mult *.body <
  100 .strpoison store
  dropbool
 *.waste 100 >
  .backshoot inc
  *.waste .shootval store
  -4 .shoot store
  dropbool
 *.robage 1 =
  .deltie inc
  dropbool
 *.poisoned 0 != *.paralyzed  0 != or
  99 .repro store
  dropbool
stop

end
Title: BETA-AA-(F2)
Post by: bacillus on November 30, 2008, 03:14:20 PM
What version of DB are you using? It didn't even beat The One  
EDIT=>Come to think of it, it actually makes sense; you said it didn't beat This'n'That, which was the last bot to drop off F1. Do you mean F3?
Title: BETA-AA-(F2)
Post by: d-EVO on November 30, 2008, 03:52:48 PM
Quote from: bacillus
What version of DB are you using? It didn't even beat The One  
EDIT=>Come to think of it, it actually makes sense; you said it didn't beat This'n'That, which was the last bot to drop off F1. Do you mean F3?

no. I was using version 2.43... oops
just remembered I should use v 2.44 soz
Title: BETA-AA-(F2)
Post by: d-EVO on November 30, 2008, 04:01:19 PM
Version 2.44 is messed up
when I run the league it fights the first bot and then says there are no challengers
So I just challenged The one and I still won 5/5 times
sure you are using the right version of beta
Title: BETA-AA-(F2)
Post by: bacillus on November 30, 2008, 04:23:32 PM
That happens.
I'm using 2.43.1k, which I found to bo the most reliable. 2.44 screws up when you try to run leagues.
I'm running the version you posted up.
Title: BETA-AA-(F2)
Post by: d-EVO on November 30, 2008, 04:46:19 PM
Quote from: bacillus
That happens.
I'm using 2.43.1k, which I found to bo the most reliable. 2.44 screws up when you try to run leagues.
I'm running the version you posted up.

tested this bot that has been loaded
and it still beats every F1 bot.
I am so confused
Title: BETA-AA-(F2)
Post by: bacillus on November 30, 2008, 05:20:30 PM
Are you sure you don't mean F3? F1 is the one with FruitFlies, Saber and Quickdraw on top; This'n'That was last, so it dropped off.
Title: BETA-AA-(F2)
Post by: ikke on December 01, 2008, 05:02:03 AM
Looking at the code:You have an F2 bot that does not use venom. To pass this’n that you’ll probably need venom, at least I was unsuccessful in passing without with the F2 version of Gimmick. For spinner I needed slime to combat its tieing. Check the source code of these bots to discover the trick.
Title: BETA-AA-(F2)
Post by: d-EVO on December 01, 2008, 10:53:15 AM
I probably dont have the updated version of F1.
I downloaded it the other day. from the F1 leage thread.
Is there another. were can I get it
Title: BETA-AA-(F2)
Post by: d-EVO on December 01, 2008, 03:37:11 PM
Ok. I found the updated table and I must admit it does not do quite as well as it did in the old one but it definately beats the one

Edit: in fact it beats quite a few bots including : Martian Tank 3, Reaper, Bubbles, Blue on blue, Callidus, Excalibur 1.12,  Multiply4 and Ebola
       not bad with no slime, venom, tiefeeding, antivirus...
Title: BETA-AA-(F2)
Post by: ikke on December 02, 2008, 10:10:25 AM
Running the league I think your bot would win quicker if you had a cap on its population as a condition for reproduction. Against republican bee for instance it almost looks like it wins by starving its opponent. The 100 bots are too small to engage the 3 or so bees. I saw it a number of times, with various opponents
Title: BETA-AA-(F2)
Post by: bacillus on December 03, 2008, 07:41:20 PM
Okay, that's just wierd. Every single bot I ran of yours got stuck with the one, simply by being overrun in numbers. Run it  against this, just to make sure you have the right bot:
Code: [Select]
' How does it work?
cond
start
100 *.nrg 1000 sub sgn 0 floor 500 *.body sub sgn 0 floor mult .strbody mult store 100 500 *.nrg sub sgn 0 floor .fdbody mult store 200 *.shell sub 0 floor 200 ceil 200 *.shell sub sgn abs .mkshell mult store 10 *.venom sub 0 floor 10 ceil *.venom 10 sub sgn abs .strvenom mult store *.tiepres *51 *.tiepres sub sgn abs *.tiepres sgn mult .deltie mult store *51 *.refeye sgn -1 mult 1 add *.refeye *.myeye sub sgn abs *.eye5 35 sub 0 floor sgn mult mult .tie mult store *51 *.tie sgn *.tiepres *51 sub sgn abs -1 mult 1 add add sgn .tienum mult store -1 *.tie sgn *.tiepres *51 sub sgn abs -1 mult 1 add add sgn .tieloc mult store -1000 *.tie sgn *.tiepres *51 sub sgn abs -1 mult 1 add add sgn .tieval mult store 1 *.robage sgn 1 sub abs .tie mult store .mkshell *.vloc sgn -1 mult 1 add .vloc mult store -100 *.venval sgn 1 add .venval mult store 999 rnd 1 add *51 sgn -1 mult 1 add 51 mult store 200 *.aim add *.refeye *.myeye sub sgn abs -1 mult 1 add .setaim mult store *.maxvel *.vel sub 0 floor *.robage sgn *.refeye *.myeye sub sgn abs mult .up mult store *.refxpos *.refypos angle *.robage sgn *.refeye *.myeye sub sgn abs *.eye5 sgn mult mult .setaim mult store *.refveldx *.refeye *.myeye sub sgn abs *.eye5 sgn mult .dx mult store *.refeye *.myeye sub sgn abs -1 mult 1 add 50 mult inc 0 *50 30 sub 0 floor sgn .refeye mult store 0 *50 30 sub 0 floor sgn 50 mult store *.refshell 1 sub 0 floor sgn 3 mult 5 sub *.refeye sgn mult 1 sub *.refeye *.myeye sub sgn abs *.eye5 35 sub 0 floor sgn mult .shoot mult store *.shoot 3 add sgn 10 mult 0 floor *.refeye sgn 30 mult add *.refshell 1 sub 0 floor sgn 20 mult sub *.shoot sgn abs .shootval mult store 50 *.body 250 sub sgn 0 floor *.nrg 2000 sub sgn 0 floor *.eye5 30 sub 0 floor sgn -1 mult 1 add mult mult .repro mult store *.thisgene -1 mult 3 add abs *.genes 1 sub sgn .delgene mult store
stop
end
Title: BETA-AA-(F2)
Post by: d-EVO on December 04, 2008, 11:22:27 AM
I tested it against the bot you posted up and it won easily.
The one starts of with a population greater than BETA, but it quickly dies down and BETA comesthreogh strong.
Costs and every thing are F1 default.
ARE YOU SURE YOU HAVE THE RIGHT VERSION.
ITS NAME IS BETA-AA. make sure please.

Maby the script got messed up when I posted it.
Try this
Title: BETA-AA-(F2)
Post by: Moonfisher on December 04, 2008, 03:11:20 PM
Ran it in DB 2.43.1L, TheOne won once but then it lost 7 times.
In my experience version L is the most stable drop with least bugs... I think K had a very nasty bug where *.poison and *.venom would be 0 if eye5 was 0 or something like that... lots of bots would die off because of that bug just from overproduction of poison/venom.
Title: BETA-AA-(F2)
Post by: d-EVO on December 04, 2008, 03:27:28 PM
That is quite a serious problem
wonder how that could happen
btw, were can I learn about DB source code. maby I can help out?
Title: BETA-AA-(F2)
Post by: Numsgil on December 04, 2008, 05:58:25 PM
For the VB version you just have to dig in to the source.  For the C# version I wrote an introduction (http://www.darwinbots.com/WikiManual/index.php?title=Darwinbots_3).
Title: BETA-AA-(F2)
Post by: bacillus on December 05, 2008, 11:32:31 AM
Is version 2.43.1L available? I've been using k, that might be the problem.
Title: BETA-AA-(F2)
Post by: d-EVO on December 05, 2008, 04:30:59 PM
Quote from: bacillus
Is version 2.43.1L available? I've been using k, that might be the problem.

available !!!! I have had it for 1.5 months now.
Get it and you will be silenced once and for all!!!
was looking for a link for you but couldnt find it.
Title: BETA-AA-(F2)
Post by: jknilinux on December 05, 2008, 07:39:51 PM
Quote from: d-EVO
Quote from: bacillus
Is version 2.43.1L available? I've been using k, that might be the problem.

available !!!! I have had it for 1.5 months now.
Get it and you will be silenced once and for all!!!
was looking for a link for you but couldnt find it.

Thank me later.. ;-) (http://www.darwinbots.com/Forum/index.php?showtopic=3029&pid=1379154&st=0&#entry1379154)
Title: BETA-AA-(F2)
Post by: bacillus on December 06, 2008, 04:03:15 PM
Thanks. I'll now rerun F1.
I apologise to D-EVo for the lack of silence, and if his bots win, for using an outdated version that misrepresented his bot  
Title: BETA-AA-(F2)
Post by: d-EVO on December 07, 2008, 08:22:59 AM
Quote from: bacillus
Thanks. I'll now rerun F1.
I apologise to D-EVo for the lack of silence, and if his bots win, for using an outdated version that misrepresented his bot  
no prob m8.
Title: BETA-AA-(F2)
Post by: jknilinux on December 07, 2008, 03:56:57 PM
Quote from: bacillus
Thanks. I'll now rerun F1.
I apologise to D-EVo for the lack of silence, and if his bots win, for using an outdated version that misrepresented his bot  

no prob m8.
Title: BETA-AA-(F2)
Post by: bacillus on December 07, 2008, 10:05:15 PM
Does l usually crash after ten rounds? Happened to me every single time.
Title: BETA-AA-(F2)
Post by: d-EVO on December 08, 2008, 11:03:43 AM
Quote from: bacillus
Does l usually crash after ten rounds? Happened to me every single time.
is that the "out of memory" thing.
It only crashes if qou fiddle with the settings a lot and go in and out of the sims.
If you run the leugue it is fine
Title: BETA-AA-(F2)
Post by: bacillus on December 08, 2008, 04:45:07 PM
Strange, I might have to run it by hand...
Title: BETA-AA-(F2)
Post by: d-EVO on December 08, 2008, 05:31:31 PM
Quote from: bacillus
Strange, I might have to run it by hand...

why. that is what makes it crash. have a note book and it runs the league fine
just when I add some bots, change settings run sim a bit. change more settings, remove some bots, run sim ect.

I think it is because  the cach is not cleared ore something
Title: BETA-AA-(F2)
Post by: ikke on December 09, 2008, 03:34:11 AM
The league runs fine on my laptop using 43 l. 44 is screwed.  If you have any issues post the bots and the table and I'll re run to get it right
Title: BETA-AA-(F2)
Post by: d-EVO on December 09, 2008, 08:58:14 AM
Quote from: ikke
The league runs fine on my laptop using 43 l. 44 is screwed.  If you have any issues post the bots and the table and I'll re run to get it right
yay.
another laptop user  
Title: BETA-AA-(F2)
Post by: bacillus on December 10, 2008, 03:53:11 AM
I use laptop as well, but an external monitor. They're just so much more handy than a big box under your desk.
Running the league in blocks seems a good idea.