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

[SOLVED] update_info doesn't change baseUri in individual jsons #1139

Open Vatroslaw opened 2 years ago

Vatroslaw commented 2 years ago

Hey, guys! I'm a non-coder, please use all the baby steps :)

I've generated the images and jsons, sent them off to be uploaded to ipfs then got the CID back to update jsons. I've placed it into config.js, ran the update_info, but it doesn't change baseUri in individual jsons, it only in inputs them to _metadata.

Plus, another problem arises there, as it replaces the file names (1.png, 2.png etc) with undefined as well as "image": "ipfs://myCID/undefined.png

And a new undefined.json is created, which is just a duplicate of the last json on the list. What have you tried?

I'm slowly losing it as I've read a ton, tried a lot of things suggested but nothing works. I'd appreciate all the help :D

Vatroslaw commented 2 years ago

I found this, and it did the thing.

https://www.majorgeeks.com/files/details/fart.html https://emtunc.org/blog/03/2011/farting-the-easy-way-find-and-replace-text/