nftchef / art-engine

An advanced fork of the HashLips Art Engine with additional features to generate complex art from provided layers using the familiar Hashlips setup.
MIT License
427 stars 203 forks source link

Need some help with rarity scheme stuff #197

Closed xdrushxd closed 1 year ago

xdrushxd commented 2 years ago

So i did create a art collection with "Hashlips" but they had not all the tools i needed... Now this project could have the potential to fix my issue. So i have 4 backgrounds and in total my collection is 100 img big. i need the rarity of the background to look like this:

Bckground 1 = used 20 times Bckground 2 = used 25 times Bckground 3 = used 50 times Bckground 4 = used 5 times


I can't seem to figure out how to do that and not only background but all my pictures need a specific rarity scheme.

If someone could help me i have discord.

yr12345678 commented 2 years ago

You name your background images like:

Background 1#20.png Background 2#25.png ...

The generator works with weights and the weights are indicated with #... in the filename. In your case, since you have 100 images, you can just make sure all weights for a layer add up to 100.

BOERKEN commented 2 years ago

You name your background images like:

Background 1#20.png Background 2#25.png ...

The generator works with weights and the weights are indicated with #... in the filename. In your case, since you have 100 images, you can just make sure all weights for a layer add up to 100.

Hi yreuvekamp, maybe you also know if it is possible to weight the folders? I have three different folders with different backgrounds. And i like to have them with a different rarity. Thnaks for helping!

yr12345678 commented 2 years ago

It is. You can see an example of that here: https://github.com/nftchef/art-engine#nesting-structure

BOERKEN commented 2 years ago

Thank you so much yreuvecamp! goodspeed and good luck for you!

On Thu, 2 Jun 2022 at 00:16, yreuvekamp @.***> wrote:

It is. You can see an example of that here: https://github.com/nftchef/art-engine#nesting-structure

— Reply to this email directly, view it on GitHub https://github.com/nftchef/art-engine/issues/197#issuecomment-1144197008, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASVG6RDD6N3GU2JO2R7GTMTVM7OLNANCNFSM5XKMYACQ . You are receiving this because you commented.Message ID: @.***>