General > Multi-Bots

Tie Struggler

(1/2) > >>

Testlund:
This will be a multibot until generation 3. Then it stops working.  :angry:


--- Code: ---'*************************************
'*          Tie Struggler            *
'*                                   *
'*    Generation 3 can't tie! >:-(   *
'*************************************

cond
*.robage 0 =
start
67 .memloc store
101 67 store
.tie inc
32 .stifftie store
stop

cond
*.numties 1 < and
*.refxpos 0 > and
*.memval *67 =
start
*.refxpos *.refypos angle .setaim store
.tie inc
32 .stifftie store
stop

cond
*.refxpos 0 > and
*.memval *67 !=
start
*.refxpos *.refypos angle .setaim store
-1 .shoot store
stop

cond
*.nrg 16000 > and
*.numties 3 <
start
50 .repro store
314 rnd .aimdx store
stop

cond
*.nrg 16000 > and
*.numties 2 >
start
*.tiepres .tienum store
32 .tieval store
-1 .tieloc store
stop

cond
*.nrg 8000 < and
*.numties 0 >
start
*.tiepres .tienum store
-32 .tieval store
-1 .tieloc store
stop

cond
*.body 256 <
start
32 .strbody store
stop

--- End code ---

Panda:
What stops working about it?

Testlund:
It starts out nicely with children tieing to there parents up to the 3rd generation of bots. Than they don't tie anymore and I end up with
single bots over the screen.

Have I done the stifftie command right?

Botsareus:
Ah, thx.

I will totally take a look.

Testlund:
I've found out what the problem is. It happens when vision is disabled and the bots use touch senses, but it doesn't make any sense why it only happens from the 3rd generation of bots.

The bot below uses vision instead. You can compare this one with the above if you want.


--- Code: ---'*************************************
'*          Tie Struggler            *
'*             (eyes)                *
'*       Made by Testlund in         *
'*       September 14, 2013.         *
'*************************************

cond
*.robage 5 <
start
.tie inc
314 rnd .aimdx store
stop

cond
*.eye2 *.eye5 >
start
-64 .aimright store
stop

cond
*.eye8 *.eye5 >
start
64 .aimright store
stop

cond
*.eye5 40 > and
*.refeye *.myeye =
start
1 .tie store
314 rnd .aimdx store
32 .stifftie store
stop

cond
*.eye5 40 > and
*.refeye *.myeye != and
*.refnrg 0 >
start
-1 .shoot store
stop

cond
*.nrg 16000 > and
*.body 2000 > and
*.numties 3 <
start
50 .repro store
314 rnd .aimdx store
stop

cond
*.nrg 16000 > and
*.numties 2 >
start
*.tiepres .tienum store
32 .tieval store
-1 .tieloc store
stop

cond
*.nrg 8000 < and
*.numties 0 >
start
*.tiepres .tienum store
-32 .tieval store
-1 .tieloc store
stop

cond
*.body 1000 <
*.nrg 8000 > and
start
32 .strbody store
stop
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version