Author Topic: Alpha2.7 WidVis(F3)(d-EVO)23-10-2008  (Read 4479 times)

Offline d-EVO

  • Bot Destroyer
  • ***
  • Posts: 125
    • View Profile
Alpha2.7 WidVis(F3)(d-EVO)23-10-2008
« on: October 30, 2008, 09:04:45 PM »
Probably tired of my posts by now but this one is good
finishes of most bots so quick my doesn't have time to reproduce. And when it does all hell breaks lose

Code: [Select]
'My DNA code for an F3 Bot
'name : Alpha 2.7
'created by : d-EV0
'class : F3

cond
 *.121 1 !=
start

 15 .eye4width store
 10 .eye4dir store

 15 .eye6width store
 -10 .eye6dir store

 60 .eye3width store
 50 .eye3dir store


 60 .eye7width store
 -50 .eye7dir store

 115 .eye2width store
 140 .eye2dir store

 115 .eye8width store
 -140 .eye8dir store

 200 .eye1width store
 300 .eye1dir store

 200 .eye9width store
 -300 .eye9dir store

 *.121 1 =
stop

cond
 *.nrg 3500 >
start
 100 .strbody store
 *.body 10000  >
 10 .repro store
stop


' TARGETTING ENEMY

cond
 *.eye6 *.eye2 >=
 *.eye6 *.eye3 >=
 *.eye6 *.eye4 >=
 *.eye6 *.eye5 >=
 *.eye6 *.eye1 >=
 *.eye6 *.eye7 >=
 *.eye6 *.eye8 >=
 *.eye6 *.eye9 >=
 *.eye6 0 >
start
 35
 .aimdx
 store
stop

cond
 *.eye7 *.eye2 >=
 *.eye7 *.eye3 >=
 *.eye7 *.eye4 >=
 *.eye7 *.eye5 >=
 *.eye7 *.eye6 >=
 *.eye7 *.eye1 >=
 *.eye7 *.eye8 >=
 *.eye7 *.eye9 >=
 *.eye7 0 >
start
 70
 .aimdx
 store
stop

cond
 *.eye8 *.eye2 >=
 *.eye8 *.eye3 >=
 *.eye8 *.eye4 >=
 *.eye8 *.eye5 >=
 *.eye8 *.eye6 >=
 *.eye8 *.eye7 >=
 *.eye8 *.eye1 >=
 *.eye8 *.eye9 >=
 *.eye8 0 >
start
 105
 .aimdx
 store
stop

cond
 *.eye9 *.eye2 >=
 *.eye9 *.eye3 >=
 *.eye9 *.eye4 >=
 *.eye9 *.eye5 >=
 *.eye9 *.eye6 >=
 *.eye9 *.eye7 >=
 *.eye9 *.eye8 >=
 *.eye9 *.eye1 >=
 *.eye9 0 >
start
 140
 .aimdx
 store

cond
 *.eye1 *.eye2 >=
 *.eye1 *.eye3 >=
 *.eye1 *.eye4 >=
 *.eye1 *.eye5 >=
 *.eye1 *.eye6 >=
 *.eye1 *.eye7 >=
 *.eye1 *.eye8 >=
 *.eye1 *.eye9 >=
 *.eye1 0 >
start
 140
 .aimsx
 store
stop

cond
 *.eye2 *.eye1 >=
 *.eye2 *.eye3 >=
 *.eye2 *.eye4 >=
 *.eye2 *.eye5 >=
 *.eye2 *.eye6 >=
 *.eye2 *.eye7 >=
 *.eye2 *.eye8 >=
 *.eye2 *.eye9 >=
 *.eye2 0 >
start
 105
 .aimsx
 store
stop

cond
 *.eye3 *.eye2 >=
 *.eye3 *.eye1 >=
 *.eye3 *.eye4 >=
 *.eye3 *.eye5 >=
 *.eye3 *.eye6 >=
 *.eye3 *.eye7 >=
 *.eye3 *.eye8 >=
 *.eye3 *.eye9 >=
 *.eye3 0 >
