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 - strangers

Pages: [1]
1
Multi-Bots / Proeliator Briareus(MB)(stangers)03-11-07
« on: November 03, 2007, 11:39:47 AM »
My first working Multibot:
Code: [Select]
'Proeliator Briareus
'MultiBot Prototype
'By Strangers

cond
*.robage 0 =
start
.tie inc
.numties .memloc store
.in1 .ploc store
stop

cond
*.numties 0 =
*.eye5 0 =
start
50 .repro store
stop

cond
*.numties 0 =
*.eye5 0 >
start
mult 314
stop

cond
*.eye5 0 >
*.refeye *.myeye =
*.numties 1 <
*.memval 1 <
start
.tie inc
stop

cond
*.eye5 0 >
*.refeye *.myeye =
*.numties 0 >
*.refmulti 1 =
start
mult 314 rnd
stop

cond
*.numties 1 =
start
1 .readtie store
1 .tienum store
250 .fixlen store
628 .fixang store
50 .sharenrg store
stop

cond
*.tiepres 0 >
start
*.tiepres .tienum store
stop

cond
*.tiepres 1 !=
*.tiepres 0 >
start
*.tiepres .deltie store
stop

cond
*.numties 1 =
*.trefage *.robage >
start
1 .sharewaste store
stop

cond
*.numties 2 =
*.multi 1 =
start
*.tiepres .deltie store
stop

cond
*.trefeye 0 =
start
99 .sharenrg store
.deltie inc
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye5 0 =
start
15 .up store
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye1 *.eye5 >
start
mult -140
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye9 *.eye5 >
start
mult 140
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye3 *.eye5 >
start
mult -70
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye7 *.eye5 >
start
mult 70
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye1 *.eye5 >
start
mult -140
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye9 *.eye5 >
start
mult 140
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye3 *.eye5 >
start
mult -70
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye7 *.eye5 >
start
mult 70
stop

cond
*.trefage *.robage <
*.nrg 10000 >
start
1 .deltie store
mult 314
stop

cond
*.numties 1 =
*.trefage *.robage >
*.eye5 0 >
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop

cond
*.numties 1 =
*.eye5 30 >
*.refeye *.myeye !=
*.trefage *.robage >
*.multi 0 !=
start
*.refxpos *.refypos angle .setaim store
-1 .shoot store
-16 .shootval store
*.refvelup .up store
*.refveldx .dx store
stop

cond
*.numties 1 =
*.multi 1 =
*.eye5 30 >
*.refeye *.myeye =
*.trefage *.robage >
*.refmulti 0 =
*.multi 0 !=
start
*.refxpos *.refypos angle .setaim store
-1 .shoot store
-16 .shootval store
*.refvelup .up store
*.refveldx .dx store
stop

cond
*.numties 1 =
*.shflav 0 !=
*.shflav -2 !=
*.multi 0 !=
start
*.shang .aimshoot store
64 .shootval store
-6 .shoot store
0 .shflav store
stop

cond
start
.aimdx store
stop

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

cond
*.nrg 2000 >
*.body 4000 <
start
100 .strbody store
stop

cond
*.nrg 500 <
start
100 .fdbody store
stop

cond
*.nrg 1000 >
start
.strpoison inc
stop

end

2
Bugs and fixes / Torroidal Trouble 2.43n RESOLVED 2.43p
« on: October 27, 2007, 02:41:57 PM »
I haven't checked this in 2.43o, but in 2.43n in non-torroidal sims my bots dissapear off screen.
I was using standard F1 conditions with torroidal turned off.

3
Bugs and fixes / Mbot League Problem in 2.43n RESOLVED 2.43o
« on: October 27, 2007, 02:37:29 PM »
In the Multibot league running under 2.43n it's referencing Symboticus 2.5 from the folder "Multibotleagu" instead of "Multibotleague". Then after the first win against Symboticus 2.5 it tries to read it from "Multibotleag", then immeadiately after from "Multibotlea". For the second win it eventually works its way down to "Multib", taking one letter off at a time. But apparently, if you press the cancel button realy fast several times in a row, it works fine. Freakin' weird...

4
Suggestions / Block coding
« on: October 24, 2007, 04:51:01 PM »
Well, as I was staying up last night watching Transformers, I got to thinking, how could one organize bot code and enable sexual reproduction?; and so I thought of block coding, rather than explain I will show:
Code: [Select]
/initialize block
cond
*.robage 0 =
start
200 rnd 55 store
.eye5 .ploc store
256 41 store
7 989 store
stop

cond
start
stop

cond
start
stop
/end block

/search block
cond
*.eye5 0 =
start
mult 50
stop

cond
*.refeye *.myeye !=
*.eye1 *.eye5 >
start
mult -140
stop

