Author Topic: Why are there two .trefbody sysvars?  (Read 2709 times)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Why are there two .trefbody sysvars?
« on: November 25, 2006, 09:11:35 PM »
mem locations 437 and 472 are both .trefbody.  The Wiki even lists both.

Is there some historical thing here I'm unaware of?

Mind if I kill one?  I'll preserve the one that the code translates .trefvar in hand coded bots to so as to not to break any hand-coded bots (unless they rely upon reading from the other mem location).
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Why are there two .trefbody sysvars?
« Reply #1 on: November 25, 2006, 11:09:40 PM »
Are they both being updated in the same place in the code?  It might be that someone was mucking in the sysvars and made a mistake that got translated into future versions.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Why are there two .trefbody sysvars?
« Reply #2 on: November 26, 2006, 02:06:17 AM »
They are indeed.  mem location 437 is used for hand authored bots which reference .trefbody in their DNA txt files, but both locations are updated.
Many beers....

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Why are there two .trefbody sysvars?
« Reply #3 on: November 26, 2006, 11:04:25 AM »
Don't remember any reason for that, might have been intended for something else at some point I suppose.

Simplicity! Yay! Duplicity! Nay!

ROFL
If you try and take a cat apart to see how it works, the first thing you have in your hands is a non-working cat.
Douglas Adams