Darwinbots Forum
Code center => Bugs and fixes => Bug reports => Topic started by: Trafalgar on July 12, 2007, 12:58:38 PM
-
I noticed some more bugged/broken sysvars:
Mydn, mysx, refdn, and refsx all return 0 all the time, making them useless for determining if a bot is friendly. Also, refvelsx always reads 0 too, but refveldx works properly (so we don't really NEED refvelsx, since veldx is always equal to -velsx). (refveldn and refvelup both work though) Notably, velsx (getting my own sx velocity) works fine.
Of course, refdn and refsx may not actually be broken - they're just reading from broken mydx and mysx on the target bot.
P.S. Would it be considered a bug that a bot with more than 50 defs causes DarwinBots to crash if you try to start a match with it? (I was dumping a LOT of sysvars to free sysvars which were all together, so that I could see what they all were without having to look up sysvar values and jump around in the memory dump)
-
The def array is probably only 50 units long. There are alot of statically sized arrays in the code unfortunately.