Jump to content

BattleDashLeaks

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by BattleDashLeaks

  1. Hey all, I'm making this post to bring some attention to a new method of fixing Epic Games modding that I've found. It requires no command line arguments, and you can launch straight from Origin, EGL, and Steam. I was looking over the function that handles the game path, and found that there are actually 3 stages to it, the normal one, the -datapath command argument, and one involving an environment variable, which I'll talk about in this post. If you set the environment variable GAME_DATA_DIR, it will override the normal and -datapath methods, and can be used with global windows environment variables. Normally you would set it using SetEnvironmentVariableA (https://docs.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-setenvironmentvariablea) before launching the process, but if you set it in global ENV, those variables carry over into any launched processes by default, so it'll actually work. Steps: 1. Search for "Environment Variables" in windows. You should see a small control panel window called "System Properties" 2. At the bottom, click "Environment Variables". 3. You should now see 2 boxes with a lot of things in them, in the top box, click "New..." 4. For "Variable Name" input "GAME_DATA_DIR" 5. For "Variable Value" input the path to your ModData folder, for example mine is "E:\Program Files (x86)\Origin Games\STAR WARS Battlefront II\ModData" 6. Restart Origin, and launch Battlefront. Your mods will be there. This will launch with mods every time you open the game, if you don't want that to happen, you can make a batch/cmd file in the Origin.exe directory containing this: set GAME_DATA_DIR ".../ModData" Origin.exe Hope this helps.
  2. I came across this "fix" while creating my DMR-less launcher, but in my testing there were some differences. I've seen reports of this fix not working for some people, for those people, try replacing "link2ea://launchgame" with "origin2://game/launch" in the command.
×
×
  • Create New...