cond
*.refeye *.myeye !=
*.eye9 *.eye5 >
start
mult 140
stop

cond
*.refeye *.myeye !=
*.eye3 *.eye5 >
start
mult -70
stop

cond
*.refeye *.myeye !=
*.eye7 *.eye5 >
start
mult 70
stop
/end block

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

cond
start
stop

cond
start
stop
/end block

/shoot1 block
cond
*.eye5 40 >
*.refeye 0 =
*.robage 0 !=
start
*.refxpos *.refypos angle .setaim store
.shoot dec
16 .shootval store
*.refvelup .up store
*.refveldx .dx store
stop
/end block

/shoot2 block
cond
*.eye5 40 >
*.refeye *.myeye !=
*.refeye 0 !=
*.refpoison 0 >
*.robage 0 !=
start
*.refxpos *.refypos angle .setaim store
-6 .shoot store
16 .shootval store
*.refvelup .up store
*.refveldx .dx store
stop
/end block

/shoot3 block
cond
*.eye5 40 >
*.refeye *.myeye !=
*.refeye 0 !=
*.refpoison 0 =
*.robage 0 !=
start
*.refxpos *.refypos angle .setaim store
.shoot dec
32 .shootval store
*.refvelup .up store
*.refveldx .dx store
stop
/end block

/shoot4 block
cond
*.shflav 0 !=
*.shflav -2 !=
start
*.shang .aimshoot store
64 .shootval store
-6 .shoot store
0 .shflav store
stop
/end block
See, with each set of genes having a "block", during sexual reproduction the computer could look at the parents blocks and genes and randomly choose which to give to the offspring, and if one has a certain block and the other doesn't it would have a 50/50 chance of receiving the block or not. This would make sexual reproduction les likely to break a bot.
 Each block type would have a gene limit, if your under the limit just add a blank gene:
Code: [Select]
cond
start
stop
or for evolution sims:
cond
00000000000
start
00000000000
stop
This would also open up oppurtunities for new viruses such as:
Code: [Select]
/virus block
cond
*.nrg 1000 >
*.eye5 20 >
start
100 .vshoot store
*.thisblock .mkvirus store
stop

cond
*.myeye 20 !=
start
80 .repro store
300 .vshoot store
stop

cond
*.myeye 20 !=
*.refeye *.myeye =
start
-1 .shoot store
32 .shootval store
*.refxpos *.refypos angle .setaim store
stop
/end block
stop
Block viruses could be limited to just 3 genes, anyless and they'd be no different than regular viruses, possibly even specific block virus sysvars like .bvtimer, .bvshoot, and .mkbvirus.
Any questions, or does it need further explanation?

5
Bugs and fixes / 2.43m League Trouble-again RESOLVED 2.43N
« on: October 11, 2007, 07:56:43 PM »
In 2.43m the program is referencing the F1 league table as just leaguetable.txt instead of f1leaguetable.txt and F1league folder as just league, just thought you should know.

6
Bugs and fixes / Two Bugs(maybe) 2.43j RESOLVED 2.43k
« on: September 27, 2007, 09:11:00 PM »
When I change a bot in the 'New Sim' window, then open up the mutation window for the bot, the bot changes back to the last bot that was in the same place, this happens EVERY time, no exceptions.

When I try to run the F1 league the standings window opens but then a runtime error appears:
"Run-time error '5': invalid procedure call or argument"
then when I click ok another window appears:
"League Name Needed-
No league name. League must have a name."
then DB crashes.
Sorry if this has been disscussed already or needs to be moved.

7
Bot Tavern / My first SG bot
« on: July 23, 2007, 11:46:27 PM »
 
MOVED FARTHER DOWN THE LINE
Well first off I'd like to say, SG bots get complicated, fast. Apparently somethings is going wrong in the initialize gene and the search gene, so by extension it doesn't move or avoid conspecs. Originally this was supposed to be a SGized version of P. Gryphus, but once I get the kinks worked out this will be its own bot. Any help will be appreciated. Thanks in advance!

8
Bug reports / Overflow
« on: June 27, 2007, 12:31:23 AM »
While running an evo sim with Animal Minimalis, after some 200k cycles I got an overflow error. I was running it with all the speed increasing things turned on.  

http://h1.ripway.com/Strangers007/ErrorSim.zip

9
F1 bots / Proeliator Gryphus (F1)(Strangers)-3.3.07
« on: March 25, 2007, 03:23:11 PM »
Code: [Select]
'Proeliator Gryphus
'Tie Feeder/Hunter Prototype
'by Strangers


'Initialize
'*************
cond
*.robage 0 =
start
200 rnd 55 store
.eye5 .ploc store
256 41 store
7 989 store
stop

'Spinning
'************
cond
*.eye5 0 =
start
mult 50
stop

