Unable to save the game in offline mode
-
When I launch the game from "C:\ProgramData\FAForever\bin" and try to save skirmish game, I have error "Save Failed". Launching the game from steam (no FAF) allows me to save and load normally.
I do not have Controlled folder access and added folders related to Supreme Commander to Windows Defender exclusions. Still, I cannot save the game.
What I want to do is play campaign and be able to save. I followed this guide https://forum.faforever.com/topic/4702/how-to-play-the-supreme-commander-campaign-offline-and-coop-maps
I can start the missions with no problem, just that no matter what I do the message says "Save Failed" when I try to do so. I have no other ideas how to solve that, I have no external antivirus, just Windows Defender. I do not have this problem with other games.Edit: Found solution, check my reply below for specifics.
-
If you followed the guide, then it seems like the save/load method does not work anymore. Maybe it will get fixed in the next patches.
Edit: Have seen other people mention it as well in Discord, that it does not work anymore.
-
Jumping in on this as well rather than making a new thread. Tried everything, even breaking out the old disc copy of the game. Seems like the current FAF build doesn't know where to look for the save data folders. I could be wrong and it's a bigger issue than that, or might have simply been overlooked in the last few releases.
Would really appreciate a fix or even a workaround being looked into, nothing more frustrating than getting an hour into an offline game and having to scrap it completely because something else popped up.
-
Hello, I got help on discord on how to get around this issue. Apparently, one of the PR broke the save feature ( https://github.com/FAForever/fa/pull/6647/files ).
To fix this, you need to find "/gamedata/lua.nx2". Create backup for safety and rename the file to "lua.zip", find and extract file "userInit.lua". Inside, find this line (should be near the top) "doscript '/lua/ui/globals/InternalSaveGame.lua'". Delete it or comment out, save the file and put back into lua.zip. Then rename it back to "lua.nx2". After doing this, saving and loading started to work again for me.
I have uploaded lua.zip file after the changes I made, you can use that. Just rename it to "lua.nx2" and paste into "/gamedata", just be sure to make backup.
-
@Purban said in Unable to save the game in offline mode:
To fix this, you need to find "/gamedata/lua.nx2". Create backup for safety and rename the file to "lua.zip", find and extract file "userInit.lua". Inside, find this line (should be near the top) "doscript '/lua/ui/globals/InternalSaveGame.lua'". Delete it or comment out, save the file and put back into lua.zip. Then rename it back to "lua.nx2". After doing this, saving and loading started to work again for me.
This does appear to have fixed the issue. Though it's worth being aware that this undoes the fix that caused the bug in the first place, and risks allowing code execution by exploting an overflow issue in the way the game handles save names.
Make sure you're using trusted mods if using this fix.