Chaosforge Forum

  • April 18, 2024, 08:43
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Color bindings for fun and profit!  (Read 5874 times)

tehtmi

  • Programmer
  • Supporter of Chaos
  • Lieutenant Colonel
  • *
  • *
  • Offline Offline
  • Posts: 458
    • View Profile
Color bindings for fun and profit!
« on: May 01, 2011, 19:16 »

I was messing around with color bindings (in color.lua) to see if I could use them to gain an advantage in the game.  In fact, you can, but the advantage is quite small.  Anyway, here is my new color bindings file so y'all can see what is possible.  Some are more obtrusive than others.

(My favorite: bridge_dark = LIGHTGREY)

Code: [Select]
BLACK       = 0
BLUE        = 1
GREEN       = 2
CYAN        = 3
RED         = 4
MAGENTA     = 5
BROWN       = 6
LIGHTGRAY   = 7
DARKGRAY    = 8
LIGHTBLUE   = 9
LIGHTGREEN  = 10
LIGHTCYAN   = 11
LIGHTRED    = 12
LIGHTMAGENTA= 13
YELLOW      = 14
WHITE       = 15

-- overrides color(MAGENTA, BLUE)
WATER = 21

-- overrides color(BROWN, BLUE)
ACID = 22

-- overrides color(LIGHTGRAY, BLUE)
LAVA = 23

-- Calculates the code with foreground color "front" and background color "back"
-- Three don't work (as noted above).
local color = function(front, back)
  return front + 16 * (back or 0)
end

Colors = {
  -- This thing is too easy to miss!
  dshotgun = LIGHTRED,
  -- For nostalgia's sake.
  chainsaw = RED,
  bfg9000 = MAGENTA,
  -- This is quite useful and unobtrusive.
  bridge_dark = LIGHTGRAY,
  -- This a bit cheaty, but it's nice for noticing locked vaults.
  -- Note: pwalls are those that cannot be destroyed!
  pwall_light = color(LIGHTGRAY, LIGHTGRAY),
  pwall_dark = color(DARKGRAY, DARKGRAY),
  prwall_light = color(RED, RED),
  prwall_dark = color(DARKGRAY, DARKGRAY),
  -- These are nice with automaps, or if you like to run around the level.
  -- after clearing it without being careful.
  acid_light = color(GREEN, GREEN),
  lava_light = color(LIGHTRED, LIGHTRED), 
  acid_dark = ACID,
  lava_dark = LAVA,
  pacid_light = color(GREEN, GREEN),
  pacid_dark = ACID,
  plava_light = color(LIGHTRED, LIGHTRED), 
  plava_dark = LAVA,
  -- These are mildly useful for remembering barrel types, or finding them
  -- out with automaps.
  barrel_light = YELLOW,
  barrel_dark = BROWN,
  barrela_light = LIGHTGREEN,
  barrela_dark = GREEN,
  barreln_light = LIGHTRED,
  barreln_dark = RED,
  -- For automaps/intuition and quick recognition.
  -- (To avoid confusion with large health globe.)
  bpack = MAGENTA
}

Those foreground/background color bindings probably won't work for those of you not using windows.

Other possibilities: changing your favorite uniques and exotics to have special colors so you can recognize them with the automap.  And anything else you can think of!

(And kudos to whoever foiled my attempt to distinguish levers using color bindings :P)

Edit: Fixed water color (oops)
« Last Edit: June 09, 2011, 14:03 by tehtmi »
Logged

grommile

  • Elder
  • First Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 205
  • mmm beer
    • View Profile
Re: Color bindings for fun and profit!
« Reply #1 on: May 01, 2011, 19:56 »

My favorite:

sergeant = LIGHT_MAGNETA;
Logged
0.9.9.7: 22-15-10-0-0 22/43 62/67 (P 349, D 43/67) 36/40 (B19 A12 M5) Arch-Vile CPT

Armorer Platinum and Diamond should be abolished; the Dragonslayer taboo deserves every scrap of mockery it receives.

raekuul

  • Supporter
  • Brigadier General
  • *
  • *
  • Offline Offline
  • Posts: 668
  • Storyteller Under The Bridge
    • View Profile
    • Veldania
Re: Color bindings for fun and profit!
« Reply #2 on: May 01, 2011, 20:40 »

Code: [Select]
Colors = {
ldoor = RED;
nukecell = YELLOW;
garmor = LIGHTGREEN;
barmor = LIGHTRED;
rarmor = LIGHTCYAN;
bpack = CYAN;
former = WHITE;
sergeant = GREEN;
captain = RED;
imp = YELLOW;
demon = LIGHTRED;
lostsoul = GREEN;
commando = CYAN;
arch = DARKGRAY;
cyberdemon = LIGHTMAGENTA;
jc = MAGENTA
}

