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

Beginner Tip - Export rarity to .txt file easily #1356

Open 36y opened 2 years ago

36y commented 2 years ago

npm run rarity > log.txt

Salmuun commented 2 years ago

Can you elaborate on this further?

36y commented 2 years ago

Can you elaborate on this further?

Printing rarity data (Experimental feature)

To see the percentages of each attribute across your collection, run:

npm run rarity

The output will look something like this:

Trait type: Top lid
{
  trait: 'High',
  chance: '30',
  occurrence: '3 in 20 editions (15.00 %)'
}
{
  trait: 'Low',
  chance: '20',
  occurrence: '3 in 20 editions (15.00 %)'
}
{
  trait: 'Middle',
  chance: '50',
  occurrence: '14 in 20 editions (70.00 %)'
}

Now if you run npm run rarity > log.txt it will export the data to a text file rather than the console.

bolshoytoster commented 2 years ago

This also applies to any powershell command, and you can also add 2> stderr to pipe errors into a different file.