jalagar / animated-art-engine

A generative engine that takes various png layers on a sprite sheet format, combines them and then converts them into a .gif file
MIT License
166 stars 64 forks source link

Extra "Output" Trait added into json #166

Open NFTLordX opened 1 year ago

NFTLordX commented 1 year ago

Hey there, absolutely amazing tool! Just having a small issue when randomizing collection.

For some reason, an extra "Output" trait is being lumped into my json and I honestly have no idea why. I've rechecked my work and can't find anything that would lead to this. Would appreciate some guidance so I can stop this from happening!

Here's a screenshot of the extra trait being added.

Screen Shot 2022-11-04 at 1 27 41 PM
5085950 commented 1 year ago

I'm not sure, but take a look if you want...

Rename the "Arms" folder to something like "Arms#1". I had such a problem too. It gets different information when there is no "#" in the folder name. All internal folder names must be "#" to set rarity

jalagar commented 1 year ago

@NFTLordX I've never seen this before. I would double check your layers folder, or your config.js

Abdullah1738 commented 1 year ago

+1 Same issue

jalagar commented 1 year ago

@Abdullah1738 what does your global_config look like and step2/config.js?

FOAMLabs commented 10 months ago

+2 same issue... I am also missing ears eyes and mouth.

I am so stumped I have worked to debug for days... I can't find any support on the issue... was really hoping this was the thread. @jalagar was there ever a fix for this? I am batching but this is happening in every format i run and with gifski as well...the terminal was giving this error through the whole generation...for every trait it seemed. weird thing is these traits exist but in different folders.

Error: 3.2:BLUE_SKIN_WHITE_EYES#60.png DNA is missing for trait: GrF_HEAD, is something misnamed or missing? Or is this a one of one? at /Users/saul/Downloads/FINAL_ENGINE/step2_spritesheet_to_generative_sheet/src/main.js:389:15 at Array.forEach () at /Users/saul/Downloads/FINAL_ENGINE/step2_spritesheet_to_generative_sheet/src/main.js:375:17 at Array.map () at constructLayerToDna (/Users/saul/Downloads/FINAL_ENGINE/step2_spritesheet_to_generative_sheet/src/main.js:370:35) at createItem (/Users/saul/Downloads/FINAL_ENGINE/step2_spritesheet_to_generative_sheet/utils/createFromDNA.js:44:38) at regenerateItem (/Users/saul/Downloads/FINAL_ENGINE/step2_spritesheet_to_generative_sheet/utils/createFromDNA.js:66:40) at Command. (/Users/saul/Downloads/FINAL_ENGINE/step2_spritesheet_to_generative_sheet/utils/createFromDNA.js:108:5) at Command.listener [as _actionHandler] (/Users/saul/Downloads/FINAL_ENGINE/step2_spritesheet_to_generative_sheet/node_modules/commander/lib/command.js:494:17) at /Users/saul/Downloads/FINAL_ENGINE/step2_spritesheet_to_generative_sheet/node_modules/commander/lib/command.js:1296:65