Darwinbots Forum

Welcome To Darwinbots => Newbie => Topic started by: multibotlover on January 29, 2009, 11:46:16 AM

Title: so embaressing!
Post by: multibotlover 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?
Title: so embaressing!
Post by: Numsgil on January 29, 2009, 01:30:21 PM
cond
 *nrg 3000 >
start
 50space.repro
 store
stop
end
Title: so embaressing!
Post by: Moonfisher on January 31, 2009, 08:27:33 PM
Don't forget the punktuation aswell

 cond
*.nrg 3000 >
start
Title: so embaressing!
Post by: Numsgil on February 01, 2009, 06:41:41 AM
ahaha, I missed that one
Title: so embaressing!
Post by: multibotlover 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?
Title: so embaressing!
Post by: Shasta 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
Title: so embaressing!
Post by: multibotlover on February 03, 2009, 04:53:11 PM
ok, because when I made the gene it looked wrong somehow. thanks
Title: so embaressing!
Post by: bacillus 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 '!=' ?
Title: so embaressing!
Post by: Numsgil 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 !=