Author Topic: so embaressing!  (Read 4417 times)

Offline multibotlover

  • Bot Neophyte
  • *
  • Posts: 21
    • View Profile
so embaressing!
« on: January 29, 2009, 11:46:16 AM »
today I am very frustrated. I am working on a basic veggie robot in DB but cant get the stupid .repro gene to work!

cond
 *nrg 3000
start
 50.repro
 store
stop
end

 
can anyone help me?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
so embaressing!
« Reply #1 on: January 29, 2009, 01:30:21 PM »
cond
 *nrg 3000 >
start
 50space.repro
 store
stop
end

Offline Moonfisher

  • Bot Overlord
  • ****
  • Posts: 592
    • View Profile
so embaressing!
« Reply #2 on: January 31, 2009, 08:27:33 PM »
Don't forget the punktuation aswell

 cond
*.nrg 3000 >
start

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
so embaressing!
« Reply #3 on: February 01, 2009, 06:41:41 AM »
ahaha, I missed that one

Offline multibotlover

  • Bot Neophyte
  • *
  • Posts: 21
    • View Profile
so embaressing!
« Reply #4 on: February 02, 2009, 08:58:27 PM »
ok its working now and ive added another gene. its supposed to make the veggie fire -3 shots at anything it sees, but just fires continually even if nothing is there. this is not a very important glitch as its doing its job, but it is inefficient.

cond
*.eye5 =!
start
-3 .shoot store
stop


notice any errors?

Offline Shasta

  • Administrator
  • Bot Destroyer
  • *****
  • Posts: 231
    • View Profile
so embaressing!
« Reply #5 on: February 03, 2009, 12:12:21 AM »
Quote from: multibotlover
cond
*.eye5 =!
start
-3 .shoot store
stop

You are not actually comparing eye5 to anything. Should be:
Code: [Select]
cond
*.eye5 0 =!
start
-3 .shoot store
stop

Offline multibotlover

  • Bot Neophyte
  • *
  • Posts: 21
    • View Profile
so embaressing!
« Reply #6 on: February 03, 2009, 04:53:11 PM »
ok, because when I made the gene it looked wrong somehow. thanks

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
so embaressing!
« Reply #7 on: March 13, 2009, 09:06:39 PM »
I'm a bit out of practice, but does that make a difference? And shouldn't that be '!=' ?
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
so embaressing!
« Reply #8 on: March 14, 2009, 10:31:06 AM »
If the stack is empty, it'll pop 0s.  So it might make a difference or it might now.  And it should be !=