start
 70
 .aimsx
 store
stop

cond
 *.eye4 *.eye2 >=
 *.eye4 *.eye3 >=
 *.eye4 *.eye1 >=
 *.eye4 *.eye5 >=
 *.eye4 *.eye6 >=
 *.eye4 *.eye7 >=
 *.eye4 *.eye8 >=
 *.eye4 *.eye9 >=
 *.eye4 0 >
start
 35
 .aimsx
 store
stop

cond
 *.refeye *.myeye !=
 *.eye5 *.eye1 >=
 *.eye5 *.eye2 >=
 *.eye5 *.eye3 >=
 *.eye5 *.eye4 >=
 *.eye5 *.eye6 >=
 *.eye5 *.eye7 >=
 *.eye5 *.eye8 >=
 *.eye5 *.eye9 >=
 *.eye5 0 >
start
 *.refveldx .dx store
 *.refvelup 40 add .up store
stop

cond
 *.refeye *.myeye !=
 *.eye5 7 >
start
 *.refxpos *.refypos angle .setaim store
 *.refxpos *.refypos angle *.refaim *.refvel mult 40 *.refxpos *.xpos sub 2 pow *.refypos *.ypos sub 2 pow add sqr div mult 60 *.focuseye mult mult .aimdx store
 *.refxpos *.refypos angle `(*.refaim *.aim sub abs mult) .aimshoot store
 -8 .shootval store
 *.refshell sgn -1 add 5 mult -1 add .shoot store
 *.refvelup .up store
stop

cond
 *.eye5 0 =
start
 30
 .up
 store
stop

cond
 *.refeye *.myeye =
start
 140
 .aimdx
 store
stop

end
1:      2 is true
2:      1 is false

Offline Moonfisher

  • Bot Overlord
  • ****
  • Posts: 592
    • View Profile
Alpha2.7 WidVis(F3)(d-EVO)23-10-2008
« Reply #1 on: October 31, 2008, 06:54:49 AM »
Looks good, I'll run it when I get home...
But I still have my doubts about that line... my experiences sugest that *.refxpos gives you the x opsition fo the oponent in the NEXT cycle and not the cycle you're in...
So *.refxpos *.refypos angle .setaim store should ensure that you can only loose track of an oponent if it gets out of range or if something else blocks your vision.

If I pause the sim and move something in the focuseye far away the bot will aim directly at the new position in the next cycle, even though it should have lost track completely. Not complaining about this, it means you need a lot less math to aim at something and track it...

Anyway, maybe moving something manualy changes the x and y positions instantly... I'll try to test it when I get home without moving anything manualy...
But my impression is that when using *.refxpos *.refypos angle .setaim store then your eye will stick to the oponent like glue...
Fancy calculations is more often something people use for shots, to move away while firing at the position you expect the oponent to be at when your shot reaches it.
But if x and y are from the next cycle, then trying to calculate the oponents next position using those values will give you something closer to the oponents position in 2 cycles... could be usefull, but I wouldn't use it for aiming...
I'll get back to you once I've tested this (Hope I have the time this evening).

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Alpha2.7 WidVis(F3)(d-EVO)23-10-2008
« Reply #2 on: October 31, 2008, 02:31:51 PM »
Quote from: d-EVO
Probably tired of my posts by now but this one is good
finishes of most bots so quick my doesn't have time to reproduce. And when it does all hell breaks lose
Yes, a little bit tired indeed. The forum is pretty quiet so it doesn't matter much.

But could you put next versions in one topic, maybe another post for every other bot. They don't seem to change very much.

And can you put any next bot as an attachment. I'm too lazy to copy paste the code.
Oh my god, who the hell cares.

Offline d-EVO

  • Bot Destroyer
  • ***
  • Posts: 125
    • View Profile
Alpha2.7 WidVis(F3)(d-EVO)23-10-2008
« Reply #3 on: October 31, 2008, 08:02:23 PM »
Ok. will post this one in this topic. again it is jst a bit differant but can get to pos 13 in f3 league.
This is my first f2 bot.
you wanted an attachment, you got it

'name : Alpha 4
'created by : d-EV0
'class : F2

cond
 *.121 1 !=
start

 15 .eye4width store
 10 .eye4dir store

 15 .eye6width store
 -10 .eye6dir store

 60 .eye3width store
 50 .eye3dir store


 60 .eye7width store
 -50 .eye7dir store

 115 .eye2width store
 140 .eye2dir store

 115 .eye8width store
 -140 .eye8dir store

 200 .eye1width store
 300 .eye1dir store

 200 .eye9width store
 -300 .eye9dir store

cond
 *.shell 500 <
start
 100 .mkshell store
stop

cond
 *.body 1000 <
start
 100 .strbody store
stop

cond
 *.body 10000 >
start
 10 .repro store
stop

' TARGETTING ENEMY

cond
 *.eye6 *.eye2 >=
 *.eye6 *.eye3 >=
 *.eye6 *.eye4 >=
 *.eye6 *.eye5 >=
 *.eye6 *.eye1 >=
 *.eye6 *.eye7 >=
 *.eye6 *.eye8 >=
 *.eye6 *.eye9 >=
 *.eye6 0 >
start
 35
 .aimdx
 store
stop

cond
 *.eye7 *.eye2 >=
 *.eye7 *.eye3 >=
 *.eye7 *.eye4 >=
 *.eye7 *.eye5 >=
 *.eye7 *.eye6 >=
 *.eye7 *.eye1 >=
 *.eye7 *.eye8 >=
 *.eye7 *.eye9 >=
 *.eye7 0 >
start
 70
 .aimdx
 store
stop

cond
 *.eye8 *.eye2 >=
 *.eye8 *.eye3 >=
 *.eye8 *.eye4 >=
 *.eye8 *.eye5 >=
 *.eye8 *.eye6 >=
 *.eye8 *.eye7 >=
 *.eye8 *.eye1 >=
 *.eye8 *.eye9 >=
 *.eye8 0 >
start
 105
 .aimdx
 store
stop

cond
 *.eye9 *.eye2 >=
 *.eye9 *.eye3 >=
 *.eye9 *.eye4 >=
 *.eye9 *.eye5 >=
 *.eye9 *.eye6 >=
 *.eye9 *.eye7 >=
 *.eye9 *.eye8 >=
 *.eye9 *.eye1 >=
 *.eye9 0 >
start
 140
 .aimdx
 store

cond
 *.eye1 *.eye2 >=
 *.eye1 *.eye3 >=
 *.eye1 *.eye4 >=
 *.eye1 *.eye5 >=
 *.eye1 *.eye6 >=
 *.eye1 *.eye7 >=
 *.eye1 *.eye8 >=
 *.eye1 *.eye9 >=
 *.eye1 0 >
start
 140
 .aimsx
 store
stop

cond
 *.eye2 *.eye1 >=
 *.eye2 *.eye3 >=
 *.eye2 *.eye4 >=
 *.eye2 *.eye5 >=
 *.eye2 *.eye6 >=
 *.eye2 *.eye7 >=
 *.eye2 *.eye8 >=
 *.eye2 *.eye9 >=
 *.eye2 0 >
start
 105
 .aimsx
 store
stop

cond
 *.eye3 *.eye2 >=
 *.eye3 *.eye1 >=
 *.eye3 *.eye4 >=
 *.eye3 *.eye5 >=
 *.eye3 *.eye6 >=
 *.eye3 *.eye7 >=
 *.eye3 *.eye8 >=
 *.eye3 *.eye9 >=
 *.eye3 0 >
start
 70
 .aimsx
 store
stop

cond
 *.eye4 *.eye2 >=
 *.eye4 *.eye3 >=
 *.eye4 *.eye1 >=
 *.eye4 *.eye5 >=
 *.eye4 *.eye6 >=
 *.eye4 *.eye7 >=
 *.eye4 *.eye8 >=
 *.eye4 *.eye9 >=
 *.eye4 0 >
start
 35
 .aimsx
 store
stop

cond
 *.refeye *.myeye !=
 *.eye5 *.eye1 >=
 *.eye5 *.eye2 >=
 *.eye5 *.eye3 >=
 *.eye5 *.eye4 >=
 *.eye5 *.eye6 >=
 *.eye5 *.eye7 >=
 *.eye5 *.eye8 >=
 *.eye5 *.eye9 >=
 *.eye5 0 >
start
 *.refveldx .dx store
 *.refvelup 40 add .up store
stop

cond
 *.refpoison 0 >
 *.refeye *.myeye !=
 *.eye5 7 >
start
 *.refxpos *.refypos angle .setaim store
 *.refxpos *.refypos angle *.refaim *.refvel mult 40 *.refxpos *.xpos sub 2 pow *.refypos *.ypos sub 2 pow add sqr div mult 60 *.focuseye mult mult .aimdx store
 *.refxpos *.refypos angle `(*.refaim *.aim sub abs mult) .aimshoot store
 -8 .shootval store
 -6 .shoot store
 *.refvelup .up store
