HashLips / hashlips_art_engine

HashLips Art Engine is a tool used to create multiple different instances of artworks based on provided layers.
MIT License
7.18k stars 4.3k forks source link

rarity is not working properly #1318

Open DewminaS opened 2 years ago

DewminaS commented 2 years ago

the problem is the rarity i enter before generating nfts, but after generating tham the rarities are not the same rarities i entered before, they changed. Screenshot (132) Screenshot (133)

somebody can please help for work with it @bolshoytoster @LKYSE7EN

bolshoytoster commented 2 years ago

@DewminaS the rarities you enter are just weights, meaning that occurance won't match it exactly.

Another factor to consider is that when you get closer to the max amount of images you can generate the weights will matter less because hashlips doesn't normally allow duplicates.

treshaa99 commented 2 years ago

@bolshoytoster but how can we add rarities to our NFTs ? can you please explain it

bolshoytoster commented 2 years ago

@treshaa99 you do have rarities, they're just not exact amounts. You'll get closer to the amounts you want if you add more images and make your collection bigger.

treshaa99 commented 2 years ago

@bolshoyotoster can uu please explain what's the mathematical method use in rarities and why it is so hard to understand it, what is the reason we can't add rarity simply ?

bolshoytoster commented 2 years ago

@treshaa99 because the images are generated (pseudo)randomly, the occurances are also random - weights can't be exact.

If you want to see how they're generated, refer to createDna: https://github.com/HashLips/hashlips_art_engine/blob/d8ee279043d2d4a8de3bdfac0d89d0e966fb04a2/src/main.js#L282-L304

DewminaS commented 2 years ago

@bolshoytoster can uu please show the correct way to add rarity I want

  1. gray 20%
  2. light blue 20%
  3. light green 10%
  4. red. 5%
  5. yellow 45%
bolshoytoster commented 2 years ago

@DewminaS with the way haslips generates, you can't. You can either add more images and make your collection bigger or look for a different generator.

treshaa99 commented 2 years ago

@bolshoytoster then ,if customer give a rarities like the image below can uu please tell how can we get the extract rarities within using hash lips art generator WhatsApp Image 2022-07-13 at 6 43 30 PM ![Uploading WhatsApp Image 2022-07-13 at 6.45.00 PM.jpeg…]() ![Uploading WhatsApp Image 2022-07-13 at 6.43.30 PM.jpeg…]()

bolshoytoster commented 2 years ago

@treshaa99

how can we get the extract rarities within using hash lips art generator

You can't, you'll have to find another generator.