Darwinbots Forum

Code center => Bugs and fixes => Topic started by: EricL on November 25, 2006, 09:11:35 PM

Title: Why are there two .trefbody sysvars?
Post by: EricL 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).
Title: Why are there two .trefbody sysvars?
Post by: Numsgil 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.
Title: Why are there two .trefbody sysvars?
Post by: EricL 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.
Title: Why are there two .trefbody sysvars?
Post by: Jez 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