Author Topic: Set colour to memory location  (Read 5069 times)

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
Set colour to memory location
« on: December 09, 2006, 05:51:58 PM »
Could we have an option whereby a memory location is chosen, and colours are assigned depending on the value of that location?

So if a bot changes the value in the selected memory location, it changes colour.

It would be useful for telling at a glance which antbots belonged to which colony etc.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Set colour to memory location
« Reply #1 on: December 09, 2006, 07:14:39 PM »
I think a .color sysvar is a great idea not just for human recognition of species or intra-sepecies role but for whole host of bot-bot reasons from "I'm poisonious"  advertisement to "I'm in heat" advertisement for sexual reproduction.

I suggest two new sysfars:

.color
.refcolor

.refcolor could also be used for color recognition of other things such as shapes and (once they are visiable) shots.

Won't be in 2.43, but I sure like the suggestion.
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Set colour to memory location
« Reply #2 on: December 09, 2006, 11:31:26 PM »
Traditionally Carlo has been vehemetely against it, which is why it hasn't existed yet.  But feel free to add it.  Personally I'd use .red, .green, .blue instead of trying to overload a single .color.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Set colour to memory location
« Reply #3 on: December 10, 2006, 02:11:45 AM »
Do you know why he has been against it?
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Set colour to memory location
« Reply #4 on: December 10, 2006, 05:47:18 AM »
I believe he felt that color was a property used by people to see what's going on in the sim, and shouldn't be mixed with the bots' sense of reality.  Or something like that.  You could probably find the post, he's only made a few.

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
Set colour to memory location
« Reply #5 on: December 10, 2006, 01:53:05 PM »
Quote from: Numsgil
Traditionally Carlo has been vehemetely against it, which is why it hasn't existed yet.  But feel free to add it.  Personally I'd use .red, .green, .blue instead of trying to overload a single .color.
I guess I agree with him: having .color is useless from a bot's point of view (there's already .out1 and .out2) and will prevent humans from making sense of the sim.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Set colour to memory location
« Reply #6 on: December 10, 2006, 02:53:48 PM »
I disagree.  Color opens up a whole catargory of stuff from camoflage to sexual advertisement to relatedness recognition to mimicry.  Having bots set their color and be able to view the color of other bots and other objects and having color influence such things as the visiblity of a bot against a background of liek color would be very powerfull.

Personally, I think there are other, better ways to let the humans see which bots are of the same "species" or to reflect genetic distance between bots, but I will point out that it would be easy to have a toggle between the bot's use of color and the human's use of color.  They need not be the same.
Many beers....

Offline Henk

  • Bot Destroyer
  • ***
  • Posts: 110
    • View Profile
Set colour to memory location
« Reply #7 on: December 11, 2006, 03:30:15 AM »
Why not link the .outX/.inX sysvars to colours?
cond
*.DBbugs 0 =
start
.rejoice inc
stop

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Set colour to memory location
« Reply #8 on: December 11, 2006, 04:44:57 AM »
That's actually an interesting idea.  But there are alot of in/out pairs...

Offline Henk

  • Bot Destroyer
  • ***
  • Posts: 110
    • View Profile
Set colour to memory location
« Reply #9 on: December 11, 2006, 04:52:26 AM »
Quote from: Numsgil
That's actually an interesting idea.  But there are alot of in/out pairs...

maybe connect the first 3 to RGB?
cond
*.DBbugs 0 =
start
.rejoice inc
stop

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Set colour to memory location
« Reply #10 on: December 11, 2006, 12:00:47 PM »
Or just create 3 new pairs specific to color.  My understanding of .in/.out is that the intent is purely for bot communication.  We may want to attach special logic to color which for example, restricts bots from changing these values too often or charges costs for changes of a certain magnitude or prevents changing or reading at night.  Just seems to me that color is special case.

We are only using 215 of the 1000 sysvar locations (and several of those are dups used simply to map mulitple strings such as .aimsx and .aimleft to the same sysvar).  We have the space....
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Set colour to memory location
« Reply #11 on: December 11, 2006, 04:06:19 PM »
...We have the technology. We can make them better than they were. Better...stronger...faster.

Offline Henk

  • Bot Destroyer
  • ***
  • Posts: 110
    • View Profile
Set colour to memory location
« Reply #12 on: December 11, 2006, 04:19:59 PM »
IMHO colours should be invisble to bots at night in pondmode

« Last Edit: December 11, 2006, 04:20:32 PM by Henk »
cond
*.DBbugs 0 =
start
.rejoice inc
stop

Offline Lord Squeak

  • Bot Neophyte
  • *
  • Posts: 3
    • View Profile
Set colour to memory location
« Reply #13 on: August 09, 2008, 04:39:39 PM »
I think colours would be a great idea to have.
Not only for the bots, but also for the humans watching.

I've been fiddling around with an 6-sexed organism, which I have divided into 6 different bots, just to make it possible to seperate them.
This in turn leads to all kinds of trouble with one bot out-breeding the others.
I could make a single bot with an sex indicator, but this would make it difficult to see what each sex is actualy doing since they would all have the same colour.