Bots and Simulations > Bot Tavern

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

(1/5) > >>

spike43884:
Its by far not finished...BUT Its not charging *nearby* a bot then attacking, it just sort of drifts to the right slightly, also I have no clue what values to put in .aimsx and .aimdx, I want it to turn to (left or right) towards the pray until its in eye5 then the eye5 gene's (gene 3 and 4) take priority (preferably I'd like to combine them into 1 gene) and it will chase + kill its food...The problem is in GENE 3 and GENE 4 I believe, but im not sure what it is, and I'll feel like a doofus when Im told it... Btw, the description where it says Refer to Sentry-Rule is just a word doc on my computer for how it'll hunt, because I felt like hunting in a new way...
Also, I've used all eyes from 1 to 9 but is there more than that, surely there is backwards eyes because my (very very stupid mutation that i saved) Singula_Rangercus, has a eye facing backwards on its eyegrid...Because preferably gene 1 will have eyes in 360 degrees active, on an as-close-to-standard range as possible, if not higher range...so would it be possible to enter .eye0 and it work, or .eye10 and .eye11 and .eye12?

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


'Gene 0 Eye settings
cond
*.robage 5 <
start
-571 .eye2dir store
571 .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 = *.eye3 0 = *.eye4 0 = *.eye5 0 = *.eye6 0 = *.eye7 0 = *.eye8 0 = *.eye9 0 = or or or or or or or
*.refeye *.myeye !=
start
157 rnd .aimdx store
stop


'Gene 2 Food Sighted
'*********************
cond
*.eye1 0 >
*.refeye *.myeye !=
start
140 .aimdx
stop

*.eye2 0 >
*.refeye *.myeye !=
start
105 .aimdx
stop

*.eye3 0 >
*.refeye *.myeye !=
start
70 .aimdx
stop

*.eye4 0 >
*.refeye *.myeye !=
start
35 .aimdx
stop

cond
*.eye6 0 >
*.refeye *.myeye !=
start
35 .aimsx
stop

cond
*.eye7 0 >
*.refeye *.myeye !=
start
70 .aimsx
stop

cond
*.eye8 0 >
*.refeye *.myeye !=
start
105 .aimsx
stop

cond
*.eye9 0 >
*.refeye *.myeye !=
start
140 .aimsx
stop
'*********************


' Gene 3 Chase Food
cond
*.eye5 0 > *.eye5 50 < and
*.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 ---

EDIT: For some reason, although its mad spinning will never end under any conditions, though when it see's a not-same-species bot it will slow down, if it see's a bot of its own species it will continue spinning and drifting, but will only then shoot...Weird? I didn't ask it to shoot when it see's family?

spike43884:
Please! Please help!
Honestly, Im not sure how to fix it.

spike43884:
Still waiting for help, have I killed off the community, or are they trying to find a better way to kill off aggrodwarfs.

Shadowgod2:
Sorry I'll get on it this weekend. Btw I already beat it in my swarm bot f1

spike43884:

--- Quote from: Shadowgod2 on November 05, 2014, 03:54:16 PM ---Sorry I'll get on it this weekend. Btw I already beat it in my swarm bot f1

--- End quote ---
Heh cool.
BTW I removed the munch on the sun script...
I am entering it soon, let me just update the code on this post, I've fixed it slightly, but its still badly broken.

Navigation

[0] Message Index

[#] Next page

Go to full version