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

Can't generate more that 5 images #809

Open nilolalolal opened 2 years ago

nilolalolal commented 2 years ago

Hey guys, I don't know coding but I'm trying to generate collection for the first time. I'm using Hashlips original layers to test myself and I follow all his steps but when I change edition size form 5 to any number, it still generates 5 images.

PS C:\Users\Nikola\Desktop\hashlips_art_engine-1.1.2_patch_v5> npm run generate

hashlips_art_engine@1.1.1 generate node index.js

(node:2428) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead (Use node --trace-deprecation ... to show where the warning was created) Created edition: 1, with DNA: f795dbbebbe18288e2db37c0dcf21e202823d597 Created edition: 2, with DNA: dcaa8f9b70ac82e82624c60f795d3826b39bd3c2 DNA exists! Created edition: 3, with DNA: 0697faddf45aa21aa7952b94adcf3ab1c57e15d1 Created edition: 4, with DNA: c100cb4bb0b08a900640ce891811d76f2625e75d Created edition: 5, with DNA: 01f773ac1b5a67929370a6ff1ed5cef02cf13625 PS C:\Users\Nikola\Desktop\hashlips_art_engine-1.1.2_patch_v5>

bolshoytoster commented 2 years ago

@nilolalolal can you paste your src/config.js and make sure it's saved.

nilolalolal commented 2 years ago

Can you please explain me more, about how to do it? how, where

bolshoytoster commented 2 years ago

@nilolalolal copy the contents of the file and paste them here in backticks: ```js Paste here ```

nilolalolal commented 2 years ago

const basePath = process.cwd(); const { MODE } = require(${basePath}/constants/blend_mode.js); const { NETWORK } = require(${basePath}/constants/network.js);

const network = NETWORK.eth;

// General metadata for Ethereum const namePrefix = "Your Collection"; const description = "Remember to replace this description"; const baseUri = "ipfs://NewUriToReplace";

const solanaMetadata = { symbol: "YC", seller_fee_basis_points: 1000, // Define how much % you want from secondary market sales 1000 = 10% external_url: "https://www.youtube.com/c/hashlipsnft", creators: [ { address: "7fXNuer5sbZtaTEPhtJ5g5gNtuyRoKkvxdjEjEnPN4mC", share: 100, }, ], };

// If you have selected Solana then the collection starts from 0 automatically const layerConfigurations = [ { growEditionSizeTo: 5, layersOrder: [ { name: "Background" }, { name: "Eyeball" }, { name: "Eye color" }, { name: "Iris" }, { name: "Shine" }, { name: "Bottom lid" }, { name: "Top lid" }, ], }, ];

const shuffleLayerConfigurations = false;

const debugLogs = false;

const format = { width: 512, height: 512, smoothing: false, };

const gif = { export: false, repeat: 0, quality: 100, delay: 500, };

const text = { only: false, color: "#ffffff", size: 20, xGap: 40, yGap: 40, align: "left", baseline: "top", weight: "regular", family: "Courier", spacer: " => ", };

const pixelFormat = { ratio: 2 / 128, };

const background = { generate: true, brightness: "80%", static: false, default: "#000000", };

const extraMetadata = {};

const rarityDelimiter = "#";

const uniqueDnaTorrance = 10000;

const preview = { thumbPerRow: 5, thumbWidth: 50, imageRatio: format.height / format.width, imageName: "preview.png", };

const preview_gif = { numberOfImages: 11, order: "ASC", // ASC, DESC, MIXED repeat: 0, quality: 100, delay: 500, imageName: "preview.gif", };

module.exports = { format, baseUri, description, background, uniqueDnaTorrance, layerConfigurations, rarityDelimiter, preview, shuffleLayerConfigurations, debugLogs, extraMetadata, pixelFormat, text, namePrefix, network, solanaMetadata, gif, preview_gif, };

Is this what you ment? Sorry..

bolshoytoster commented 2 years ago

@nilolalolal in that, it looks like you have growEditionSizeTo set to five anyway.

nilolalolal commented 2 years ago

const basePath = process.cwd(); const { MODE } = require(${basePath}/constants/blend_mode.js); const { NETWORK } = require(${basePath}/constants/network.js);

const network = NETWORK.eth;

// General metadata for Ethereum const namePrefix = "Your Collection"; const description = "Remember to replace this description"; const baseUri = "ipfs://NewUriToReplace";

const solanaMetadata = { symbol: "YC", seller_fee_basis_points: 1000, // Define how much % you want from secondary market sales 1000 = 10% external_url: "https://www.youtube.com/c/hashlipsnft", creators: [ { address: "7fXNuer5sbZtaTEPhtJ5g5gNtuyRoKkvxdjEjEnPN4mC", share: 100, }, ], };

// If you have selected Solana then the collection starts from 0 automatically const layerConfigurations = [ { growEditionSizeTo: 100, layersOrder: [ { name: "Background" }, { name: "Eyeball" }, { name: "Eye color" }, { name: "Iris" }, { name: "Shine" }, { name: "Bottom lid" }, { name: "Top lid" }, ], }, ];

const shuffleLayerConfigurations = false;

const debugLogs = false;

const format = { width: 512, height: 512, smoothing: false, };

const gif = { export: false, repeat: 0, quality: 100, delay: 500, };

const text = { only: false, color: "#ffffff", size: 20, xGap: 40, yGap: 40, align: "left", baseline: "top", weight: "regular", family: "Courier", spacer: " => ", };

const pixelFormat = { ratio: 2 / 128, };

const background = { generate: true, brightness: "80%", static: false, default: "#000000", };

const extraMetadata = {};

const rarityDelimiter = "#";

const uniqueDnaTorrance = 10000;

const preview = { thumbPerRow: 5, thumbWidth: 50, imageRatio: format.height / format.width, imageName: "preview.png", };

const preview_gif = { numberOfImages: 11, order: "ASC", // ASC, DESC, MIXED repeat: 0, quality: 100, delay: 500, imageName: "preview.gif", };

module.exports = { format, baseUri, description, background, uniqueDnaTorrance, layerConfigurations, rarityDelimiter, preview, shuffleLayerConfigurations, debugLogs, extraMetadata, pixelFormat, text, namePrefix, network, solanaMetadata, gif, preview_gif, };

Even if I change it like this it's the same

bolshoytoster commented 2 years ago

@nilolalolal have you made sure to save the file (ctrl + s) before generating again.

nilolalolal commented 2 years ago

No, I haven't. And yeah, it's working now.. Thanks A lot and sorry !