Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Greven on June 23, 2005, 10:04:15 AM

Title: Another overflow!
Post by: Greven on June 23, 2005, 10:04:15 AM
With walls another overflow occured!
Title: Another overflow!
Post by: PurpleYouko on June 23, 2005, 10:07:40 AM
Specifics?

I never use walls
Title: Another overflow!
Post by: Greven on June 23, 2005, 10:14:54 AM
I did just what to use walls for making some interesting sims, I draw the line and 1 sec after an overflow occured!?? everything else were like normal.
Title: Another overflow!
Post by: PurpleYouko on June 23, 2005, 11:05:03 AM
OK there are some weird things going on here.

1) it appears that walls were screwed up a little when the shpae functions were put in. Basically a wall has no shape so a division by zero error occurs.

Fixed that easily enough.

2) Another overflow happend just after when a robot looked at a wall. Apparently the wall is moving at a speed of -20,000 twips per cycle.  :blink:  even though it is quite obviously stationary.

Working on that one.
Title: Another overflow!
Post by: Greven on June 23, 2005, 11:07:38 AM
WOW -20,000! LOL
Title: Another overflow!
Post by: PurpleYouko on June 23, 2005, 11:12:20 AM
Yup weird eh?

It is because walls are passed over in almost all of the calculation routines so the velocity never gets capped or zeroed out.

Fixed this too.

Incidentally, tie feeders can attach themselves to walls. I didn't realize that.

A wall is easy to identify though. It has an energy of exactly 1.