Chaosforge Forum

  • April 27, 2024, 07:32
  • Welcome, Guest
Please login or register.



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

Author Topic: How to change colors in the last version ??  (Read 2496 times)

Karry

  • First Lieutenant
  • *
  • Offline Offline
  • Posts: 206
    • View Profile
How to change colors in the last version ??
« on: February 12, 2011, 20:21 »

I typed
"stairs = GREEN,"
"stairs = GREEN;"
"stairs = 2,"
"stairs = 2;"

to no effect.
Logged

rchandra

  • Elder
  • Major
  • *
  • *
  • Offline Offline
  • Posts: 359
    • View Profile
Re: How to change colors in the last version ??
« Reply #1 on: February 12, 2011, 22:39 »

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

in colors.lua where the other colors are.
Logged
0.9.9.1-4: Arch-Vile Br. General [25/25/17/5/1]
0.9.9.5-7: Hell Baron Major [ 21 16 12 4 1 0 ]

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: How to change colors in the last version ??
« Reply #2 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
Logged
at your service,
Kornel Kisielewicz

Karry

  • First Lieutenant
  • *
  • Offline Offline
  • Posts: 206
    • View Profile
Re: How to change colors in the last version ??
« Reply #3 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.
Logged

Thexare

  • Elder
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 281
  • I think I need a new favorite gun now...
    • View Profile
Re: How to change colors in the last version ??
« Reply #4 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.
Logged
Former Human Corporal
1/42 M, 7/60 S, 3/30 A
[ 6 / 1 / 0 / 0 / 0 ]
Pages: [1]