Darwinbots Forum

Bots and Simulations => Bot Tavern => Topic started by: spike43884 on November 01, 2014, 05:53:14 PM

Title: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 on November 01, 2014, 05:53:14 PM
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?
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 on November 03, 2014, 11:36:28 AM
Please! Please help!
Honestly, Im not sure how to fix it.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 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.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: 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
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 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.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 on November 06, 2014, 11:19:47 AM
Updated to the most recent code.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Shadowgod2 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
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 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.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Shadowgod2 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.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 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!)
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Shadowgod2 on November 09, 2014, 09:33:05 AM
just change the eye pos
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 on November 09, 2014, 11:00:19 AM
just change the eye pos
You say that as if its second nature.
Its not.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Shadowgod2 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.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 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
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Shadowgod2 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.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 on November 10, 2014, 11:30:51 AM
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.
Still, amazing it took you so long, I just developed my own one, and...I did it, in 1 day, to be exact...20 minutes in 1 day.
though, that was whilest I was sleep-deprived, so lets say 30 minutes for me to do it normally (I program better when sleep-deprived?)
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Peter on November 10, 2014, 12:54:19 PM
I code best when I'm drunk. Around 1.33g/L alcohol in my blood works best.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 on November 10, 2014, 02:19:04 PM
I code best when I'm drunk. Around 1.33g/L alcohol in my blood works best.
Well...I'll have to try that some time, though maybe not quite at drunk...
In general, when im sleep deprived (not bored, sleep deprived) im more obedient, I seem to just not read the tutorials without going, uuh, skip a few lines... when Im not sleep deprived...
Could just be because when we hit this point, we lose all contact with the world, and can finally code...?
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Botsareus on December 02, 2014, 09:36:08 PM
Borderline productive.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Botsareus on December 02, 2014, 09:39:35 PM
Hell is seriously depressing, the back track of thoughts/posts is pure torture.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: spike43884 on December 03, 2014, 11:23:31 AM
Never. Think. Of the. Past.
Good lesson there bot.
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Botsareus on December 03, 2014, 07:23:47 PM
Grats!
Title: Re: Good god, my 2nd bot and I cant see what i've broken in it's movement
Post by: Botsareus on December 03, 2014, 07:25:30 PM
It is choose to think of the past.