View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0013010 | Dwarf Fortress | Creatures | public | 2024-11-06 17:43 | 2025-11-18 23:12 |
| Reporter | WearyWanderer | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Platform | PC | OS | Windows | OS Version | 10 |
| Product Version | 50.14 | ||||
| Summary | 0013010: TL_COLOR_MODIFIER token is bugged when using multiple color arguments | ||||
| Description | [TL_COLOR_MODIFIER] doesn't properly obey relative frequencies specified, the weights are shifted towards the first colors in a non-linear fashion. I used Object Testing Arena and out of 600 spawned creatures (modded kobold) the following arguments: [TL_COLOR_MODIFIER:GRAY:1:BLUE:1:CRIMSON:1:PURPLE:1] Produces: 237 GRAY, 189 BLUE, 130 CRIMSON, 44 PURPLE Using different weights does affect things, but the relation becomes even more complex: [TL_COLOR_MODIFIER:GRAY:2:BLUE:3:CRIMSON:4:PURPLE:12] Produces (out of 100): 19 GRAY, 24 BLUE, 24 CRIMSON, 33 PURPLE The bug also is present in vanilla creatures, for example, dwarven skin colors: [TL_COLOR_MODIFIER:BROWN:1:BURNT_UMBER:1:CINNAMON:1:COPPER:1:DARK_BROWN:1:DARK_PEACH:1:DARK_TAN:1:ECRU:1:PALE_BROWN:1:PALE_CHESTNUT:1:PALE_PINK:1:PEACH:1:PINK:1:RAW_UMBER:1:SEPIA:1:TAN:1:TAUPE_PALE:1:TAUPE_SANDY:1] Here colors toward the end like "TAUPE_SANDY" almost never appear due to this bug, despite having the exact same frequency set! | ||||
| Steps To Reproduce | 1. Go to Object Testing Arena 2. Spawn any creature that is supposed to have tissues modified with TL_COLOR_MODIFIER with multiple color arguments and equal frequencies 3. Repeat N times 4. Observe frequency distribution being heavily skewed | ||||
| Tags | 50.14, creature, creatures, raw file, raw files | ||||
|
|
Upon further testing, it appears that the apparent skewed distribution (even in Testing Arena) could be explained by [TL_COLOR_MODIFIER] being subject to the genetic rules. Though I haven't checked the math with as rigorous of a test, this would make it NOT A BUG. Explanation for anyone who might be googling up this issue by the [TL_COLOR_MODIFIER] token and is still confused: 1. I believe every creature upon generation under the hood rolls TWO colors from [TL_COLOR_MODIFIER] and adds them to its "genetics". 2. Only ONE of the colors manifests based on the order of the colors specified (colors to the left are more dominant, overriding colors to the right). 3. If the system is completely true to the real-life genetics - this would also mean that EITHER of the two colors could be passed to children (even the one that didn't manifest). |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2024-11-06 17:43 | WearyWanderer | New Issue | |
| 2024-11-06 17:43 | WearyWanderer | Tag Attached: 50.14 | |
| 2024-11-06 17:43 | WearyWanderer | Tag Attached: creature | |
| 2024-11-06 17:43 | WearyWanderer | Tag Attached: creatures | |
| 2024-11-06 17:43 | WearyWanderer | Tag Attached: raw file | |
| 2024-11-06 17:43 | WearyWanderer | Tag Attached: raw files | |
| 2025-11-18 23:12 | WearyWanderer | Note Added: 0042995 |