Open edward2slick opened 2 years ago
@edward2slick have you moved the config.js
file? Could you paste the output of the commands Get-ChildItem
and Get-ChildItem src
here please.
@bolshoytoster okay here is the first one
Directory: C:\Users\Maya A\Downloads\hashlips_art_engine-main (1)\hashlips_art_engine-main
Mode LastWriteTime Length Name
d----- 3/30/2022 12:36 PM .github d----- 4/13/2022 2:48 PM build d----- 3/30/2022 12:36 PM constants d----- 4/9/2022 9:19 PM layers d----- 3/30/2022 12:36 PM modules d----- 4/11/2022 6:49 PM node_modules d----- 4/22/2022 6:28 PM src d----- 3/30/2022 12:36 PM utils -a---- 3/30/2022 12:36 PM 1678 .gitignore -a---- 3/30/2022 12:36 PM 9 .nvmrc -a---- 4/30/2022 4:22 PM 2232 index.js -a---- 3/30/2022 12:36 PM 1065 LICENSE -a---- 3/30/2022 12:36 PM 37711 logo.png -a---- 4/11/2022 6:49 PM 41575 package-lock.json -a---- 3/30/2022 12:36 PM 861 package.json -a---- 3/30/2022 12:36 PM 9930 README.md -a---- 4/13/2022 3:09 PM 16305 yarn.lock
PS C:\Users\Maya A\Downloads\hashlips_art_engine-main (1)\hashlips_art_engine-main>
and the second one
Directory: C:\Users\Maya A\Downloads\hashlips_art_engine-main (1)\hashlips_art_engine-main\src
Mode LastWriteTime Length Name
-a---- 4/30/2022 4:03 PM 2234 config.jss -a---- 4/13/2022 3:16 PM 12297 main.js
PS C:\Users\Maya A\Downloads\hashlips_art_engine-main (1)\hashlips_art_engine-main>
also im not sure if something happend with my index.js file, could you please check if everything is correct? Here it is, thank you!
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 = "Wacky Women"; const description = "Wacky Women NFT Collection"; 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: "0x3a228E124134Db1c4ff42Fd555E8d8823bdee725", share: 100, }, ], };
// If you have selected Solana then the collection starts from 0 automatically const layerConfigurations = [ { growEditionSizeTo: 5, layersOrder: [ { name: "Background" }, { name: "Outfit" }, { name: "Eyes" }, { name: "Mouth" }, { name: "Hair" }, { name: "Accesories" }, ], }, ];
const shuffleLayerConfigurations = false;
const debugLogs = false;
const format = { width: 1000, height: 1000, 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: 5000, order: "ASC", // ASC, DESC, MIXED repeat: 0, quality: 100, delay: 500, imageName: "preview.gif",
moduleexports = {} format, baseUri, description, background, uniqueDnaTorrance, layerConfigurations, rarityDelimiter, preview, shuffleLayerConfigurations, debugLogs, extraMetadata, pixelFormat, text, namePrefix, network, solanaMetadata, gif, preview_gif, } and also I think i accidentally clicked something that made my index.js file and my config.js file be the exact same. I also dont have a config.js file, only a config.jss. I dont know what happend
@edward2slick you've renamed src/config.js
to src/config.jss
, change the name back.
@bolshoytoster okay, is that all i have to fix? Because now my config.js and index.js are the exact same thing which i pasted in my other reply
@edward2slick if running node index.js
/npm run build
/npm run build
(whatever you use for generating) gives no output then you'll have to copy the file from the repo.
@bolshoytoster ohh so i basically delete everything in the index.js file and copy and paste
const basePath = process.cwd();
const { startCreating, buildSetup } = require(${basePath}/src/main.js
);
(() => { buildSetup(); startCreating(); })(); instead??
@edward2slick yes.
@bolshoytoster okay ill try that now, thanks so much!
@bolshoytoster also, do you know what I can do if vs isnt saving the file? ive tried ctrl s and ive tried so save it manually from the file button but its not working. Ive also tried to turn on auto save but it still isnt working.
@edward2slick if you can't figure out vs try using an editor you can use.
@bolshoytoster okay thanks, do you know how to fix this error?
SyntaxError: Unexpected identifier
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1032:15)
at Module._compile (node:internal/modules/cjs/loader:1067:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.
@edward2slick well I don't think that's the full error, but it says there's a syntax error, presumably in src/config.js
.
Could you paste the full error please.
@bolshoytoster okay this is the whole thing,
PS C:\Users\Maya A\Downloads\hashlips_art_engine-main (1)\hashlips_art_engine-main> node index.js C:\Users\Maya A\Downloads\hashlips_art_engine-main (1)\hashlips_art_engine-main\src\config.js:104 format, ^^^^^^
SyntaxError: Unexpected identifier
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1032:15)
at Module._compile (node:internal/modules/cjs/loader:1067:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.
here is config.js if that helps!
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 = "Wacky Women"; const description = "Wacky Women NFT Collection"; 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: "0x3a228E124134Db1c4ff42Fd555E8d8823bdee725", share: 100, }, ], };
// If you have selected Solana then the collection starts from 0 automatically const layerConfigurations = [ { growEditionSizeTo: 5, layersOrder: [ { name: "Background" }, { name: "Outfit" }, { name: "Eyes" }, { name: "Mouth" }, { name: "Hair" }, { name: "Accesories" }, ], }, ];
const shuffleLayerConfigurations = false;
const debugLogs = false;
const format = { width: 1000, height: 1000, 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: 5000, order: "ASC", // ASC, DESC, MIXED repeat: 0, quality: 100, delay: 500, imageName: "preview.gif",
moduleexports = {} format, baseUri, description, background, uniqueDnaTorrance, layerConfigurations, rarityDelimiter, preview, shuffleLayerConfigurations, debugLogs, extraMetadata, pixelFormat, text, namePrefix, network, solanaMetadata, gif, preview_gif, }
@edward2slick src/config.js
line 103:
moduleexports = {}
remove the }
.
@bolshoytoster it still gives me the same error
@edward2slick make sure you've saved the file and can you paste the error again please.
ive done evrything and when I tried to start generating, this code pops up
Error: Cannot find module 'C:\Users\Maya A\Downloads\hashlips_art_engine-main (1)\hashlips_art_engine-main/src/config.js' Require stack:
] } PS C:\Users\Maya A\Downloads\hashlips_art_engine-main (1)\hashlips_art_engine-main>
does anyone know how to fix it? id really appreciate it, also here is my config.js file if that helps
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 = "Wacky Women"; const description = "Wacky Women NFT Collection"; 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: "0x3a228E124134Db1c4ff42Fd555E8d8823bdee725", share: 100, }, ], };
// If you have selected Solana then the collection starts from 0 automatically const layerConfigurations = [ { growEditionSizeTo: 5, layersOrder: [ { name: "Background" }, { name: "Outfit" }, { name: "Eyes" }, { name: "Mouth" }, { name: "Hair" }, { name: "Accesories" }, ], }, ];
const shuffleLayerConfigurations = false;
const debugLogs = false;
const format = { width: 1000, height: 1000, 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: 5000, order: "ASC", // ASC, DESC, MIXED repeat: 0, quality: 100, delay: 500, imageName: "preview.gif",
moduleexports = {} format, baseUri, description, background, uniqueDnaTorrance, layerConfigurations, rarityDelimiter, preview, shuffleLayerConfigurations, debugLogs, extraMetadata, pixelFormat, text, namePrefix, network, solanaMetadata, gif, preview_gif, }