Let me check
Code: config.jsonc
"main":{
"SOF5":{
"SOF5_Base": true, // Same as EoD in 'soul'. Double money, Illumination, Lavatory and Workbench at Lv 1. Better ammo, weapons moded, and some skills up to Lv 25.
"SOF5_Plus": false, // Same as SOF5, but weapons have more mods, and some Gifts are added with the ammo upgrade included. Old SOF5 Unheard.
"SOF5_Merged": false // Same as SOF5Plus but with USEC and BEAR inventory merged in cases.
},
"SOF7":{
"SOF7_Base": true, // Same as EoD in 'soul' but in caliber 7.xx variation. As SOF5, Double money, Illumination, Lavatory and Workbench at Lv 1. Better ammo, weapons moded, and some skills up to Lv 25.
"SOF7_Plus": false, // Same as SOF7, but weapons have more mods, and some Gifts are added with the ammo upgrade included. Old SOF7 Unheard
"SOF7_Merged": false // Same as SOF7Plus but with USEC and BEAR inventory merged in cases.
}
},
Display More
Code: src/mod.ts
if (config.main.SOF7.SOF7_Base) this.cProfiles.sof7Base(this.container)
if (config.main.SOF7.SOF7_Plus) this.cProfiles.sof7Plus(this.container);
if (config.main.SOF7.SOF7_Merged) this.cProfiles.sof7Merged(this.container);
Code: src/profiles.ts
public sof7Base (container: DependencyContainer): void
{
this.initialize(container);
const profileName = "Special Operations Forces '7'";
const profileDescKey = "customprofile-shadowxtrex-sof7b";
const gameVersion = this.db.profiles["Edge Of Darkness"];
const profileData = "../db/profiles/main/SOF7/Base";
const profileDescription = JSON.parse(readFileSync(join(__dirname, (`${profileData}/locale.json`)), "utf-8"));
this.loca.server['en'][profileDescKey] = profileDescription;
const clonedProfile = this.profileHandler.defaultClone(gameVersion, profileName, profileData);
this.db.profiles[profileName] = clonedProfile;
this.db.profiles[profileName].descriptionLocaleKey = profileDescKey;
this.logger.success(`Added profile [${profileName}] to the database`);
}
public sof7Plus (container: DependencyContainer): void
{
this.initialize(container);
const profileName = "Special Operations Forces '7' Plus";
const profileDescKey = "customprofile-shadowxtrex-sof7p";
const gameVersion = this.db.profiles["Unheard"];
const profileData = "../db/profiles/main/SOF7/Plus";
const profileDescription = JSON.parse(readFileSync(join(__dirname, (`${profileData}/locale.json`)), "utf-8"));
this.loca.server['en'][profileDescKey] = profileDescription;
const clonedProfile = this.profileHandler.defaultClone(gameVersion, profileName, profileData);
this.db.profiles[profileName] = clonedProfile;
this.db.profiles[profileName].descriptionLocaleKey = profileDescKey;
this.logger.success(`Added profile [${profileName}] to the database`);
}
public sof7Merged (container: DependencyContainer): void
{
this.initialize(container);
const profileName = "Special Operations Forces '7' Merged";
const profileDescKey = "customprofile-shadowxtrex-sof7m";
const gameVersion = this.db.profiles["Unheard"];
const profileData = "../db/profiles/main/SOF7/Merged";
const profileDescription = JSON.parse(readFileSync(join(__dirname, (`${profileData}/locale.json`)), "utf-8"));
this.loca.server['en'][profileDescKey] = profileDescription;
const clonedProfile = this.profileHandler.defaultClone(gameVersion, profileName, profileData);
this.db.profiles[profileName] = clonedProfile;
this.db.profiles[profileName].descriptionLocaleKey = profileDescKey;
this.logger.success(`Added profile [${profileName}] to the database`);
}
Display More
These profiles should load without issues, I don't understand the problem you're presenting, since defaultClone applies to several profiles that also load, so it's not a loader problem. And stop editing your answer or my answer will not have any sence