OpenXcom Forum

Modding => OpenXcom Extended => OXCE Support => Topic started by: mikKoi on April 26, 2022, 10:30:09 pm

Title: [Solved] Submodding armors layersDefinition
Post 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:

Code: [Select]
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?
Title: Re: Submodding armors layersDefinition
Post by: Meridian on April 26, 2022, 10:35:53 pm
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
Title: Re: Submodding armors layersDefinition
Post by: mikKoi on April 26, 2022, 10:40:00 pm
Sure, I just realized it by myself, but bit too late. :-\

Will do that. Thanks.
Title: Re: Submodding armors layersDefinition
Post by: Yankes on April 27, 2022, 12:44:14 pm
In theory I could add there option for `!add` tag that preserve old values.
Title: Re: Submodding armors layersDefinition
Post by: Docent on April 28, 2022, 12:07:04 pm
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.