FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login
    The current pre-release of the client ("pioneer" in the version) is only compatible to itself. So you can only play with other testers. Please be aware!

    Unable to save the game in offline mode

    Scheduled Pinned Locked Moved Game Issues and Gameplay questions
    5 Posts 3 Posters 808 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      Purban
      last edited by Purban

      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.

      1 Reply Last reply Reply Quote 1
      • maggeM Offline
        magge Moderator FAF Association Board
        last edited by magge

        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.

        Join a FAFtastic Team | Join the FAForever Association

        1 Reply Last reply Reply Quote 0
        • D Offline
          drpossibly
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • P Offline
            Purban
            last edited by

            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.

            lua.zip

            D 1 Reply Last reply Reply Quote 2
            • D Offline
              drpossibly @Purban
              last edited by

              @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.

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post