'Wide search 1
'*******************
cond
*.refeye *.myeye !=
*.eye1 *.eye5 >
start
mult -140
stop

'Wide search 2
'*******************
cond
*.refeye *.myeye !=
*.eye9 *.eye5 >
start
mult 140
stop

' Simple search pattern
'***************************
cond
*.refeye *.myeye !=
*.eye3 *.eye5 >
start
mult -70
stop

'Simple search pattern part 2
'**********************************
cond
*.refeye *.myeye !=
*.eye7 *.eye5 >
start
mult 70
stop

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

' Obtaining Food and Shooting
'***********************************
cond
*.eye5 40 >
*.refeye 0 =
*.robage 0 !=
start
*.refxpos *.refypos angle .setaim store
.shoot dec
16 .shootval store
*.refvelup .up store
*.refveldx .dx store
stop

cond
*.eye5 40 >
*.refeye *.myeye !=
*.refeye 0 !=
*.refpoison 0 >
*.robage 0 !=
start
*.refxpos *.refypos angle .setaim store
-6 .shoot store
16 .shootval store
*.refvelup .up store
*.refveldx .dx store
stop

cond
*.eye5 40 >
*.refeye *.myeye !=
*.refeye 0 !=
*.refpoison 0 =
*.robage 0 !=
start
*.refxpos *.refypos angle .setaim store
.shoot dec
32 .shootval store
*.refvelup .up store
*.refveldx .dx store
stop

cond
*.shflav 0 !=
*.shflav -2 !=
start
*.shang .aimshoot store
64 .shootval store
-6 .shoot store
0 .shflav store
stop

'Avoid conspecifics
'**********************
cond
*.refeye *.myeye =
start
*.maxvel *.vel add *.eye5 mult 50 div 15 ceil .dx store
stop

‘Rotate back and continue feeding
'****************************************
cond
*50 0 >
start
50 dec
mult -628
stop

'Reproduction
'****************
cond
*.nrg 3000 >
*.body 300 >
start
mult 628
25 .repro store
0 .shoot store
50 inc
stop

‘Perform the rotation
'************************
cond
start
.aimdx store
stop

'Tie Feeding
'****************
cond
*.eye5 30 >
*.refeye *.myeye !=
start
*55 .tie store
*55 .readtie store
stop

cond
*.numties 0 >
start
-1 .tieloc store
-1000 .tieval store
*55 .tienum store
stop

Cond
*.trefeye *.myeye =
start
*55 .deltie store
stop

cond
*.tiepres *55 !=
start
*.tiepres .deltie store
stop

cond
*.multi 1 =
*.trefeye *.myeye !=
start
99 .sharenrg store
.sharewaste inc
stop

'Body Management
'***********************
cond
*.nrg 1000 >
*.body 5000 <
start
100 .strbody store
stop

cond
*.nrg 500 <
start
100 .fdbody store
stop

'Slime Management
'************************
cond
*.slime 300 <
*.nrg 3000 >
start
300 *.slime sub .mkslime store
stop

'Shell Management
'**********************
cond
*.shell 50 <
*.nrg 3000 >
start
50 *.shell sub .mkshell store
stop

'Poison
'********
cond
*.poison 500 <
*.nrg 3000 >
start
500 *.poison sub .strpoison store
stop

'Waste Management
'*************************
cond
*.waste 100 >
start
1 .backshot store
-4 .shoot store
*.waste .shootval store
stop

'Anti Virus and Defense
'***************************
cond
*.mkvirus 0 >
start
*.mkvirus .delgene store
stop

cond
*.vtimer 0 >
start
0 .vshoot store
stop

cond
*.shoot -2 =
start
0 .shoot store
stop

cond
*.fixpos 0 >
start
.fixpos dec
stop

'Chameleon Defense
'***********************
cond
start
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
*.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5 *.eye5
stop

end


10
Bot Tavern / Bot Transition- 2.37.6 to 2.43
« on: February 11, 2007, 01:53:58 AM »
I don't know if anyone remembers me but here goes, I am still working on this bot which started here with a thread about tie feeding, now when I started I was working with 2.37.6 and I recently switched to 2.43. Now my bot acts kind of like a retard and I think I need some help. Any tips/info would be appreciated. Then again, I might be overreacting/setting my standards to high, and this might be a good bot.

Edit: Here's the new, new, new code.

Code: [Select]
'Test 1.1
'Tie Feeder/Hunter Prototype
'Strangers

def counter 51


'Initialize
'*************
cond
*.robage 0 =
start
100 rnd 55 store
.eye5 .ploc store
.tie inc
stop

cond
*.robage 1 =
start
.deltie inc
stop

'Wide search 1
'*******************
cond
*.eye1 *.eye5 >
start
mult -140
stop

