Author Topic: color  (Read 1108 times)

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
« on: November 30, 2005, 01:53:39 PM »
trying to make this a simple, straightforward question ...
and I certainly would appreciate a simple, straighforward answer.

as it stands ...
it appears that the graphs pick up the color they use to plot population, mutations or whatever
based upon the position of the species as selected by the user in the Species window ...
and not from the color that the user chooses for the species.
what I would like to have them do is actually use the user designated color, including the
custom color,  instead of vb color 1-8 or whatever it currently does ....
the old yellow, red, blue, violet, white ... list etc.
I don't see that this would be difficult ...
as a specific color is designated for each species ....
and I don't see why this couldn't be passed directly on to the graphs.

I've spent 2 hours this morning combing thru the code trying to find where this happens but
having no idea what the variable names might be or where these routines live, I have had no luck.
I found the custom color subroutine/form of course ...
but I don't know what routine is calling it up or where it hands this color off to or where
the graphs pick up what color they are using.
I have succeeded in finding the variable individual robot color .... rob(n).color ...
but what I need to find is the original user specified color for the 'species' ...
and a way to have the graphs use that rather than whatever they do.

will someone please tell me where to find the code for the graphs ...
or at least the variable they use so I can do a search.
and also where the user disignatred color is stored when assigning a custom
color to a species in the species selection process?
all I can find is .... .color and rob(n).color ...
but rob(n).color has to pick it up from somewhere at start time ...
that's what I'm looking for.

thank you.
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7718
    • View Profile
« Reply #1 on: November 30, 2005, 02:09:17 PM »
datispecie is the type that robots inherit from (that is, the species type).

In there, color is stored in something like: "color" "colind" or something that starts with col.  The type isn't very long, so it shouldn't be too hard to find.

I'd discourage lots of work on the graphs since the new GUI is rather different in interface.  If you're up to a bit of a challenge, you could even work with me on the new C++ version and figure out some graphs.  I dunno how much C++ you know though...

I believe the GUI I'm using has an example program that uses graphs.