OpenXcom Forum
Modding => OpenXcom Extended => OXCE Support => Topic started by: mikKoi on April 26, 2022, 10:30:09 pm
-
Hi, I’m trying to submod Xpiratez's armor layers to add custom stuff, but it seems to be more tricky than just modding existing items etc. So, if I write it like in XPZ:
armors:
- type: STR_PEASANT_NUDE_UC
layersDefinition:
M28: ["", "", "M28_NUDE", "", "", "", "", "", "", "", "", "GLASSES_M28", "", "HAIR_M28"]
It causes a crash before the inventory screen: Layered armor sprite definition [STR_PEASANT_NUDE_UC] not found
What magic do I need to perform to gain access to layersDefinition or is it unsubmoddable?
-
you need to define all items in the "layersDefinition"
the code you have above deletes all items defined in piratez ruleset and adds just your 1 item
-
Sure, I just realized it by myself, but bit too late. :-\
Will do that. Thanks.
-
In theory I could add there option for `!add` tag that preserve old values.
-
In theory I could add there option for `!add` tag that preserve old values.
It would be cool. This tag greatly simplifies the creation of submods.