Author Topic: Help!  (Read 3834 times)

Offline triclops200

  • Bot Neophyte
  • *
  • Posts: 32
    • View Profile
Help!
« on: October 24, 2009, 05:25:00 AM »
I can't get this to work... they still run from each other.
Code: [Select]
' Alga minimalis
'
' Vegetable
'
' This robot has a single gene,
' necessary for it to reproduce.
' Energy is given to it by the program,
' by checking the "autotroph" box.
'reproduction
cond
*.robage 0 =
start
471 .eye1dir store
54 .out1 store
stop
cond
 *.eye5 0 >
*.in1 *.out1 !=
start
 *.refvelup 30 add .dn store
stop
cond
*.nrg 2000 >
*.eye5 0 =
*.refeye *.myeye = or
start
10 .repro store
140 rnd 140 add .aimsx store
stop
cond
 *.eye1 0 >
*.in1 *.out1 !=
start
 *.refvelup 30 add .up store
stop
I divided by zero and, guess what? The only thing I found out from it is that dividing by zero doesn't work... You are sitting there 9 hours older and thourougly depressed by the amount of work you had to do to finally convince yourself of that.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Help!
« Reply #1 on: October 26, 2009, 12:34:52 PM »
What is it you're trying to accomplish?

Offline triclops200

  • Bot Neophyte
  • *
  • Posts: 32
    • View Profile
Help!
« Reply #2 on: October 26, 2009, 04:12:10 PM »
I am trying to make an algea that packs together then breaks apart and runs when anyone of them are attacked, heres what I've got so far.
Code: [Select]
' Alga packus
cond
*.robage 2 <
start
471 .eye1dir store
stop
cond
*.robage 0 >
start
57 .out1 store
stop
cond
 *.eye5 0 >
 *.refshoot *.myshoot  !=
start
 *.refvelup 30 add .dn store
3 .out1 store
stop
cond
*.nrg 2000 >
*.eye5 0 =
*.refeye *.myeye = or
start
10 .repro store
140 rnd 140 add .aimsx store
stop
cond
 *.eye1 0 >
*.refshoot *.myshoot !=
start
 *.refvelup 30 add .up store
3 .out1 store
stop
cond
 *.eye5 0 >
 *.refshoot *.myshoot =
*.out1 3 !=
start
 *.refveldx .dx store
 *.refvelup 1 add .up store
stop
cond
 *.eye5 0 =
 *.eye1 0 =
start
0 .out1 store
0 .in1 store
stop
cond
*.in1 3 =
*.eye5 0 =
*.refshoot *.myshoot = or
start
3 .out1 store
30 .up store
stop
cond
 *.eye1 0 >
 *.refshoot *.myshoot =
*.out1 3 !=
start
 *.refveldx .dx store
 *.refvelup 1 add .dn store
stop
« Last Edit: October 26, 2009, 04:12:47 PM by triclops200 »
I divided by zero and, guess what? The only thing I found out from it is that dividing by zero doesn't work... You are sitting there 9 hours older and thourougly depressed by the amount of work you had to do to finally convince yourself of that.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Help!
« Reply #3 on: October 26, 2009, 07:54:02 PM »
In your first bot you posted, the last gene was duplicated from a previous gene, but with eye1 instead of eye5.  Since the in/out are populated from whatever is in eye5, this might cause some weird behavior.  Remember that later genes overwrite earlier genes.