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

Adding external url to metadata for node update_info.js #1581

Open grappling1 opened 11 months ago

grappling1 commented 11 months ago

Hi thank you for taking the time to read this.

I'm trying to figure out how to update metadata by adding external url and auto incrementing the url for example......

// General metadata for Ethereum

const external_url = "https://www.some website.com/book/1/index.html............I want to auto increment 1,2,3,4 etc. after adding line then running node update_info.js

I added to module.exports in config.js external_url in main.js generate_metadata I imported and added still stuck on it.

Any suggestions?

Thanks for the help.

0xOptimistic commented 11 months ago

use item.edition with external url in update_info so it will be incremented for each token.

grappling1 commented 11 months ago

Thank you so much for your response, I used it in update_info it worked great but now it created a path problem. node:internal/fs/utils:351 throw err;

errno: -4058, syscall: 'open', code: 'ENOENT', path: 'C:\Users\17188\Desktop\hashlips_art_engine-1.1.2_patch_v6/build/json/https://

It seems after the build it updates json file but then is looking for a url pathway inside the json build folder, which says it doesn't exist in the folder directory. I'm looking through trying to figure out why that happened.