'Wide search 2
'*******************
cond
*.eye9 *.eye5 >
start
mult 140
stop

' Simple search pattern
'***************************
cond
*.eye3 *.eye5 >
start
mult -70
stop

'Simple search pattern part 2
'**********************************
cond
*.eye7 *.eye5 >
start
mult 70
stop

' Moving
'**********
cond
*.vel 40 <
*.refeye *.myeye !=
start
40 *.vel sub 2 div .up store
stop

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

' Obtaining Food
'*******************
cond
*.eye5 40 >=
*.refeye 0 =
start
-1 .shoot store
16 .shootval store
40 *.vel sub 2 div .up store
stop

cond
*.eye5 40 >
*.refeye *.myeye !=
*.refeye 0 !=
*.refpoison 0 >
start
*.refxpos *.refypos angle .setaim store
-6 .shoot store
16 .shootval store
*.refvelup .up store
stop

cond
*.eye5 40 >
*.refeye *.myeye !=
*.refeye 0 !=
*.refpoison 0 =
start
*.refxpos *.refypos angle .setaim store
-1 .shoot store
16 .shootval store
*.refvelup .up store
stop

cond
*.shflav 0 !=
*.shflav -2 !=
start
*.shang .aimshoot store
32 .shootval store
-6 .shoot store
0 .shflav store
stop

'Avoid conspecifics
'**********************
cond
*.eye5 0 >
*.refeye *.myeye =
*.refvel *.vel >
start
mult 180
*.refvel *.vel sub 2 div .up store
stop

cond
*.eye5 0 >
*.refeye *.myeye =
*.refvel *.vel <=
start
mult 180
*.vel *.refvel sub 2 div .up store
stop

‘Rotate back and continue feeding
'****************************************
cond
*50 0 >
start
mult 628
50 dec
stop

'Reproduction
'****************
cond
*.nrg 1000 >
*.body 500 >
start
50 inc
30 .repro store
mult 628
stop

‘Perform the rotation
'************************
cond
start
.aimdx store
stop

'Tie Feeding
'****************
cond
*.eye5 30 >
*.eye4 *.eye6 =
*.refeye *.myeye !=
*.numties 0 >=
*.numties 5 <
start
*55 .tie store
stop

cond
*.numties 0 >
*.counter 19 <
start
-1 .tieloc store
-1000 .tieval store
*55 .tienum store
.counter inc
stop

cond
*.numties 0 >
*.counter 19 =
start
*55 .deltie store
stop

cond
*.numties 0 =
*.counter 0 !=
start
0 .counter store
stop

cond
*.counter 19 >
*.counter 0 < or
start
0 .counter store
stop

Cond
*.trefeye *.myeye =
start
*55 .deltie store
stop

cond
*.tiepres *55 !=
*.tiepres 0 >
start
*.tiepres .deltie store
stop

'Body Management
'***********************
cond
*.nrg 1000 >
*.body 5000 <
start
100 .strbody store
stop

cond
*.nrg 100 <
start
100 .fdbody store
stop

'Slime Management
'************************
cond
*.slime 300 <
*.nrg 3000 >
start
100 .mkslime store
stop

'Poison
'********
cond
 *.poison 500 <
*.nrg 3000 >
start
 50 .strpoison store
stop

'Waste Management
'*************************
cond
*.waste 100 >
start
1 .backshot store
-4 .shoot store
*.waste .shootval store
stop

'Anti Virus
'**************
cond
*.mkvirus 0 >
start
0 .mkvirus store
stop

cond
*.vtimer 0 >
start
0 .vshoot store
stop

end

11
DNA - General / Tie Feeding Idea
« on: December 10, 2006, 01:45:33 PM »
Well, I'm working on tie feeding and was wondering if I could modify the tie feeding gene from Purple Youko's 2.13 tutorial to allow a bot to pick up a veggie or bot, attach to it for set amount of time and extract a set amount of energy then release it, reproduce, and repeat. This is all I have:
Code: [Select]
cond
*.eye5 77 !=
*.eye5 30 >
*.eye4 *.eye6 =
*.refeye *56 !=
*.numties 0 =
start
*55 .tie store
*56 .readtie store
stop

cond
*.numties 0 >
start
-1 .tieloc store
*.refenergy 2 div .tieval store
*55 .tienum store
stop

Cond
*.trefeye *56 =
start
*55 .deltie store
stop
*55 Has been set as a random number before hand.
*56 Has been set for the .refeye value before hand.
Any suggestions?
And I also wondering if I could modify the gene to cause it to attach to a veg and another bot and make it transfer waste from the veg into the first bot and then into the second bot until it reaches the waste threshold and dies. Wait, does reaching the waste threshold make a bot die?.....

Pages: [1]