Jump to content
Heavy Traffic ×

lornlynx

Supporter
  • Posts

    3
  • Joined

  • Last visited

Nexus Mods Profile

About lornlynx

lornlynx's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. Hey, I tried adding "Nier: Automata" to as a custom game to the extensions, as it isn't included in the games tab. I followed this guide (wihtout the user environmnent and installation patterns): https://wiki.nexusmods.com/index.php/Creating_a_game_extension_for_Vortex It appears in the list but vortex tells me it failed with the implementation. Here's the file's I've added to appdata: The info.json and the index.js code: { "name": "Game: Nier: Automata", "author": "lornlynx", "version": "0.0.1", "description": "Nier: Automata" } // Nexus Mods domain for the game. e.g. nexusmods.com/nierautomata const GAME_ID = 'nierautomata'; //Steam Application ID, you can get this from https://steamdb.info/apps/ const STEAMAPP_ID = '524220'; //GOG Application ID, you can get this from https://www.gogdb.org/ //const GOGAPP_ID = '1133514031'; //Import some assets from Vortex we'll need. const path = require('path'); const { fs, log, util } = require('vortex-api'); //Add this to the top of the file const winapi = require('winapi-bindings'); function findGame() { try { const instPath = winapi.RegGetValue( 'HKEY_LOCAL_MACHINE', 'SOFTWARE\\WOW6432Node\\Valve\\Steam\\Apps\\' + STEAM_ID, 'PATH'); if (!instPath) { throw new Error('empty registry key'); } return Promise.resolve(instPath.value); } catch (err) { return util.GameStoreHelper.findByAppId([STEAMAPP_ID]) .then(game => game.gamePath); } } function prepareForModding(discovery) { return fs.readdirAsync(path.join(discovery.path, 'NieRAutomata'.)); } function main(context) { //This is the main function Vortex will run when detecting the game extension. context.registerGame({ id: GAME_ID, name: 'Nier: Automata', mergeMods: true, queryPath: findGame, supportedTools: [], queryModPath: () => 'NieRAutomata', logo: 'gameart.jpg', executable: () => 'NieRAutomata.exe', requiredFiles: [ 'NieRAutomata.exe' ], setup: undefined, environment: { SteamAPPId: STEAMAPP_ID, }, details: { steamAppId: STEAMAPP_ID, }, }); return true } module.exports = { default: main, }; any help appreciated
  2. Hey, I have a few small mods for a game, but they don't use the standard mod-folder which mods usually use. I have the vortex-download option enabled, but I asked myself if there wouldn't be a way with which I can tell Vortex that my mod should be installed into a different location. Just that it gets done automatically if someone adds it via vortex, without a mod installer or such. Like, this is where the game usually installs the mods: Gamedir/mods/ But my mod edits translation files, which are located somewhere else and is installed here: Gamedir/settings/
×
×
  • Create New...