Darwinbots Forum
Code center => Bugs and fixes => Bug reports => Topic started by: Testlund on December 03, 2006, 10:30:56 AM
-
Selecting 'Bots can see shapes' immediately causes an overflow.
-
Cool! This crash occurs when the shapes position is being assigned to a bots refvars. I neglected to add a check for shape positions > 32000 and didn't test shape visability on larger fields.
Nice find. Fixed in 2.42.9h.
At some point, we need to decide what we want to do when .xpos, .ypos, .refxpos, .refypos and so on exceed 32000.... It's not as simple as it sounds becuase it impacts things like angle...
-
My vote is still for dividing xpos and ypos by 120 (the default robot diameter). It's not a 100% solution, but it does extend the range from 32K to 3.8 million. If we then use -32000 to 32000 (with 0,0 being the center of the simulation instead of a corner), we can double this to about 7 and a half million.
On the other hand, I'm leaning towards removing all the "absolute" references bots have. Originally they were created to allow for ant bots. But a pheremone trail feature would supplant the need for any absolute references.
-
I vote for removing absolute references on the basis that they are unrealsitic. Replacing them with relative references would be fine.
-
I agree, couple absolute references with the new eye sysvars is turning bots into laser guided machines, though this would cause problems with some bots
-
I agree, makes more sense.
-
Good, I was afraid I was going to have a debate on my hands