Bots and Simulations > Bot Tavern

Good god, my 2nd bot and I cant see what i've broken in it's movement

<< < (2/5) > >>

spike43884:
Updated to the most recent code.

Shadowgod2:
all current bugs out but definitely needs improving on your eye system

--- Code: ---'All Eyes(F1)
'By Spike43884
'Waits for his prey, all eyes ready then pounces!
'Refer to Sentry-Rule

def attack 50

'Gene 0 Eye settings
cond
*.robage 5 <
start
-571 .eye2dir store
575 .eye8dir store
-126 .eye1dir store
126 .eye9dir store
-287 .eye3dir store
287 .eye7dir store
-96 .eye4dir store
96 .eye6dir store
149 .eye2width store
149 .eye8width store
-30 .eye1width store
-30 .eye9width store
149 .eye3width store
149 .eye7width store
93 .eye4width store
93 .eye6width store
-30 .eye5width store
stop


' Gene 1 Food Finder (waiting)
cond
*.eye1 0 =
 *.eye2 0 = or
 *.eye3 0 = or
 *.eye4 0 = or
 *.eye5 0 = or
 *.eye6 0 = or
 *.eye7 0 = or
 *.eye8 0 = or
 *.eye9 0 = or
*.refeye *.myeye = and
start
157 rnd .aimdx store
stop


'Gene 2 Food Sighted
'*********************
cond
*.refeye *.myeye !=
*.eyef 0 !=
start
1 .attack store
stop

cond
*.refeye *.myeye =
*.eyef 0 = or
start
0 .attack store
stop

cond
*.eye1 0 >
*.attack 0 =
start
140 .aimdx
stop

cond
*.eye2 0 >
*.attack 0 =
start
105 .aimdx
stop

cond
*.eye3 0 >
*.attack 0 =
start
70 .aimdx
stop

cond
*.eye4 0 >
*.attack 0 =
start
35 .aimdx
stop

cond
*.eye6 0 >
*.attack 0 =
start
35 .aimsx
stop

cond
*.eye7 0 >
*.attack 0 =
start
70 .aimsx
stop

cond
*.eye8 0 >
*.attack 0 =
start
105 .aimsx
stop

cond
*.eye9 0 >
*.attack 0 =
start
140 .aimsx
stop
'*********************


' Gene 3 Chase Food
cond
*.eye5 0 >
*.refeye *.myeye !=
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
stop


' Gene 4 Eat Food
cond
*.eye5 50 >
*.refeye *.myeye !=
start
-1 .shoot store
 *.refvelup .up store
stop


' Gene 5 Avoiding Family
cond
 *.eye5 0 =
 *.refeye *.myeye = or
start
 314 rnd .aimdx store
stop

' Gene 6 Reproduce
cond
 *.nrg 20000 >
 *.robage 3 > and
start
 10 .repro store
stop


end
--- End code ---

spike43884:

--- Quote from: Shadowgod2 on November 08, 2014, 11:39:22 AM ---all current bugs out but definitely needs improving on your eye system

--- End quote ---

Improving on eye system?
Btw, is there something to make sure it doesnt go above maxvel on there, if not then I'll add a velocity restrictor.

Shadowgod2:

--- Quote from: spike43884 on November 08, 2014, 01:45:02 PM ---
Improving on eye system?
Btw, is there something to make sure it doesnt go above maxvel on there, if not then I'll add a velocity restrictor.

--- End quote ---

the eye system you have eye1 and 9 are the closest to eye5 yet they turn the most.

the maxvel is it for that bot and it can't go faster. the only thing you can do it save nrg by not putting an insane number in .up or something like that.

spike43884:

--- Quote from: Shadowgod2 on November 08, 2014, 04:37:12 PM ---
--- Quote from: spike43884 on November 08, 2014, 01:45:02 PM ---
Improving on eye system?
Btw, is there something to make sure it doesnt go above maxvel on there, if not then I'll add a velocity restrictor.

--- End quote ---

the eye system you have eye1 and 9 are the closest to eye5 yet they turn the most.

the maxvel is it for that bot and it can't go faster. the only thing you can do it save nrg by not putting an insane number in .up or something like that.

--- End quote ---
ahh
btw the eye system, I took from one of your bots and changed the widths :P so its sorta your fault its got weird ordering :D
Anyway....so what values in the turning then (thats why its movement is horrific!)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version