Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Azhtabak

Pages: [1]
1
F1 bots / My First Attempt at a Bot
« on: February 23, 2008, 03:02:14 PM »
This is my first attempt at making a bot, a fairly basic shot-bot. It was helped massively by Purple Youko's tutorial, which I took a few of the genes from (mainly the turning reproduction and the tie-severing - I hope that was ok?), though I couldn't get his multi-bot to work, along with the tutorials from the site - particularly Elite's Bot Tutorial. I don't know if it's ready for league usage - it beat a few of the weaker F2 bots but that's it - but I thought I would post it anyway, to see what people thought of it.

Code: [Select]
' M-Bot 1
' My first bot - hopefully not too bad
' Shot-Bot - Helped _massively_ by Purple Youko's tutorial
##############################################################
cond
*.eye1 0 = and
*.eye2 0 = and
*.eye3 0 = and
*.eye4 0 = and
*.eye5 0 = and
*.eye6 0 = and
*.eye7 0 = and
*.eye8 0 = and
*.eye9 0 =
start
314 .aimdx store
stop

cond
*.eye1 0 != and
*.eye5 0 =
start
-140 .aimdx store
stop

cond
*.eye2 0 != and
*.eye5 0 =
start
-105 .aimdx store
stop

cond
*.eye3 0 != and
*.eye5 0 =
start
-70 .aimdx store
stop

cond
*.eye4 0 != and
*.eye5 0 =
start
-35 .aimdx store
stop

cond
*.eye6 0 != and
*.eye5 0=
start
35 .aimdx store
stop

cond
*.eye7 0 != and
*.eye5 0 =
start
70 .aimdx store
stop

cond
*.eye8 0 != and
*.eye5 0 =
start
105 .aimdx store
stop

cond
*.eye9 0 != and
*.eye5 0 =
start
140 .aimdx store
stop

cond
*.eye5 0 !=
*.refeye *.myeye !=
*.refshoot *.myshoot !=
start
40 *.vel sub 2 div .up store
stop

cond
*.eye5 0 !=
*.refeye *.myeye !=
*.refshoot *.myshoot !=
start
8 .shootval store
-1 .shoot store
stop

cond
*.aimdx 0 !=
*.aimdx 180 !=
start
*.aimdx 10 div .dx store
stop

cond
*.eye5 0 !=
*.refeye *.myeye =
start
628 .aimdx store
stop

cond
*50 0 >
start
628 .aimdx store
50 dec
stop

cond
*.nrg 10000 >
start
50 .repro store
628 .aimdx store
50 inc
stop

cond
*.waste 100 >
start
-4 .shoot store
*.waste .shootval store
stop

cond
*.robage 0 =
start
.tie inc
stop

cond
*.robage 0 !=
start
.deltie inc
stop

cond
*.shflav 0 !=
*.shflav -2 !=
start
1256 *.shang sub .aimshoot store
8 .shootval store
-1 .shoot store
0 .shflav store
stop

end

2
Newbie / Animal Minimalis Not Working
« on: February 19, 2008, 03:15:11 PM »
Hi. I recently downloaded this and started trying it out, and am finding it very interesting. I hope to start making my own bots soon, if I can work out how  

However, I have been unable to make Animal Minimalis work - I copied it from this board as a sample basic bot, but it doesn't seem to be working - it does not reproduce, spin or hunt for food, and will occasionally just shoot forwards in a straight line. If it bumps into an enemy by chance, it seems to attack them, but that is all.

Could anyone help me? This is the script running for it, copied exactly from the thread:

cond
*.eye5 0 >
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop

cond
*.eye5 50 >
*.refeye *.myeye !=
start
-1 .shoot store
*.refvelup .up store
stop

cond
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop

cond
*.nrg 20000 >
start
10 .repro store
stop
end

Pages: [1]