stop

cond
 *.refpoison 0 =
 *.refeye *.myeye !=
 *.eye5 7 >
start
 *.refxpos *.refypos angle .setaim store
 *.refxpos *.refypos angle *.refaim *.refvel mult 40 *.refxpos *.xpos sub 2 pow *.refypos *.ypos sub 2 pow add sqr div mult 60 *.focuseye mult mult .aimdx store
 *.refxpos *.refypos angle `(*.refaim *.aim sub abs mult) .aimshoot store
 -8 .shootval store
 *.refshell sgn -1 add 5 mult -1 add .shoot store
 *.refvelup .up store
stop

stop

cond
 *.eye5 0 =
start
 30
 .up
 store
stop

cond
 *.refeye *.myeye =
start
 624
 .aimdx
 store
 40
 .up
 store
stop

end
1:      2 is true
2:      1 is false

Offline Moonfisher

  • Bot Overlord
  • ****
  • Posts: 592
    • View Profile
Alpha2.7 WidVis(F3)(d-EVO)23-10-2008
« Reply #4 on: November 01, 2008, 10:23:29 AM »
You wrote it made 13th place in the F3 league, did you mean the F2 league ? I'm guessing that's what you ment since the previous version got further in F3 and since it's no longer allowed in F3 since it uses shell.

And gratz, you're over half way through F2

And you can push this a lot further, so far you're only using shell, with venom and poison it'll be even stronger.
I would sugest taking a look at the F3 bot called Defence and see what seperates it from the previous bot. It has a gene for shooting back when you get hit... if you used that gene with some venom maybe then if your bot is eating an alge or enemy and something else attacks it from behind, then you can spend a venom shot on the agressor from behind and go back to what you where doing. This can be very effective, you can find the same gene in Multiply4, it's very potent, especialy with the setup from Multiply4 (It uses venom to cause -2 shots and uses a large dose of venom, so it can fight many oponents at the time while all of them are feeding it, it a very usefull litle gene).

Offline d-EVO

  • Bot Destroyer
  • ***
  • Posts: 125
    • View Profile
Alpha2.7 WidVis(F3)(d-EVO)23-10-2008
« Reply #5 on: November 03, 2008, 04:42:57 PM »
Thanks for the help

ya I ment F2 leage.
Will add venom and poison soon

were are the F3 bots and league table ?
1:      2 is true
2:      1 is false

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Alpha2.7 WidVis(F3)(d-EVO)23-10-2008
« Reply #6 on: November 03, 2008, 05:05:35 PM »
Here it is.

A 13th place, nice. Also without using any venom or poison.
My first bot came about that rankings(I think, maybe lower). It used to make the whole F1league tougher, becouse it kept up a strong fighter bot that couldn't keep against virus.  .It is now knocked out of the ''new style league'' table of bac.

The venom is the most expensive, but also the most valuable. I right used, you can come very far with it.
Oh my god, who the hell cares.