Welcome To Darwinbots > Newbie

Best thing ever

<< < (4/10) > >>

southpointingchariot:
This process is truly amazing and awesome!

I've been having the same problem over and over again. After a while, a Rolling Moss bot mutates, and causes an massive explosion of birth, slowing things down to the point of unusable.

Here is the original code:

--- Code: ---' Rolling Moss
' by: southpointingchariot
' Vegetable
'
' A scared plant

cond
  *.nrg  30000  >
start
  50  .repro  store
  15  .aimdx  store
stop

' Gene 1 Food Finder
cond
 *.eye5 0 >
start
 *.refveldx .dx store
 *.refvelup -10 add .up store
stop

end
--- End code ---

And the mutated code:

--- Code: ---''''''''''''''''''''''''  Gene:  1 Begins at position  1  '''''''''''''''''''''''
 cond
 *.nrg 30000 >
 else
 50 .repro store
 15 .aimright store
 stop
''''''''''''''''''''''''  Gene:  1 Ends at position  12  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  2 Begins at position  13  '''''''''''''''''''''''
 cond
 *.eye5 0 >
 start
 *.refveldx .dx store
 *.refvelup -10 add .up store
 stop
''''''''''''''''''''''''  Gene:  2 Ends at position  26  '''''''''''''''''''''''
--- End code ---
It would seem that the problem arises when .aimdx becomes .aimright. Any suggestions on how to prevent this from becoming disastrous?

Tilthanseco:

--- Quote ---It would seem that the problem arises when .aimdx becomes .aimright
--- End quote ---

Aimdx means aimright. For some reason in the program it lists it as that.

The problem really is that the veggies got "cancerous" by sticking an "else" in the repro gene. The bot reproduces unless it has more than 30000 nrg now.

Cancerous veggies are a very very very common mutation with veggies. Cancer bots aren't because they just die...

Edit: I still don't know of a good way to make veggies not cancerous... Try setting the veggy energy option to "kilobody point" That makes it so small veggies don't get as much nrg as big plants. (and cancer plants start out small) Also try lowering the nrg they get.

southpointingchariot:

--- Quote from: Tilthanseco on June 28, 2012, 07:20:58 PM ---Edit: I still don't know of a good way to make veggies not cancerous... Try setting the veggy energy option to "kilobody point" That makes it so small veggies don't get as much nrg as big plants. (and cancer plants start out small) Also try lowering the nrg they get.

--- End quote ---

I was just about to come post that kilobody worked :). Things seem quite stable now. I just had a system break down because only non reproducing bots survived - this is actually a good thing, as all the changes I want to make will help fix that. Can you tell me precisely how toroidal works? Also, do veggies not mutate?

Tilthanseco:
Toroidal means that the world loops around both east west and north south. The bots go up and come out the bottom, go right and come out the left. It's default for F1 conditions.

Veggies will mutate if "disable mutations" is unchecked (1).  You can also change the species and different rate of mutations in "mutations rates" (2).
I circled the stuff in the attached screen shot.

southpointingchariot:
Thank you so much Tilthanseco! It seems I just wasn't being patient enough, as mutations have occurred. I've already had my first meaningful permanent mutation - changing the first gene in some way concerning when it decides to move that I don't fully understand - looks kinda like random movement, but I don't think it is. It definitely helps with searching for those elusive rollers:

Taxxon (Initial)
--- Code: ---'Taxxon
'By: southpointingchariot
'Eat each other, yo.

' Gene 1 Food Finder
cond
 *.eye5 0 >
 start
 *.refveldx .dx store
 *.refvelup 30 add .up store
 stop

' Gene 2 Eat Food
cond
 *.eye5 50 >
 start
 -1 .shoot store
 *.refvelup .up store
 stop

' Gene 3 Avoiding Family
cond
 *.eye5 0 =
 start
 314 rnd .aimright store
 stop

' Gene 4 Reproduce
cond
 *.nrg 30000 >
 start
 10 .repro store
 stop

end
--- End code ---

Rando (Mutated)
--- Code: ---''''''''''''''''''''''''  Gene:  1 Begins at position  1  '''''''''''''''''''''''
 cond
 *.eye5 -10 >
 start
 *.refveldx .dx store
 *.refvelup 30 add .up store
 stop
''''''''''''''''''''''''  Gene:  1 Ends at position  14  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  2 Begins at position  15  '''''''''''''''''''''''
 cond
 *.eye5 50 >
 start
 -1 .shoot store
 *.refvelup .up store
 stop
''''''''''''''''''''''''  Gene:  2 Ends at position  26  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  3 Begins at position  27  '''''''''''''''''''''''
 cond
 *.eye5 0 =
 start
 314 rnd .aimright store
 stop
''''''''''''''''''''''''  Gene:  3 Ends at position  36  '''''''''''''''''''''''

''''''''''''''''''''''''  Gene:  4 Begins at position  37  '''''''''''''''''''''''
 cond
 *.nrg 30000 >
 start
 10 .repro store
 stop
''''''''''''''''''''''''  Gene:  4 Ends at position  45  '''''''''''''''''''''''
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version