Skip to content

Commit

Permalink
i shouldnt push this, please go back to previous commit if something …
Browse files Browse the repository at this point in the history
…not working
  • Loading branch information
ghostboats committed May 21, 2024
1 parent 1957711 commit f2e2b55
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "bg3_mod_helper",
"publisher": "ghostboats",
"description": "This extension is designed to help you make mods in Baldur's Gate 3 by creating UUIDs and handles for you, as well as updating your .loca.xml files as well should they exist. And more to come in the future.",
"version": "2.1.61",
"version": "2.1.62",
"icon": "media/marketplace_icon.png",
"engines": {
"vscode": "^1.86.0"
Expand Down
5 changes: 4 additions & 1 deletion support_files/conversion_junction.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const { CREATE_LOGGER, raiseError, raiseInfo } = require('./log_utils');
const bg3mh_logger = CREATE_LOGGER();

const { getConfig } = require('./config.js');
const { rootModPath } = getConfig();

const { isLoca, processLoca, getLocaOutputPath } = require('./loca_convert');
const { isLsf, processLsf, getLsfOutputPath } = require('./lsf_convert');
Expand Down Expand Up @@ -43,6 +42,8 @@ function getDynamicPath(filePath) {


function convert(convertPath, targetExt = path.extname(getDynamicPath(convertPath)), modName_ = '') {
console.log('targetExt:' + targetExt)
const { rootModPath } = getConfig();
if (targetExt === "empty") {
return;
}
Expand All @@ -69,6 +70,7 @@ function convert(convertPath, targetExt = path.extname(getDynamicPath(convertPat
processPak(rootModPath, modName_);
}
else if (Array.isArray(convertPath)) {
console.log('array1')
for (let i = 0; i < convertPath.length; i++) {
convert(convertPath[i], path.extname(convertPath[i]));
bg3mh_logger.info(`Excluded: ${convertPath[i]}`);
Expand Down Expand Up @@ -101,6 +103,7 @@ function convert(convertPath, targetExt = path.extname(getDynamicPath(convertPat
}
}
else {
console.log('here???')
raiseInfo(`Excluded: ${convertPath}`, false);
}
}
Expand Down
11 changes: 8 additions & 3 deletions support_files/pack_mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ const { CREATE_LOGGER, raiseError, raiseInfo } = require('./log_utils');
var bg3mh_logger = CREATE_LOGGER();

const { getConfig } = require('./config.js');
const { rootModPath, modDestPath } = getConfig();
const rootParentPath = path.dirname(rootModPath);

const temp_folder = "\\temp_folder";
const temp_path = path.join(rootParentPath, temp_folder);




function prepareTempDir(movedPak = false) {
const { rootModPath } = getConfig();
const rootParentPath = path.dirname(rootModPath);

const temp_path = path.join(rootParentPath, temp_folder);
console.log('test11')
console.log(rootParentPath)
console.log(rootModPath)
Expand All @@ -43,9 +45,12 @@ function prepareTempDir(movedPak = false) {
// btw, sometimes this will log things before others because it's async.
async function processPak(modPath, modName_) {
console.log('check')
const { rootModPath, modDestPath } = getConfig();
var build = new LSLIB.PackageBuildData();
var Packager = new LSLIB.Packager();
const lastFolderName = path.basename(rootModPath);
const rootParentPath = path.dirname(rootModPath);
const temp_path = path.join(rootParentPath, temp_folder);

const modFinalDestPath = path.join(modDestPath, lastFolderName + pak);
const modTempDestPath = path.join(temp_path, lastFolderName + pak);
Expand Down

0 comments on commit f2e2b55

Please sign in to comment.