Darwinbots Forum
Code center => Bugs and fixes => Bug reports => Topic started by: Testlund on May 06, 2006, 09:34:08 AM
-
I have found out that whenever a bot or veggie produces an offspring they will get stucked on the screen and unaffected by brownian motion. That must be a bug. I don't think that has been addressed in 2.42.3b either.
-
It's not a bug per se because it just means they're fixed. The real question is why are they getting fixed.
-
Well, I think it breaks the laws of physics if a bot can get stucked in a turbulent liquid. And why does it only do that after it has produced an offspring?
-
The idea of "fixed" is that it simulates something with roots or suckers that has attached itself to either the glass pane (if you think of Darwinbots as an aquarium) or ground (if you think of Darwinbots as an overhead shot).
A bot can be fixed, to my knowledge, in several ways:
1. It can write a non zero value to .fixed
2. It can develop alzheimers and have a non zero value written there
3. Another bot can write to .fixed through shots or ties
If you eliminate all these three possibilities, you might have found a bug.
Note that fixed bots pass on their fixed status to their children.
-
Well... If it's supposed to be a glass pane where the bots can attach themselves, then it makes sense. I just didn't thought it was programmed like that. But if this is the case it makes perfectly sense. It's just that I think it's odd that they only do it if they have produced an offspring. THAT doesn't make sense. The ones that haven't reproduced floot around as usual.
-
Force one to reproduce by opening the console of one and typing "set .repro 50" (or it might be other syntax combination, I can never remember).
There might also be a button on the robot details that says "Reproduce" or "reproduction" or something like that. Try clicking that and making the bot reproduce.
If the bot was unstuck before and after this forced reproduction becomes fixed, or its child becomes fixed, we might indeed have an odd error.
-
They don't get stuck when I click reproduce, only when they reproduce themselves. Here is a bot that is stuck and has reproduced. Do you see anything in the DNA that could cause it to get stuck?
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd xor
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
start
angle rnd and
pyth inc
mod stop
0 0 0 2 0 0 0 1 0 0 0 sqr 0 0 -9
-
What is the waste threshold and what is this bot's waste? Altzheimer's fixing the bot is a prime suspect....
-
It's that virally related gene I posted about in the other thread.
start
angle rnd xor
pyth inc
mod stop
This gene will randomly increment all sorts of random sysvars. One of those sysvars is probably .fixpos
This is really quite exciting! That gene has the potential of being the first reproductively effective "wild" gene ever seen!
-
Yeah, it's from the same sim that I've posted about in the 'Simplest evo starting bot' topic. But all my saves have gotten corrupted.