HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get individual JSONs for each NFT?

seanpen00 opened this issue · comments

commented

I'm using the most recent branch of the generate-art-opensource repository. However, when I mint my NFTs, there is only one file titled "_metadata" instead of multiple .json files for each NFT. I want there to be a 1.json, 2.json, 3.json, etc.

How would I do this?

commented

I got this error when trying to copy and paste the two instances of saveMetaDataSingleFile from a previous branch into my code:

(node:19588) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined

commented

This works with current main
index.zip

i have tried this method, when i reach to 2k+ the program stops creating NFT idk why :( i just use ur index.zip

i have tried this method, when i reach to 2k+ the program stops creating NFT idk why :( i just use ur index.zip

Did you just copy and paste everything into main.js? or index.js?

commented

index.js

I didn't try to make more than 1000 NFT but I don't see why it wouldn't work for more as long as you have enough layers to avoid having duplicated DNA.

You can just compare the difference with your code and grab only what you need.