Chaosforge Forum

DoomRL => Discussion => Topic started by: Karry on February 12, 2011, 20:21

Title: How to change colors in the last version ??
Post by: Karry on February 12, 2011, 20:21
I typed
"stairs = GREEN,"
"stairs = GREEN;"
"stairs = 2,"
"stairs = 2;"

to no effect.
Title: Re: How to change colors in the last version ??
Post by: rchandra on February 12, 2011, 22:39
you need
Code: [Select]
stairs_light = GREEN,
stairs_dark = GREEN,

in colors.lua where the other colors are.
Title: Re: How to change colors in the last version ??
Post by: Kornel Kisielewicz on February 12, 2011, 22:46
It's because all map cells (not monsters or items) can have two colors -- depending on whether they are explored or visible. Setup this:

Code: [Select]
stairs_light = GREEN,
stairs_dark = GREEN,

...and it should work.

Or read carefully the header of the file you're modifying:

Code: [Select]
-- Custom coloring based on entity ID's. Search the DoomRL wiki
-- for id's for entities.
--
-- In case of cells, there are two overrides - [id]_light and [id]_dark

Oh, and it definitively isn't the last version :D
Title: Re: How to change colors in the last version ??
Post by: Karry on February 12, 2011, 22:56
Quote
Or read carefully the header of the file you're modifying
Right. We are all experienced coders, and can tell entities from cells if you wake us in the middle of the night. Right, right.

Shouldnt it be in the readme somewhere ?
In the previous version it was plainly stated in the .ini what was needed to be written, in this one it is not obvious at all.
Title: Re: How to change colors in the last version ??
Post by: Thexare on February 14, 2011, 16:52
I'm looking at colors.lua, I see this line.

Code: [Select]
-- In case of cells, there are two overrides - [id]_light and [id]_dark
And at the end of the file? An example.

Code: [Select]
Colors = {
-- floor_dark  = GREEN,
-- floor_light = BLUE,
-- former = BLUE,
-- demon  = GREEN,
}

That rather clearly demonstrates the difference between cells and entities to me, and not only am I not an experienced coder, I"m not a coder at all; I haven't touched programming since the Commodore 64 I played around with fifteen years ago.

In short, quit being an ass.