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.15k stars 4.3k forks source link

Change starting number in the collection #366

Open soleaswest opened 2 years ago

soleaswest commented 2 years ago

Hey there,

Does anybody knows how to change the starting number of the collection instead of 0?

I want it to start from 5000 for example and so on

debashisdey commented 2 years ago

You cannot do that. What you can do is bulk rename the image and json files with a starting number. But for correcting the json files content you need to run a -sed script in terminal.

levianlp commented 2 years ago

@debashisdey thank you for yr advice mate, so do you have any example of a script that can rename the name inside json like for every single json file

bolshoytoster commented 2 years ago

@levianlp you can start a collection from any number in my repo. You set startEditionFrom just like you set growEditionSizeTo.

levianlp commented 2 years ago

@bolshoytoster ola thank you mate i'll try it now, thank you so much

levianlp commented 2 years ago

@bolshoytoster hello i got this error Cannot find module 'D:\hashlips_art_engine-main (1)/node_modules/sha1', what node patch do you use

bolshoytoster commented 2 years ago

@levianlp just run npm install.

levianlp commented 2 years ago

@bolshoytoster yep already do npm install sha1 and it works man, thank you for yr work appreciate it so much

Lucobos1970 commented 2 years ago

@bolshoytoster Hello, thanks in advance for any help I can get. I am not a developer, but I learned how to make an NFT collection, but I wanted to learn how to start a collection from any number I choose... I got you repo, but I don't know what to do next... I have to set startEditionFrom but, where do I do that? in the config.js file ? I have seen in main.js code lines containing startEditionFrom but, where/how do I set startEditionFrom in the config.js file? Thanks a lot!

bolshoytoster commented 2 years ago

@Lucobos1970

const layerConfigurations = [
  {
    startEditionFrom: 100, // here
    growEditionSizeTo: 200,
    layersOrder: [
      { name: "Background" },
      { name: "Eyeball" },
      { name: "Eye color" },
      { name: "Iris" },
      { name: "Shine" },
      { name: "Bottom lid" },
      { name: "Top lid" },
    ],
  },
];
Lucobos1970 commented 2 years ago

Hello Bolshoytoster, thanks so much for the fast reply... I changed the config.js file:

const layerConfigurations = [ { startEditionFrom: 21, growEditionSizeTo: 30, layersOrder: [ { name: "Background" }, { name: "Eyeball" }, { name: "Eye color" }, { name: "Iris" }, { name: "Shine" }, { name: "Bottom lid" }, { name: "Top lid" }, ], }, ];

But I got this error, it looks like it couldn't find: node_modules/sha1 (But I couldn't find that folder in the repo files)

Error: Cannot find module 'C:\Users\pixel\Desktop\NFT_3D_CHARACTER\3D_CHARACTER_COLLECTIONS\1 - HASHLIPS APP TRIAD\03-hashlips_art_engine-main/node_modules/sha1' Require stack:

bolshoytoster commented 2 years ago

@Lucobos1970 you need to run npm install again.

Lucobos1970 commented 2 years ago

Thanks my friend... sorry to be a pain, but I tried running npm install ...
In the Build folder, inside the json folder I have all .json files ... but the images folder is empty.

In the config.js file I tried this code: // If you have selected Solana then the collection starts from 0 automatically const layerConfigurations = [ { startEditionFrom: 10, growEditionSizeTo: 20, layersOrder: [ { name: "Background" }, { name: "body" }, { name: "face" }, { name: "tatoo" }, { name: "glasses" }, { name: "hair" }, { name: "piercing" }, { name: "pants" }, { name: "belt" }, { name: "shirt" }, { name: "music" }, { name: "bracelet" }, { name: "skateboard" }, { name: "boots" }, ], }, ];

And this is the mssg what I get in the Terminal:

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\pixel\Desktop\NFT_3D_CHARACTER\3D_CHARACTER_COLLECTIONS\1 - HASHLIPS APP TRIAD\hashlips_art_engine-main> npm install

up to date, audited 67 packages in 3s

6 packages are looking for funding run npm fund for details

found 0 vulnerabilities PS C:\Users\pixel\Desktop\NFT_3D_CHARACTER\3D_CHARACTER_COLLECTIONS\1 - HASHLIPS APP TRIAD\hashlips_art_engine-main> node index.js Created edition: 10, with DNA: 0373645b7221eac94bd780b69eecfd7127982c05 Created edition: 11, with DNA: bcee5427b33ed75f4381d40cdba4333884c44b40 Created edition: 12, with DNA: f8f136dbdf77a93b534323cb49f887d73e0379c5 Created edition: 13, with DNA: dd29cdb3a89e9376e7bb2985ab608793eb185d39 Created edition: 14, with DNA: b4faee3fdc619052f86066617e9b83d03bbea5f0 Created edition: 15, with DNA: 64c2b014551056251ae6df234077720bb6fd11ee Created edition: 16, with DNA: f52222dee342a6de20730685793d9628406960bc Created edition: 17, with DNA: db5ced67874d74c6f862a15520a0c65a763ebe3a Created edition: 18, with DNA: a2054b3379c5f51e29796d0eee6ba634069a649b Created edition: 19, with DNA: 850d164b10a8ecb750c296d1057e4c7efd0e9f73 Created edition: 20, with DNA: c4afd355ab44b261834fa586a89ad2687efc8f48 PS C:\Users\pixel\Desktop\NFT_3D_CHARACTER\3D_CHARACTER_COLLECTIONS\1 - HASHLIPS APP TRIAD\hashlips_art_engine-main>

Thanks

bolshoytoster commented 2 years ago

@Lucobos1970 I'm fixing this problem now actually.

Lucobos1970 commented 2 years ago

Hello bolshoytoster... Thanks really... very very helpful...

Gireeshbd commented 1 year ago

Hello @bolshoytoster and @Lucobos1970

const layerConfigurations = [
  {
    startEditionFrom: 100,
    growEditionSizeTo: 10,
    layersOrder: [
      { name: "Background" },
      { name: "Eyeball" },
      { name: "Eye color" },
      { name: "Iris" },
      { name: "Shine" },
      { name: "Bottom lid" },
      { name: "Top lid" },
    ],
  },
];

I had set startEditionFrom : 10 , but still its starting from 1 can you guys help me out in this

bolshoytoster commented 1 year ago

@Gireeshbd

  1. Are you using my fork?
  2. If so, have you made sure to save src/config.js after editing it?