'/' won't work for windows. Added changes so it checks os.platform. If you got a time, please test itHi ttyrke,
I like your game, probably my favorite html game on this site, thank for your hard work.
Not sure if you solve the problem with the searchActions.js on linux but you have to change the 2 '\\' by '/' in this line :
const filePathSplit = filePath.split('\\');
So it's become
const filePathSplit = filePath.split('/');
Classic problem with path between win and linux.
const fs = require('fs');
const path = require('path');
const os = require('os');
function scan(dir, slash = '\\') {
fs.readdirSync(dir).forEach(file => {
const filePath = path.join(dir, file);
if (fs.statSync(filePath).isDirectory()) {
scan(filePath);
} else {
const filePathSplit = filePath.split(slash);
filePathSplit.splice(0, 2);
const fileName = filePathSplit.splice(-1, 1);
if(!actionsFiles[filePathSplit[0]]) {
actionsFiles[filePathSplit[0]] = {};
}
if(!actionsFiles[filePathSplit[0]][filePathSplit[1]]) {
actionsFiles[filePathSplit[0]][filePathSplit[1]] = {};
}
if(!actionsFiles[filePathSplit[0]][filePathSplit[1]][filePathSplit[2]]) {
actionsFiles[filePathSplit[0]][filePathSplit[1]][filePathSplit[2]] = [];
}
actionsFiles[filePathSplit[0]][filePathSplit[1]][filePathSplit[2]].push(fileName[0]);
}
});
}
const actionsFiles = {};
scan('images/actions', (os.platform() === 'win32' ? '\\' : '/'));
console.log(JSON.stringify(actionsFiles));
var writeStream = fs.createWriteStream('js/actions.js');
writeStream.write('SugarCube.setup.actions = ' + JSON.stringify(actionsFiles) + ';');
writeStream.end();
Hi,'/' won't work for windows. Added changes so it checks os.platform. If you got a time, please test it
Code:const fs = require('fs'); const path = require('path'); const os = require('os'); function scan(dir, slash = '\\') { fs.readdirSync(dir).forEach(file => { const filePath = path.join(dir, file); if (fs.statSync(filePath).isDirectory()) { scan(filePath); } else { const filePathSplit = filePath.split(slash); filePathSplit.splice(0, 2); const fileName = filePathSplit.splice(-1, 1); if(!actionsFiles[filePathSplit[0]]) { actionsFiles[filePathSplit[0]] = {}; } if(!actionsFiles[filePathSplit[0]][filePathSplit[1]]) { actionsFiles[filePathSplit[0]][filePathSplit[1]] = {}; } if(!actionsFiles[filePathSplit[0]][filePathSplit[1]][filePathSplit[2]]) { actionsFiles[filePathSplit[0]][filePathSplit[1]][filePathSplit[2]] = []; } actionsFiles[filePathSplit[0]][filePathSplit[1]][filePathSplit[2]].push(fileName[0]); } }); } const actionsFiles = {}; scan('images/actions', (os.platform() === 'win32' ? '\\' : '/')); console.log(JSON.stringify(actionsFiles)); var writeStream = fs.createWriteStream('js/actions.js'); writeStream.write('SugarCube.setup.actions = ' + JSON.stringify(actionsFiles) + ';'); writeStream.end();
What version are you playing? Should be fixed in 18.version. Opened your save, I see that you got that bug but I can't reproduce it.The game told me to report a bug to Blair and send the save
Enjoyed the game so far. Some things i think can be improved,View attachment 2187478
Overview:
Open world, RPG, sandbox. You've survived nuclear war but at what cost?
You survived in a bunker while others had to adapt to live their brutal new lives.
Thread Updated: 2023-07-15
Release Date: 2023-07-15
Developer: ttyrke -You must be registered to see the links-You must be registered to see the links
Censored: No
Version: 0.18a
OS: Windows, Linux, Mac, Android
Language: English
Genre:
You don't have permission to view the spoiler content. Log in or register now.
Installation:
You don't have permission to view the spoiler content. Log in or register now.
Changelog:
You don't have permission to view the spoiler content. Log in or register now.
Developer Notes:
You don't have permission to view the spoiler content. Log in or register now.
Custom images for girls (MOD):
You don't have permission to view the spoiler content. Log in or register now.PATCH 0.18a
MEGA
DOWNLOAD
All:You must be registered to see the links-You must be registered to see the links- MEGA - WORKUPLOAD
Others:You must be registered to see the links
View attachment 2176275 View attachment 2176280 View attachment 2176281 View attachment 2176282 View attachment 2176284 View attachment 2176300
Can't equip guests with knives (but is planned in the future). As for group strength training - noted. Someone already suggested it so I'll probably try to add in next tech update (0.19 or max later in 0.20 event update)If you have companions, those also help win the raids. Just be sure they're powerful enough to survive when you do. Wish we had an option for group strength training once a day, it's tedious if you have a LOT of guests training them all up. I also can't figure out if it's possible to equip your companions with knives.
Maybe only companions get knives ?Can't equip guests with knives (but is planned in the future). As for group strength training - noted. Someone already suggested it so I'll probably try to add in next tech update (0.19 or max later in 0.20 event update)
where do i put these lolin case anyone wants it I made some custom girl packs for the game
models used
AngelXO
Autumn Falls
Trippie Bri
Luxury Girl
WaaifuMia
Raya Steele
Sarah Banks
Violet Myers
You don't have permission to view the spoiler content. Log in or register now.
Will take request if anyone wants other custom girlpacks
go into ur game files Apocalyptic world-->Images-->Actionswhere do i put these lol