Issue with incompatible layers #299
Unanswered
rmill2016
asked this question in
Help + Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys! I came across an issue with the incompatible layers feature as I was testing new rulesets. I have checked over the discussions and I wasn't able to find a solution as of yet. My issue pertains to listing a subdirectory is incompatible with a certain hair type. The batch resulted in a matching that violated the ruleset. I'm wondering what I could be doing incorrectly? Thank you
for context I have set all rarities across the board to #100. I use z-indexing to ensure that hair34 and hair36 will always be above clothing btw.
`
//default layer ordering
const layerConfigurations = [
{
growEditionSizeTo: 50,
namePrefix: "", // prefix for series
layersOrder: [
// furthest back
{ name: "Background" },
{ name: "Body" },
{ name: "Brows" },
{ name: "Eyes" },
{ name: "Eye color" },
{ name: "Lips" },
{ name: "Hair" },
{ name: "Clothing" },
{ name: "Accessories" },
//furthest front
],
},
];
const incompatible = {
patternShort: ["hair34", "hair36"],
// patternShort is a subdirectory of Background
solidShort: ["hair34", "hair36"],
// solidShort is a subdirectory of Background
}
json result:
{
"trait_type": "Background",
"value": "background71"
},
{
"trait_type": "Body",
"value": "body11"
},
{
"trait_type": "Brows",
"value": "brow11"
},
{
"trait_type": "Eyes",
"value": "eyes3"
},
{
"trait_type": "Eye color",
"value": "eyecolor2"
},
{
"trait_type": "Lips",
"value": "lips1"
},
{
"trait_type": "Clothing",
"value": "clothing40"
// part of solidShort subdirectory
},
{
"trait_type": "Hair",
"value": "hair34"
// violates incompatible ruleset
},
{
"trait_type": "Accessories",
"value": "accessories13"
}
}`
Beta Was this translation helpful? Give feedback.
All reactions