View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009764 | Dwarf Fortress | Artistic Images (engravings etc) | public | 2016-05-17 13:57 | 2016-06-11 11:38 |
Reporter | kane_t | Assigned To | |||
Priority | low | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 0.43.02 | ||||
Summary | 0009764: Player-specified images treat "artifact" design elements as normal items | ||||
Description | When adding an Artifact as a design element in a user-specified art image, the game uses the wrong ID, leading the artifact to be referred to as a normal item. Specifically, when the game generates art images with Artifact elements, it uses the item ID, and the element is then described as "(Artifact Name), the (item type)." When the player selects an Artifact as a design element in the image specification screen, however, the artifact ID is used, and the game describes the element as just "an (item type)," leaving out the name of the artifact. (And some other minor cosmetic differences in the description.) Probably, the game was supposed to be using the artifact ID all along, and the image specification is doing it right, but older code is expecting the item ID instead. | ||||
Steps To Reproduce | 1) Create a figurine or statue, with a custom image, which includes any named artifact as a design element. 2) View the description of the image, note that it doesn't include the artifact's name. 3) In DFHack, or another memory-editing or debugging tool, find the art_image instance for that image, and then find the element that refers to the artifact. 4) Note that the item_id is actually the artifact record ID (a small number, probably < 9999 for a world with default settings). Change the item_id to instead actually be the item ID (a large number, probably > 40,000). 5) Check the description again, note that it now correctly states the artifact's name. | ||||
Additional Information | In DFHack's lua interface, the art images are stored in df.global.world.art_image_chunks. (The chunks aren't loaded until you view the image.) The design elements are in the art_image's vector of art_image_element*s, and the concrete type for artifacts is art_image_element_itemst. | ||||
Tags | art, image | ||||
|
Note: this doesn't apply to artifacts whose artifact ID is the same as their item ID, of which there are quite a few. Presumably, it's every artifact created during worldgen. So you'll have to use artifacts that were created during your Fortress mode game. (Sorry I didn't mention that in the description, I'd edit it in if I could.) |