### Author Topic: Vision and Turning  (Read 9246 times)

#### Elite

• Bot Overlord
• Posts: 532
##### Vision and Turning
« on: June 06, 2006, 02:13:08 PM »
Here's a handy chart:

Code: [Select]
`eye1    -140eye2    -105eye3    -70eye4    -35eye5    0eye6    35eye7    70eye8    105eye9    140`

The number on the right is the clockwise turn you need to make, in DB turning units, so that you turn towards the eye listed on the left

So, if you want to turn towards your eye9 then just store 140 in .aimdx

The vision range of a bot is a 90 degree arc with the eyes spaced 10 degrees apart

In DB units:
360 degrees = 1256
90 degrees = 314
10 degrees = 35
« Last Edit: June 06, 2006, 02:13:59 PM by Elite »

#### Elite

• Bot Overlord
• Posts: 532
##### Vision and Turning
« Reply #1 on: June 06, 2006, 04:17:11 PM »

Code: [Select]
`cond*.eye1 *.eye2 >=*.eye1 *.eye3 >=*.eye1 *.eye4 >=*.eye1 *.eye5 >=*.eye1 *.eye6 >=*.eye1 *.eye7 >=*.eye1 *.eye8 >=*.eye1 *.eye9 >=startmult -140stopcond*.eye9 *.eye2 >=*.eye9 *.eye3 >=*.eye9 *.eye4 >=*.eye9 *.eye5 >=*.eye9 *.eye6 >=*.eye9 *.eye7 >=*.eye9 *.eye8 >=*.eye9 *.eye1 >=startmult 140stopcond*.eye2 *.eye9 >=*.eye2 *.eye3 >=*.eye2 *.eye4 >=*.eye2 *.eye5 >=*.eye2 *.eye6 >=*.eye2 *.eye7 >=*.eye2 *.eye8 >=*.eye2 *.eye1 >=startmult -105stopcond*.eye8 *.eye9 >=*.eye8 *.eye3 >=*.eye8 *.eye4 >=*.eye8 *.eye5 >=*.eye8 *.eye6 >=*.eye8 *.eye7 >=*.eye8 *.eye2 >=*.eye8 *.eye1 >=startmult 105stopcond*.eye3 *.eye9 >=*.eye3 *.eye8 >=*.eye3 *.eye4 >=*.eye3 *.eye5 >=*.eye3 *.eye6 >=*.eye3 *.eye7 >=*.eye3 *.eye2 >=*.eye3 *.eye1 >=startmult -70stopcond*.eye7 *.eye9 >=*.eye7 *.eye8 >=*.eye7 *.eye4 >=*.eye7 *.eye5 >=*.eye7 *.eye6 >=*.eye7 *.eye3 >=*.eye7 *.eye2 >=*.eye7 *.eye1 >=startmult 70stopcond*.eye4 *.eye9 >=*.eye4 *.eye8 >=*.eye4 *.eye7 >=*.eye4 *.eye5 >=*.eye4 *.eye6 >=*.eye4 *.eye3 >=*.eye4 *.eye2 >=*.eye4 *.eye1 >=startmult -35stopcond*.eye6 *.eye9 >=*.eye6 *.eye8 >=*.eye6 *.eye7 >=*.eye6 *.eye5 >=*.eye6 *.eye4 >=*.eye6 *.eye3 >=*.eye6 *.eye2 >=*.eye6 *.eye1 >=startmult 35stopcond*.eye5 *.eye9 >=*.eye5 *.eye8 >=*.eye5 *.eye7 >=*.eye5 *.eye6 >=*.eye5 *.eye4 >=*.eye5 *.eye3 >=*.eye5 *.eye2 >=*.eye5 *.eye1 >=startmultstopcondstart.aimdx storestop`

It will turn to face the closest thing it can see

Neat, huh?
« Last Edit: June 08, 2006, 11:15:19 AM by Elite »

#### fulizer

• Bot Destroyer
• Posts: 198
##### Vision and Turning
« Reply #2 on: December 06, 2007, 06:23:52 AM »
wow I cant think af anuything like that
I can barly make bots
my best one so far has been penalised by peter for being like wassisname
so ill make a veg
"If this is coffee bring me tea, If this is tea, bring me coffee"

