Page 1 of 1

CharacterCorpsePrototype: use of picture/pictures

Posted: Fri Feb 13, 2026 6:35 am
by Pi-C
The documentation for CharacterCorpsePrototype tells us that pictures is mandatory if picture is not defined, and that picture is mandatory if pictures is not defined. However, it doesn't tell which will be used if both picture and pictures are defined in the prototype.

According to my tests, pictures will be used in that case. Could you add this info, please?

Re: CharacterCorpsePrototype: use of picture/pictures

Posted: Fri Feb 20, 2026 7:19 pm
by Bilka
Thanks for the note. I've adjusted the description of "picture" to make clear it's only loaded if "pictures" is not defined.

Re: CharacterCorpsePrototype: use of picture/pictures

Posted: Sat Feb 21, 2026 4:51 pm
by Pi-C
Thank you! Also, I've just found something about CharacterCorpsePrototype::armor_picture_mapping:
Table of key value pairs, the keys are armor names and the values are numbers. The number is the Animation that is associated with the armor, e.g. using 1 will associate the armor with the first Animation in the pictures table.
However, this may also be an empty table! Could you add this, too, please?

Actually, this feature is quite useful for my Character mod helper. Character mods using it will create tables with the character/corpse properties they want to change. Depending on whether a character selector mod is active, the default character/corpse will be overwritten with all properties in these tables – but if the modified corpse has only one picture and its armor_picture_mapping is set to nil the original armor_picture_mapping would NOT be overwritten and the game would crash on loading because the referenced pictures don't exist. Having armor_picture_mapping as an empty table in the data of the new corpse is more intuitive and convenient because the empty table will overwrite the default character's armor_picture_mapping for good, so no further action is required. :-)