With a bright green ? for Intuition-detected Monsters

NOTES:
Since Locked Doors only appear in Halls of Carnage, what good does having separate color binding do?

Red 0 looks too much like a corpse for me to notice it half the time, so now it's Yellow.

Armors are color-coded according to match Former Humans.

JC and Cybie colored for humor. Arch colored for harder diff.
« Last Edit: May 01, 2011, 20:43 by raekuul »
Logged
Quote
Tormuse doesn't lose, he dies on purpose to lull the demons into a false sense of security.

grommile

  • Elder
  • First Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 205
  • mmm beer
    • View Profile
Re: Color bindings for fun and profit!
« Reply #3 on: May 01, 2011, 20:57 »

I like to keep dangerous monsters high-contrast. Might be worth turning mancubi and revenants pink while I'm at it.
Logged
0.9.9.7: 22-15-10-0-0 22/43 62/67 (P 349, D 43/67) 36/40 (B19 A12 M5) Arch-Vile CPT

Armorer Platinum and Diamond should be abolished; the Dragonslayer taboo deserves every scrap of mockery it receives.

Deathwind

  • Colonel
  • *
  • Offline Offline
  • Posts: 505
  • HMP Angel of Patience 0.9.9.4
    • View Profile
Re: Color bindings for fun and profit!
« Reply #4 on: May 02, 2011, 02:40 »

Intuition's symbol and color are in the main config.lua, I set mine to yellow asterisks because of the arena master's staff
Logged
v.997 [16/5/2/0/0]

grommile

  • Elder
  • First Lieutenant
  • *
  • *
  • Offline Offline
  • Posts: 205
  • mmm beer
    • View Profile
Re: Color bindings for fun and profit!
« Reply #5 on: May 02, 2011, 03:26 »

I set mine to 'x', because just about anything is better than the factory default, and no existing gameplay element uses 'x'.
Logged
0.9.9.7: 22-15-10-0-0 22/43 62/67 (P 349, D 43/67) 36/40 (B19 A12 M5) Arch-Vile CPT

Armorer Platinum and Diamond should be abolished; the Dragonslayer taboo deserves every scrap of mockery it receives.

raekuul

  • Supporter
  • Brigadier General
  • *
  • *
  • Offline Offline
  • Posts: 668
  • Storyteller Under The Bridge
    • View Profile
    • Veldania
Re: Color bindings for fun and profit!
« Reply #6 on: May 02, 2011, 14:37 »

Intuition's symbol and color are in the main config.lua, I set mine to yellow asterisks because of the arena master's staff
They really should be covered in color.lua for consistency, or at least in addition to in config.lua
Logged
Quote
Tormuse doesn't lose, he dies on purpose to lull the demons into a false sense of security.

Deathwind

  • Colonel
  • *
  • Offline Offline
  • Posts: 505
  • HMP Angel of Patience 0.9.9.4
    • View Profile
Re: Color bindings for fun and profit!
« Reply #7 on: May 03, 2011, 03:47 »

move the color yes, but the symbol should stay where it is
Logged
v.997 [16/5/2/0/0]

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Color bindings for fun and profit!
« Reply #8 on: May 03, 2011, 17:38 »

Hmm.  Screenshotting using a modified color.lua file causes the colour scheme to follow whatever was locally set, right?

If yes, might be a good idea to have an option that does not do that, otherwise it will get really confusing in the screen shot section when people put up things with Magenta monsters ("wow, new monster that I've not seen before?").
Logged
I computed, therefore I was.

Simon-v

  • Composer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 272
  • Only Human
    • View Profile
    • The Life and Works of One Simon Volpert
Re: Color bindings for fun and profit!
« Reply #9 on: May 03, 2011, 18:13 »

Fun fact: i was going to make a topic like that for, like, two months, but never got to it.

And kudos to whoever foiled my attempt to distinguish levers using color bindings :P
That would be me, during one of the early betas. You're welcome. ;)

My colors.lua is rather basic - i only have the berserk pack and locked door replaced (dark gray (i feel it to be more "doomish") and yellow (no special reason) respectively). I think i'll borrow a couple ideas from your config, though.

