Bots and Simulations > DNA - General

my tryouts. Help plz

<< < (11/13) > >>

PurpleYouko:
One problem I see with a gene like


--- Code: ---'gen6
cond
*.eye9 30 >
*.eye8 20 <
start
100 inc
stop
--- End code ---

is that you have two eyes that are right next to each other in the eyes array and they are both looking for opposite inequalities.

The actual view seen by the robot is spread across several eyes so when eye9 reports a value greater than 30, it is almost inevitable that eye 8 sees something too. The hances are that it will be greater than 20 in most cases so your gene will not activate.

Substituting eye7 for eye8 increases the inter-eye distance so it is much more likely to work.

Welwordion:
Well, thats also what I thought, however in some cases really strange things happen.
Oh you have any idea why
*66 .fixang store
does not work if I include it in gene 6?

Numsgil:
Because God hates you.

 :rolleyes:  :lol:

PurpleYouko:

--- Quote ---Because God hates you.
--- End quote ---

Nums makes a good point here. it is more than possible that your chosen Diety(s) have a major issue with you right now.
However I think it is more likely that your DNA code is screwed up without the need to invoke divine intervention.

Point 1.
.fixang only works AFTER ties have hardened in a Multi-Bot. I don't know whether your bot is forming a true MB or not. If not then this won't work.

Point 2.
Anything in gene 6 requires eye9 to be greater than 30 while eye8 is less than 20. This is an unlikely scenario as outlined in my previous mesage.
An increment of 50 to your angle may be enough that it catches the value in both eyes simultaineously. This is especially true if your bot is very close to the veggies.

Try stepping through the sim cycle by cylce and look at what the eyes see as it moves. That is the way I solve this kind of stuff.

Welwordion:
Hmm when a conncetion between a bot and a veggie is no true multibot that would explain my problems with tie angles  ^^.

Bye the way I already changed eye 8 ,to eye 7 before you told me I am only
complaining that the success rate for right behaviour still is only seems circa 70%
Well somehow I will have to make him reproduce before turning back if I can not use fixang.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version