forcedCombinations ignoring incompatible (NOT SOLVED) #320
Unanswered
cryptotester
asked this question in
Help + Q&A
Replies: 2 comments
-
@nftchef I think that forcedCombinations needs an update, it needs an extra check to see if the forced combination still has some incompatible traits. How would you advise to add that? THX |
Beta Was this translation helpful? Give feedback.
0 replies
-
To make it work, I had to avoid using forced combinations. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
UPDATE
Update 2:
It seems that forcedCombinations makes a dna containing incomatible items possible.
Update 1:
I don't know what I was doing, for testint I changed Zombie#7.png to Zombie#700.png, to get more occurrences of it... can that be the cause for messing results up?
Hi,
I configured a few forced combinations based on the background trait, which is the first layer in the hierarchy.
Note, I want the Background to be a trait, that's why I separated the backgrounds from the body. I'd like that the "Zombie_Green" background forces a "Zombie" over it. But I want to allow Zomby to have a different background than the Zombie_Green.
Maybe I'm missing a trick, using nested folders (but need some guidance because I tried and didn't really made sense of thme, in my setup). Would be really cool to have some help.
Here my layers configuration:
Here my
forcedCombinations
:I configured also a bunch of incompatible combinations for the Zombie e.g.:
The problem I have, is that in the generated collection I'm getting zombies, which still have the traits I specifically marked as incompatible.
I checked the code in
main.js
and I found which part of the code seems responsible for this:I debugged this and the dnaString returned indeed contains those traits that I marked incompatible with the Zombie type.
I commented this line:
I did re-run the build, this time I don't get anymore the incompatible combinations, however, the rarity of the zombie decreased drastically. Before I was getting more or less 7% as I configured it with weight #7 (out of a total of 100).
Now I get only 2%.
Can you suggest a fix for my issue? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions