Jump to content

A permanent solution to Epic Games Modding


BattleDashLeaks

Recommended Posts

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

618c5bd139b024d1b55a482d37790935.png

 

e489a2193cee6462be10e576af56a104.png

 

Hope this helps.

Edited by BattleDashLeaks
Link to comment
Share on other sites

Hey, I have a few questions about this. Does the -datapath command line still need to be in origin? And how does this translate to using frosty, in other words how do I select the mods I want to use?

Through Mod Manager. But after installation you can just run game without Mod Manager.

The way author doing the trick alot better so yes pointing GAME_DIR is cool

Edited by FlowerinNymphaea
Link to comment
Share on other sites

  • 3 weeks later...
Hey I canât seem to get a ModData folder in my battlefront folder... I know you donât have one in there before using frosty but when you launch frosty for the first time it should make one itâs self from what Iâve gathered but mine just doesnât... I make one myself and launch frosty and it just deletes it every time... so when I do this method of environment variables thereâs not ModData folder to link it to, any idea how to get the ModData folder? I think I can get mods to work once this issue is resolved, thanks!
Link to comment
Share on other sites

  • 9 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...