What i really use a lot are the message colors. I use them to draw attention to everything that needs attention:
Code: [Select]
Messages = {
    -- Danger!
["Warning!*"] = RED,
["*Nuclear missile deployed.*"] = RED,
["Your * damaged!"] = BROWN,
["Your * destroyed!"] = RED,
["You die*"] = RED,
-- Level Clear feelings
["You feel relatively safe now."] = BLUE,
["*A pity you came to destroy us*"] = BLUE,
["So much for hellish fair-play."] = BLUE,
["Peace comes back to this evil place."] = BLUE,
["Why do they have to come in pairs? And what's that shimmering thing?"] = BLUE,
["As you kill the Angel of Death suddenly the cathedral starts to fall apart!"] = BLUE,
["Suddenly everything is peaceful.*"] = BLUE,
["That seems to be all of them, hopefully..."] = BLUE,
["That had damn well better be all of them!"] = BLUE,
["Well, they sure opened up. Now to see if there's anything left worth taking..."] = BLUE,
["Suddenly the webs fade. From under the webs, items emerge..."] = BLUE,
["Tough son of a bitch...*"] = BLUE,
-- L00t feelings!
["You feel there is something really valuable here!"] = GREEN,
["The lab cache opens."] = GREEN,
["A presence! Of something holy! Here in this hell?*"] = GREEN,
-- Levers of no fun and some profit
["In the State of Denmark there was the odor of decay..."] = RED,
["You feel that smell? That gasoline smell? Oh hell..."] = RED,
["The air is really humid here..."] = BLUE,
["You hear the trumpets of Jericho echoing in the distance..."] = CYAN,
["Khe, he, he, this will be a mess..."] = BROWN,
-- Level events feelings
["The air seems deadly here, you better leave quick!"] = RED, -- TEST THIS
["You feel you need to run!"] = BROWN,
-- Special level stairs
["You feel a breeze of morbid air..." ] = MAGENTA,
["You sense a passage to a place beyond..."] = MAGENTA,
["You shiver from cold..."] = MAGENTA,
}
Logged

Deathwind

  • Colonel
  • *
  • Offline Offline
  • Posts: 505
  • HMP Angel of Patience 0.9.9.4
    • View Profile
Re: Color bindings for fun and profit!
« Reply #10 on: May 04, 2011, 01:23 »

Great idea, those are being added to my config right now
Logged
v.997 [16/5/2/0/0]

Thomas

  • DoomRL Wiki and Testing Ops
  • Elder Chaos Guard
  • Major General
  • *
  • *
  • Offline Offline
  • Posts: 881
  • How's it going?
    • View Profile
Re: Color bindings for fun and profit!
« Reply #11 on: May 04, 2011, 02:59 »

I pinched these ones from Blade, mainly:

Code: [Select]
*All of the default ones*

["You feel*"]                     = RED, (Covers "you need to run!" and "that gasoline smell?")
["*Jericho*"]                     = RED,
["*of a free*"]                   = BLUE,
   ["*suddenly*"]                    = BROWN, (Covers a lot of sudden things, like monsters teleporting and walls blowing up)
["Fire*"]                         = GREEN, (You need to know if you're about to move your crosshair or if you're
["Find a more constructive*"]     = GREEN, about to move yourself, especially if you're a hasty player like me.)
["*Denmark*"]                     = GREEN,
["*healthier!"]                   = GREEN (Fuckers always stealing my medpacks)
}

I should probably also make the special level ones magenta, I'm always looking back in the previous messages for them just in case.

EDIT: I thought I didn't use any colour bindings, but I guess I just must be so used to my hot pink demons that I forgot about demon = MAGENTA.
« Last Edit: May 04, 2011, 03:01 by Thomas »
Logged
Arch-Vile Chaos Major Thomas
[26/26/26/25/9/1]
Medals: 35/43 Specials: 69/67 Assemblies: 36/40

GrimmC

  • Guest
Re: Color bindings for fun and profit!
« Reply #12 on: May 04, 2011, 13:07 »

The most important imo:
Code: [Select]
lhglobe = LIGHTCYAN
No more confusion with berserk packs.
Logged

Brewtal Legend

  • Second Lieutenant
  • *
  • Offline Offline
  • Posts: 162
  • I am Hellbound
    • View Profile
Re: Color bindings for fun and profit!
« Reply #13 on: May 04, 2011, 20:44 »

is there a way to change the color of the crates? whenever I enter a new level next to blue crates and water while wearing blue armor, I have a hell of a time trying to figure out where the doomguy actual is on the screen.
Logged
-Legend

tehtmi

  • Programmer
  • Supporter of Chaos
  • Lieutenant Colonel
  • *
  • *
  • Offline Offline
  • Posts: 458
    • View Profile
Re: Color bindings for fun and profit!
« Reply #14 on: May 04, 2011, 20:52 »

The ids of the crates are "crate" (blue) and "ycrate" (brown). So, to get rid of blue crates, you can use
Code: [Select]
crate_light = BROWN
Or if you want to get rid of both you could do
Code: [Select]
crate_light = LIGHTGRAY,
ycrate_light = LIGHTGRAY

Also, there are lot of cool suggestions in this thread :)
Logged
Pages: [1]