Author Topic: Good god, my 2nd bot and I cant see what i've broken in it's movement  (Read 10523 times)

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
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: [Select]
'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

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?
« Last Edit: November 06, 2014, 11:19:31 AM by spike43884 »
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #1 on: November 03, 2014, 11:36:28 AM »
Please! Please help!
Honestly, Im not sure how to fix it.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #2 on: November 05, 2014, 12:27:29 PM »
Still waiting for help, have I killed off the community, or are they trying to find a better way to kill off aggrodwarfs.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #3 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

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #4 on: November 06, 2014, 11:18:55 AM »
Sorry I'll get on it this weekend. Btw I already beat it in my swarm bot f1
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.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #5 on: November 06, 2014, 11:19:47 AM »
Updated to the most recent code.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #6 on: November 08, 2014, 11:39:22 AM »
all current bugs out but definitely needs improving on your eye system
Code: [Select]
'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

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #7 on: November 08, 2014, 01:45:02 PM »
all current bugs out but definitely needs improving on your eye system

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.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #8 on: November 08, 2014, 04:37:12 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.

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.

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #9 on: November 09, 2014, 05:50:53 AM »

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.

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.
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!)
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #10 on: November 09, 2014, 09:33:05 AM »
just change the eye pos

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #11 on: November 09, 2014, 11:00:19 AM »
just change the eye pos
You say that as if its second nature.
Its not.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #12 on: November 09, 2014, 12:19:18 PM »
it's not for me either. it took almost a day to get it where they are now, 2 months to just make the bot even with bugs in it.

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #13 on: November 09, 2014, 03:41:30 PM »
it's not for me either. it took almost a day to get it where they are now, 2 months to just make the bot even with bugs in it.
Ahh fudge, thats pretty hard.
heh, shadow if you want a challenge btw, I came up with a new both gene system thingy-ma-jigger...For even better adapation w/out mutations
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
« Reply #14 on: November 09, 2014, 04:27:31 PM »
the reason i took so long to do it is because i was just trying to figure it out myself and i can't work on it all the time because of work and family.