Author Topic: Gene Activations in 2.4A  (Read 2320 times)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Gene Activations in 2.4A
« on: March 16, 2006, 01:43:33 AM »
Well, I managed to make the Genes Activations display work in 2.4A.  The fix is a little involved given the architectural changes between 2.36 and 2.4 with respect to the changes in how DNA is is handled (its amazing what your can learn from poking around in the source).  :blink:

Anyway, I created a new global arrray of booleans which I ReDim and populate in ExecuteDNA() only for the bot with the focus if there is one, then pass this to a slightly modified exchhighlight() which hanldes the gene activation display as before.  I touched Robots.bas, DNA.bas and Module1.bas.

A little involved to post the code snippets in the forum as text, but I've attached the *.bas modules to this post.  I think those three are the only places where I made changes.  You should be able to download them, replace your own in a 2.4A soruce directory and build an exe that works.  Let me know if you have problems, I may have missed a file.  To find my changes in the soruce, simply search for the string 'EricL'.
« Last Edit: March 16, 2006, 01:44:20 AM by EricL »
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Gene Activations in 2.4A
« Reply #1 on: March 16, 2006, 09:30:42 AM »
Yay :D  I'll check it out later.