BattleDashLeaks Posted March 7, 2021 Share Posted March 7, 2021 (edited) 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. Edited March 7, 2021 by BattleDashLeaks Link to comment Share on other sites More sharing options...
Tinneymaboa Posted March 12, 2021 Share Posted March 12, 2021 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? Link to comment Share on other sites More sharing options...
FlowerinNymphaea Posted March 14, 2021 Share Posted March 14, 2021 (edited) 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 March 14, 2021 by FlowerinNymphaea Link to comment Share on other sites More sharing options...
JazzaMedia Posted March 30, 2021 Share Posted March 30, 2021 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 More sharing options...
Tiagodragon Posted January 8, 2022 Share Posted January 8, 2022 Not working... :confused: Link to comment Share on other sites More sharing options...
Recommended Posts