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

const incompatible function doesn't work #185

Closed boconik closed 1 year ago

boconik commented 1 year ago

It didn't work with my assets, so I tried to generate an NFT with the default assets:

const incompatible = { // Flashing: ["Multicolor"], }; But the situation is the same, it doesn't work. Multicolor ball still combines with flashing background.

Also const incompatible = { Flashing: ["Multicolor"], }; gives me an error 'DNA exists' Is there any chance to clear up this problem?

boconik commented 1 year ago

Now when I'm doing this process again there is an error:

`node:internal/fs/utils:344 throw err; ^

Error: ENOENT: no such file or directory, open 'C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet/../build/_dna.json' at Object.openSync (node:fs:585:3) at Object.readFileSync (node:fs:453:35) at getDNA (C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet\utils\createFromDNA.js:38:24) at createItem (C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet\utils\createFromDNA.js:43:23) at regenerateItem (C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet\utils\createFromDNA.js:66:40) at Command. (C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet\utils\createFromDNA.js:108:5) at Command.listener [as _actionHandler] (C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet\node_modules\commander\lib\command.js:488:17) at C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet\node_modules\commander\lib\command.js:1227:65 at Command._chainOrCall (C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet\node_modules\commander\lib\command.js:1144:12) at Command._parseCommand (C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet\node_modules\commander\lib\command.js:1227:27) { errno: -4058, syscall: 'open', code: 'ENOENT', path: 'C:\Users\HP\OneDrive\Pulpit\animated-art-engine-main\step2_spritesheet_to_generative_sheet/../build/_dna.json'`

boconik commented 1 year ago

Problem solved. This was due to insufficient asset resources in the layers folder to generate sprite sheets. 4 was not enough so it caused _dna.json file creation errors!

jalagar commented 1 year ago

Great glad you figured it out @boconik !