Bots and Simulations > Bot Tavern
MB architecture: How do we get amoeba/fungus moving?
Moonfisher:
Just a note :
.timer is a used sysvar name... I guess if you defined it then it'll probably use the location you gave it, but just thought I'd mention it.
.timer is just a global timer for the entire sim... think it counts down from 32000 then starts over at 0....
abyaly:
--- Quote from: Moonfisher ---Just a note :
.timer is a used sysvar name... I guess if you defined it then it'll probably use the location you gave it, but just thought I'd mention it.
.timer is just a global timer for the entire sim... think it counts down from 32000 then starts over at 0....
--- End quote ---
Timer is not a global timer for the entire sim. It is a memory location inside of each bot that is automatically incremented each cycle and passed to offspring. On sim start, each bot gets a random (and IIRC, sometimes negative) value for timer.
Peter:
Ah there is found one bit found wrong. A wrong timer could really give your problems. I never used timers so I didn't see it.
Still I don't see any difference with how it behaved before if I set the starter bot timer at zero.
I just looked at the timer. And t seems to give a random number at start between -32000 and 32000. So often the half of the timer is negative.
bacillus:
It does seem to work with me, but I did notice the random start time as well. So even though it's random, each bot starts off with the same value (could be useful for a simulation-protective bot)
abyaly:
--- Quote from: bacillus ---So even though it's random, each bot starts off with the same value
--- End quote ---
This is not the case.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version