Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011806Dwarf FortressMiscellaneous Crashespublic2021-09-14 08:332021-09-14 08:33
voliol 
 
lowcrashalways
newopen 
0.47.05 
 
0011806: Descriptor pattern tokens, PATTERN:IRIS_EYE, PATTERN:PUPIL_EYE and PATTERN:SPOTS, cause crashes if no colors are given.
Custom descriptor patterns may be told to act as eye colors or spots by using either PATTERN:IRIS_EYE, PATTERN:PUPIL_EYE, PATTERN:SPOTS, but then be given no colors using CP_COLOR. If such a descriptor pattern lacking colors is given to a creature, then the game will crash upon attempting to view that creature's description.
- Copy these into any of the descriptor pattern files (or create a new raw file for them):

[COLOR_PATTERN:IRIS_EYE_NONE]
    [PATTERN:IRIS_EYE]

[COLOR_PATTERN:PUPIL_EYE_NONE]
    [PATTERN:PUPIL_EYE]

[COLOR_PATTERN:SPOTS_NONE]
    [PATTERN:SPOTS]

- Make a creature use them, e.g. by pasting something like

[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
    [TL_COLOR_MODIFIER:IRIS_EYE_NONE:1]
        [TLCM_NOUN:eyes:PLURAL]

to the end of the creature definition.

- Load these raws, and attempt to view the creature's description.
I have only tested this in arena mode, but have no reason to believe it would not hold true in the other modes.
No tags attached.
Issue History
2021-09-14 08:33voliolNew Issue

There are no notes attached to this issue.