Bots and Simulations > Bot Tavern

Simple NRG shooting bot problem!

<< < (2/3) > >>

Testlund:
Yes, that works! Thanks.

Testlund:

--- Quote from: Botsareus on August 23, 2012, 03:38:23 PM ---
--- Quote ---I DID try to add cond and start commands but that only turned up as zeros in the dna in the sim.
--- End quote ---
weird, that's not supposed to happen, I just downloaded a copy and tried myself, the start command was fine, did you miss-spell something?

--- End quote ---

I tried this code:

Cond
*.nrg 1000 >
start
314 rnd .aimdx store
-2 .shoot store
stop
end

...and it turned into this code in the sim:


 0 *.nrg 1000 >

''''''''''''''''''''''''  Gene:  1 Begins at position  5  '''''''''''''''''''''''
 start
 314 rnd .aimright store
 -2 .shoot store
 stop
''''''''''''''''''''''''  Gene:  1 Ends at position  13  '''''''''''''''''''''''

...and the bot immediately started shooting.

I remember now that Eric removed the need for these so when you added old bots with "Cond" they would turn to 0.

"Start" works though.

Botsareus:
That's because darwinbots in currently case sensitive.  :P

Just try:


--- Quote ---start
*.nrg 1000 >
 314 rnd .aimright store
 -2 .shoot store
--- End quote ---

This should work as well:


--- Quote ---cond
*.nrg 1000 >
start
314 rnd .aimdx store
-2 .shoot store
stop
end
--- End quote ---

I will make DB case insensitive with the next release if you like

Testlund:

--- Quote ---I will make DB case insensitive with the next release if you like
--- End quote ---

No need for that now when I know, unless someone else think it is needed.  :)

Botsareus:
I'll consider it again when I work on the chloroplast version.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version