Closed Y-Ali closed 2 years ago
Your layer percentages are too heavy on a single rarity which highly decreases the number of unique images which can be generated. Just try to make sure each layer has a well distributed rarity percentage. For instance , Changing the values to something like addRarityPercentForLayer('original', 'accessory', { 'super_rare': 5, 'very_rare': 15, 'rare': 30 , 'original': 50 }); You are gonna have to spend a lot of time tweaking the different values for all the layers to get the desired outputs. It took me like 4-5 hours editing the values to get the elements I wanted lol
could you please explain what these lines of code mean and what the values signify? also how did you add/what did you change to make the very rare layer work?
@thecryptobirdie addRarityPercentForLayer('original', 'accessory', { 'super_rare': 5, 'very_rare': 15, 'rare': 30 , 'original': 50 });
Here original refers to the nfts generated in original rarity and accessory is the layer which the element is picked from. This piece of code is defining the rarity of each element being picked from the accessory layer so you can really fine tune the results. Say you want to do the same for all rare nfts for a layer called background you could add something like this: addRarityPercentForLayer('rare', 'background', { 'super_rare': 5, 'very_rare': 20, 'rare': 35 , 'original': 40 });
And you can keep adding these for all your layers and rarities. Just make sure the values add up to 100 or you'll get an error. I hope you understood im really bad at explaining XD
Alright I think I understand. Just would i have to do ('original', 'background', ('rare', 'background', ('super_rare', 'background', for every layer?
@thecryptobirdie yeah and then change the 'background' to the layer name for every original rare and super rare.
perfect. ill give it a shot! Thanks so much!
So I've got 6 layers and the code was producing over 1000 images but now is producing less due to some changes that I've made to the rarity percentages ...
Can someone suggest what percentage I could assign to each one for the above please and suggest how I should distribute the percentages for the other layers too? It gets a bit confusing with a lot of layers lol