Author Topic: mydn, mysx, refdn, refsx, and refvelsx always return 0  (Read 2405 times)

Offline Trafalgar

  • Bot Destroyer
  • ***
  • Posts: 122
    • View Profile
mydn, mysx, refdn, refsx, and refvelsx always return 0
« 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)
« Last Edit: July 12, 2007, 01:03:03 PM by Trafalgar »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
mydn, mysx, refdn, refsx, and refvelsx always return 0
« Reply #1 on: July 12, 2007, 10:54:36 PM »
The def array is probably only 50 units long.  There are alot of statically sized arrays in the code unfortunately.