#### Peter

• Bot God
• Posts: 1177
##### Vision and Turning
« Reply #3 on: December 06, 2007, 11:53:36 AM »
Quote from: fulizer
wow I cant think af anuything like that
I can barly make bots
my best one so far has been penalised by peter for being like wassisname
so ill make a veg
It is pretty well thought out, and just this is alone made for some energie saving. But it has been well thought out.
And for anything like it. Here is the turning gene I use for my bots. Works pretty well too.
Quote
cond
*.eye5 0 =
*.refeye *.myeye = or
start
500 .up store
*.eye9 *.eye1 sub 4 mult .aimdx store
*.eye4 *.eye6 sub .aimsx store
stop

And for the 'penalisation', no it isn't personal. Just change your bot a little, if you don't understand the dna completely just ask the forum, we're here to help you.

Ok, you're making a veg, waiting how that is going to turn out.
Oh my god, who the hell cares.

#### bacillus

• Bot Overlord
• Posts: 907
##### Vision and Turning
« Reply #4 on: March 19, 2008, 12:26:01 AM »
I use 360 degree genes all the time, they seem to be so handy, but I don't often see an opponent using them. Do people just not know about this trick, or is there some major drawback I don't know of?
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

#### abyaly

• Bot Destroyer
• Posts: 363
##### Vision and Turning
« Reply #5 on: March 19, 2008, 12:46:21 AM »
360 degree eyes are relatively new (a bit over a year old) so bots before then don't have them, and some bots after just haven't adapted to the new features.

Recently, eye distance depends on width - narrower eyes can see farther.
Lancre operated on the feudal system, which was to say, everyone feuded all
the time and handed on the fight to their descendants.
-- (Terry Pratchett, Carpe Jugulum)

#### bacillus

• Bot Overlord
• Posts: 907
##### Vision and Turning
« Reply #6 on: March 19, 2008, 01:13:30 AM »
Thanks
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

#### Numsgil

• Bot God
• Posts: 7742
##### Vision and Turning
« Reply #7 on: March 19, 2008, 02:56:29 AM »
It's kind of the way of things here.  New features are added that make new bots stronger than older bots.

#### fulizer

• Bot Destroyer
• Posts: 198
##### Vision and Turning
« Reply #8 on: March 19, 2008, 10:07:37 AM »
Quote from: Peter
Quote from: fulizer
wow I cant think af anuything like that
I can barly make bots
my best one so far has been penalised by peter for being like wassisname
so ill make a veg
It is pretty well thought out, and just this is alone made for some energie saving. But it has been well thought out.
And for anything like it. Here is the turning gene I use for my bots. Works pretty well too.
Quote
cond
*.eye5 0 =
*.refeye *.myeye = or
start
500 .up store
*.eye9 *.eye1 sub 4 mult .aimdx store
*.eye4 *.eye6 sub .aimsx store
stop

Just change your bot a little
I did but they pick on me anyway
"If this is coffee bring me tea, If this is tea, bring me coffee"

#### bacillus

• Bot Overlord
• Posts: 907
##### Vision and Turning
« Reply #9 on: March 20, 2008, 02:09:22 AM »
The eyesight shortening doesn't seem to be happening, could you please tell me at which version this kicks in? (I think I'm using 2.43j at the moment)
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

#### EricL

• Bot God
• Posts: 2266
##### Vision and Turning
« Reply #10 on: March 20, 2008, 09:58:53 AM »
Sight distance varies as a function of width beginning in version 2.43.z.  See this topic.

Many beers....

#### bacillus

• Bot Overlord
• Posts: 907
##### Vision and Turning
« Reply #11 on: March 20, 2008, 11:20:06 PM »
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

#### EricL

• Bot God
• Posts: 2266
##### Vision and Turning
« Reply #12 on: March 20, 2008, 11:24:20 PM »
Quote from: bacillus
each version after 2.43j breaks down after about a month.
What do you mean by 'break down'?
Many beers....

#### bacillus

• Bot Overlord
• Posts: 907
##### Vision and Turning
« Reply #13 on: March 21, 2008, 11:09:55 PM »
First it takes forever to load, then after about four days it crashes as soon as you open it.
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan