Bots and Simulations > The Gene depository

Preditor effectivness gene for evo sims

<< < (3/5) > >>

Ispettore:
bots I was using didn't had waste ejection sistem (LOL). btw, the bot I posted don't even shot. I have the p version of DB.

EricL:
If you think you've found a bug (I can't tell from your post) please create a new topic in the Bug Reports Forum with an explanation of what you think should be happening and attach a sim.  I'd be happy to take a look.  Thanks.

Ispettore:
I don't think it is a bug, I think it is a stupid error of mine. I'll post you a code of a bot that shoul in theory work:

cond
*.robage 0 =
start
1220 .eye5width store
stop

cond
*.eye5 0 >
*.refeye *.myeye !=
*.refeye 0 !=
*.totalmyspecies 100 mult *.totalbots div 10 <
start
*.refvelup 50 add .up store
*.refxpos *.refypos angle .setaim *.robage sgn mult store
stop

cond
*.eye5 50 >
*.refeye *.myeye !=
*.refeye 0 !=
*.totalmyspecies 100 mult *.totalbots div 10 <
start
*.refvelup .up store
*.refxpos *.refypos angle .setaim *.robage sgn mult store
stop

cond
*.eye6 34 >
*.refeye *.myeye !=
*.refeye 0 !=
*.totalmyspecies 100 mult *.totalbots div 10 <
start
-6 .shoot store
16 .shootval store
stop

cond
*.totalmyspecies 100 mult *.totalbots div 10 <
*.body 800 >
start
30 .repro store
314 rnd .aimdx store
stop

' Feed on and store body

cond
*.nrg 2000 >
start
100 .strbody store
stop

cond
*.nrg 500 <
start
*.body 0 floor .fdbody *.body sgn mult store
stop

It is a carnivore modification of swarm 2.0. It should in theory attack and reproduce when his population is below 10%, but it doesn't do nothing all the time. Where did I made errors? Sorry but I'm not very good at programming.

EricL:
I ran your bot.  .totalbots and .totalmyspecies are working and your lines that use them appear to be correct.  It simply looks like none of the condtions of your genes are being fully met.  

After it reproduces, body is below 800.  nrg is between 500 and 2000.  Its' so close that it's still staring at it's offspring.  refeye = myeye.   All of the gene conditions are false so nothing happens.

Try dropping some of your conditions.  You'll see some action.

Ispettore:
thank you and sorry if I'm still bothering you, but I still don't understand. in swarm all this genes work at perfection, and here (apart that he's carnivore) they are all the same, but they should activate in theory when his population is below 10%. Are you telling me that I should put the line of population control only in one gene to make it work? Sorry again, I'm not very expert...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version