Darwinbots Forum
Bots and Simulations => Bot Tavern => Topic started by: spike43884 on October 26, 2014, 06:19:29 AM
-
Teriyaki is my first bot that i've actually programmed (I wanted to add ties but the tutorial for that was no-where near as good as the advanced shotbot tutorial). There may be some bugs so i'd happily have them pointed out...I've been doing so much reading through code I started thinking I needed tea because my .nrg was to low :blueblob:
Anyway...Heres the code for it
'Teriyaki
'By: Spike43884
'Taste like chicken - Both .sexrepro and
'.repro in nessisary circumstances for
'amazing survival, will poop on enemies.
'Will incorporate -6 .shoot when I understand
'evaulating.
' Gene 1 Some stuff to do with poison
cond
*.robage 0 =
start
.shoot .eye5 .ploc store
.shoot .shoot .ploc store
.shoot .refvelup .ploc store
stop
' Gene 2 Food Finder
cond
*.eye5 0 > *.eye4 0 > *.eye6 0 > or
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 40 add .up store
stop
' Gene 3 Mate Finder
cond
*.eye5 0 >
*.refeye *.myeye =
*.nrg 15000 >
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
' Gene 4 Eat Food
cond
-6 .shootval store
*.eye5 50 >
*.refeye *.myeye !=
start
0 .aimshoot store
0 .backshot store
-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 DONT EAT ME. I DONT TASTE GOOD!
cond
*.poison 500 <
start
50 .strpoison store
stop
' Gene 8 Shoot Sperm
cond
*.eye5 50 >
*.refeye *.myeye =
*.nrg 15000 > *.nrg 30000 < and
start
-8 .shoot store
*.refvelup .up store
stop
' Gene 9 Reproduce
cond
*.nrg 15000 > 30000 < and
start
10 .sexrepro store
stop
' Gene 10 Reproduce 2
cond
*.nrg 30000 >
start
10 .repro store
stop
' Gene 11 Poop on others Waste
cond
*.waste 20 >
*.eye5 0 > *.eye4 0 > *.eye3 0 > or
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 40 add .up store
stop
' Gene 12 Poop on others Continuted
cond
*.waste 20 >
*.eye5 50 >
*.refeye *.myeye !=
start
-4 .shoot store
*.waste -20 .shootval store
stop
' Gene 13 Nobody to poop on CONSTIPATION Waste
cond
*.waste 35 .
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop
' Gene 14 OUCH! Nobody likes a bully.
cond
*.shflav 0 !=
*.shflav -2 !=
*.shflav -8!=
start
1256 *.shang sub .aimshoot store
8 .shootval store
-6 .shoot store
0 .shflav store
stop
' Gene 15 Lets Get'em
cond
*.shflav 0 !=
*.shflav -8 !=
*.eye5 0 > *.eye4 0 > *.eye6 0 > or
*.refeye *.myeye !=
start
.backshot inc
-1 .shoot store
stop
end
Ok, fixed a few errors.
-
soooo many bugs with your bot.... i will get to them latter.
your current issue is you need to set your shoot aim. i think because you used backshot it set your shot aim to behind you but i will have to test this later.
i think you even doubled a gene in there "mate finder"
-
:o Oh yes.
Reproduction doesn't seem to be the main issue right now, but I will remove the 2nd mate finder...
So shootaim, how do I use that again? Only advanced shotbot tutorial and the basic bot tutorial were written in a way which, I was easily understanding :/
-
in the feed gene put in
0 .aimshoot store
0 .backshot store
-
in the feed gene put in
0 .aimshoot store
0 .backshot store
Added that and removed the 2ND mate finder...Going to test in a few *Ideal* conditions sims,
So if I set in 1 gene a aiming, I have to set specific aiming for each gene?
Surely I need to put that in the shoot sperm gene aswell?
You should write a few tutorials on the wiki, your actually quite helpful :P Maybe for each of the main functions (ties, shoot, aim, eyes, reproduce, move) and point out common mistakes by newbs like me :P
-
in the feed gene put in
0 .aimshoot store
0 .backshot store
Shadow, its still not firing forwards...Problemo Disastero!!!
-
Please, someone help!
God, I dont see why its not still working!
-
sorry it took so long to do but here you go, all bugs removed
'Teriyaki
'By: Spike43884
'Taste like chicken - Both .sexrepro and
'.repro in nessisary circumstances for
'amazing survival, will poop on enemies.
'Will incorporate -6 .shoot when I understand
'evaulating.
' Gene 1 Some stuff to do with poison
cond
*.robage 0 =
start
2 rnd 498 mult 491 sub 1 floor .ploc store
0 *.ploc .eye5 sub sgn 1 add mult
-50 *.ploc .up sub sgn -1 mult 1 add mult add
-2 *.ploc .shoot sub sgn abs -1 mult 1 add mult add
.pval store
stop
' Gene 2 Food Finder
cond
*.eye5 0 >
*.eye4 0 > or
*.eye6 0 > or
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 40 add .up store
stop
' Gene 3 Mate Finder
cond
*.eye5 0 >
*.refeye *.myeye =
*.nrg 15000 >
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
' Gene 4 Eat Food
cond
*.eye5 50 >
*.refeye *.myeye !=
start
0 .aimshoot store
0 .backshot store
1 rnd 5 mult 6 sub .shoot store
-6 .shootval store
*.refvelup .up store
stop
' Gene 5 Avoiding Family
cond
*.eye5 0 =
*.refeye *.myeye = or
*.refnrg 15000 <
start
314 rnd .aimdx store
stop
' Gene 6 DONT EAT ME. I DONT TASTE GOOD!
cond
*.poison 500 <
start
50 .strpoison store
stop
' Gene 8 Shoot Sperm
cond
*.eye5 50 >
*.refeye *.myeye =
*.refnrg 15000 >
start
-8 .shoot store
*.refvelup .up store
stop
' Gene 9 Reproduce
cond
*.nrg 15000 >
*.fertilized 0 >
start
10 .sexrepro store
stop
' Gene 10 Reproduce 2
cond
*.nrg 30000 >
start
10 .repro store
stop
' Gene 11 Poop on others Waste
cond
*.eye5 0 >
*.eye4 0 > or
*.eye3 0 > or
*.refeye *.myeye !=
*.waste 20 > and
start
*.refveldx .dx store
*.refvelup 40 add .up store
stop
' Gene 12 Poop on others Continuted
cond
*.waste 50 >
*.eye5 50 >
*.refeye *.myeye !=
start
-4 .shoot store
*.waste .shootval store
stop
' Gene 13 Nobody to poop on CONSTIPATION Waste
cond
*.waste 100 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop
' Gene 14 OUCH! Nobody likes a bully.
cond
*.shflav 0 !=
*.shflav -2 !=
*.shflav -8!=
start
*.shang .setaim store
stop
end
-
sorry it took so long to do but here you go, all bugs removed
'Teriyaki
'By: Spike43884
'Taste like chicken - Both .sexrepro and
'.repro in nessisary circumstances for
'amazing survival, will poop on enemies.
'Will incorporate -6 .shoot when I understand
'evaulating.
' Gene 1 Some stuff to do with poison
cond
*.robage 0 =
start
2 rnd 498 mult 491 sub 1 floor .ploc store
0 *.ploc .eye5 sub sgn 1 add mult
-50 *.ploc .up sub sgn -1 mult 1 add mult add
-2 *.ploc .shoot sub sgn abs -1 mult 1 add mult add
.pval store
stop
' Gene 2 Food Finder
cond
*.eye5 0 >
*.eye4 0 > or
*.eye6 0 > or
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 40 add .up store
stop
' Gene 3 Mate Finder
cond
*.eye5 0 >
*.refeye *.myeye =
*.nrg 15000 >
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
' Gene 4 Eat Food
cond
*.eye5 50 >
*.refeye *.myeye !=
start
0 .aimshoot store
0 .backshot store
1 rnd 5 mult 6 sub .shoot store
-6 .shootval store
*.refvelup .up store
stop
' Gene 5 Avoiding Family
cond
*.eye5 0 =
*.refeye *.myeye = or
*.refnrg 15000 <
start
314 rnd .aimdx store
stop
' Gene 6 DONT EAT ME. I DONT TASTE GOOD!
cond
*.poison 500 <
start
50 .strpoison store
stop
' Gene 8 Shoot Sperm
cond
*.eye5 50 >
*.refeye *.myeye =
*.refnrg 15000 >
start
-8 .shoot store
*.refvelup .up store
stop
' Gene 9 Reproduce
cond
*.nrg 15000 >
*.fertilized 0 >
start
10 .sexrepro store
stop
' Gene 10 Reproduce 2
cond
*.nrg 30000 >
start
10 .repro store
stop
' Gene 11 Poop on others Waste
cond
*.eye5 0 >
*.eye4 0 > or
*.eye3 0 > or
*.refeye *.myeye !=
*.waste 20 > and
start
*.refveldx .dx store
*.refvelup 40 add .up store
stop
' Gene 12 Poop on others Continuted
cond
*.waste 50 >
*.eye5 50 >
*.refeye *.myeye !=
start
-4 .shoot store
*.waste .shootval store
stop
' Gene 13 Nobody to poop on CONSTIPATION Waste
cond
*.waste 100 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop
' Gene 14 OUCH! Nobody likes a bully.
cond
*.shflav 0 !=
*.shflav -2 !=
*.shflav -8!=
start
*.shang .setaim store
stop
end
THANKS!