Hello, I am attempting to set up a game extension for the game Stellaris; however, I am having trouble telling the extension where to put the mods.
The game extension itself is recognized and accessible from Vortex. All I am trying to do is tell Vortex to put the mods into the proper folder for Stellaris mods in the Documents folder. What I have so far (yes, it is barebones, sorry):
The queryModPath is where I believe it tells Vortex to put the mods, but every time I change it, it upsets the game extension (makes it disappear from Vortex). Help would greatly be appreciated, thank you!
//Import some assets from Vortex we'll need. const path = require('path'); const { fs, log, util } = require('vortex-api'); // Nexus Mods domain for the game. e.g. https://www.nexusmods.com/stellaris const GAME_ID = 'stellaris'; //Steam Application ID, you can get this from https://steamdb.info/apps/ const STEAMAPP_ID = '281990'; function main(context) { //This is the main function Vortex will run when detecting the game extension. context.registerGame({ id: GAME_ID, name: 'Stellaris', mergeMods: true, queryPath: findGame, supportedTools: [], queryModPath: () => 'mod', logo: 'gameart.jpg', executable: () => 'stellaris.exe', requiredFiles: [ 'stellaris.exe', ], setup: undefined, environment: { SteamAPPId: STEAMAPP_ID, }, details: { steamAppId: STEAMAPP_ID, }, compatible: { symlinks: false }, }); return true } module.exports = { default: main, }; function findGame() { return util.GameStoreHelper.findByAppId([STEAMAPP_ID,]) .then(game => game.gamePath); }
Edited by TempestValdyr, 19 January 2021 - 03:51 PM.