Bots and Simulations > DNA - General

Autotroph Network

<< < (2/3) > >>

PurpleYouko:

--- Quote ---Don't you ever get fed up of pointing out such totally stupid problems lol?
--- End quote ---

No not really. It just makes me feel all warm and fuzzy inside to know that I am still needed  :D

Maybe I just like making people feel small and stupid too.  B)

Then again maybe I am just plain altruistic.....

NAAAAH! Couldn't be that. Must be one of the first two.  :firedevil:

Ulciscor:
Argh how do I get them to turn to find more reproducing room when they are tied?! This is so annoying lol all they do is slightly revolve clockwise then anticlockwise really quickly.

PurpleYouko:
Once the ties become fixed you have two choices to make them rotate with respect to the hardened tie.

Option 1 the old way.

If you have a tie with a phase of 1 (1 .tie store or .tie inc) then use a gene like this.

--- Code: ---cond
'your condition
start
1 .tienum store
628 .fixang store
stop
--- End code ---
This gene will make all ties with a phase of 1, face directly backward to the robot. (an angle of 628 to the direction of .aim)

Option 2 the new way

Each robot has an array of 4 ties. It can now access these four ties directly by number from this array in addition to addressing them by phase.
If the robot has 1 tie then this will be (by default) tie1 so the command 628 .tieang1 store will set the angle of the first tie to 628 (directly behind).
If you have 3 ties (*.numties 3 =) then you can simultaineously set .tieang1 to 314, .tieang 2 to 628 and tieang3 to 942 (or -314) then your robot will be facing open space and the 3 ties around you will be at 90 degree increments.

You should be able to use method 2 to make sure you are clear to reproduce as well as defining a nice crystal lattice of veggies.

Also set .tielen1 through 4 to set the size of the lattice.

Ulciscor:
Sorry to change the subject again but I just can't work this out. This is what I have:

'Start Genome

def tie1 1
def tie2 2
def tie3 3

'Gene1:

cond *.nrg 6000 >
     *.numties 0 =
start
50 .repro store
15 .aimdx store
stop

'Gene2:

cond *.nrg 6000 >
     *.numties 3 =
start
314 .tinang1 store
314 .tieang2 store
314 .tieang3 store
stop

'Gene3:

cond *.eye5 0 !=
*.refeye *.myeye =
.tie1 1 !=
start
1 .tie store
.tie1 inc
stop

'Gene4:

cond *.eye5 0 !=
*.refeye *.myeye =
.tie2 1 !=
start
2 .tie store
.tie2 inc
stop

'Gene5:

cond *.eye5 0 !=
*.refeye *.myeye =
.tie3 1 !=
start
3 .tie store
.tie3 inc
stop

end

and it just does nothing. Some of the veggies create offspring around themselves but then do nothing. Some veggies don't do anything at all. Ties are created but then disappear for some reason. What the hell am I doing wrong?

Numsgil:
Problem is that mem locations 1, 2, and 3 are already taken by up, dn, and dx (I think it's dx, too lazy to check).

50, 51, and 52 are open (and fairly standard).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version