Bots and Simulations > Bot Tavern
Simple NRG shooting bot problem!
Testlund:
Can someone tell me why this bot doesn't shoot when it's NRG reach above 1000?
*.nrg 1000 >
314 rnd .aimright store
-2 .shoot store
It just sits there.
Numsgil:
Is that the only DNA in the bot?
I don't remember exactly, but it might need a start command at the beginning to enable stores. We had a debate over whether it should be necessary, and I don't remember what was decided.
Testlund:
Yeah, it's the only DNA. I thought it was a long shot, but I DID try to add cond and start commands but that only turned up as zeros in the dna in the sim. I know you got rid of the need for those a long time ago. I've tried two different bots with different numbers. Same result.
Testlund:
Here is a screenshot. As you can see I've set this one to shoot energy when it reaches 32000.
Botsareus:
Try this robot, see how it works for you:
--- Quote ---start
*.nrg 1000 >
314 rnd .aimright store
-2 .shoot store
--- End quote ---
--- 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?
Navigation
[0] Message Index
[#] Next page
Go to full version