View Issue Details

IDProjectCategoryView StatusLast Update
0006435Dwarf FortressCreaturespublic2014-02-17 20:08
ReporterVattic Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version0.34.11 
Summary0006435: DISPLAY_COLOR can't be overridden in creature raws
DescriptionIf you use a material template within a creature definition and try to use DISPLAY_COLOR to override the one in the template it ignores the new colour in favour of the old.
Steps To Reproduce* Open the blood man raws
* Remove [ARENA_RESTRICTED]
* Add [DISPLAY_COLOR:1:0:0] under [USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
* Spawn some in the arena
* See what colour severed parts and the pools left behind are
TagsIntentional/Expected?

Activities

user6

2014-02-16 05:55

  ~0024519

Reminder sent to: Vattic

Does it change if you add it above instead?

Vattic

2014-02-16 10:25

reporter   ~0024520

If you put it above then it throws an error as DISPLAY_COLOR is a material not a creature token.

"*** Error(s) found in the file "raw/objects/creature_next_underground.txt"
BLOOD_MAN:Unrecognized Creature Token: DISPLAY_COLOR"

Vattic

2014-02-16 10:46

reporter   ~0024521

Last edited: 2014-02-16 10:46

Just to add:

There are multiple ways to set a materials colour. You can set:
* each individual states colour STATE_COLOR:<state>:<colour> with <colour> coming from descriptor_color_standard.txt, which makes it then pick the nearest colour for display which has it's problems (0006222).
* colour for all states STATE_COLOR:ALL:<colour>.
* and you can set the display colour DISPLAY_COLOR:<x>:<y>:<z> with the three options being foreground, background, and brightness.

It looks like STATE_COLOR overrides DISPLAY_COLOR, but while My initial error report is incorrect DISPLAY_COLOR doesn't seem to be doing anything; If you remove the STATE_COLOR tokens from blood the spilt blood ends up yellow in game not red as the DISPLAY_COLOR token demands. Trying to override the DISPLAY_COLOR in the creature definition also fails.

Quietust

2014-02-16 19:15

reporter   ~0024523

Severed body parts seem to always be colored based on STATE_COLOR rather than DISPLAY_COLOR, and body parts containing blood seem to prefer the color of the creature's blood over the color of the predominant tissue in the body part (which is why troll limbs are generally cyan).

Add Note

Note

Issue History

Date Modified Username Field Change
2014-02-15 20:44 Vattic New Issue
2014-02-16 05:55 user6 Note Added: 0024519
2014-02-16 05:57 user6 Tag Attached: AWAITING UPDATE
2014-02-16 10:25 Vattic Note Added: 0024520
2014-02-16 10:46 Vattic Note Added: 0024521
2014-02-16 10:46 Vattic Note Edited: 0024521
2014-02-16 19:15 Quietust Note Added: 0024523
2014-02-16 20:04 user6 Tag Attached: Intentional/Expected?
2014-02-17 20:08 user6 Tag Detached: AWAITING UPDATE