New update deleted my game.prefs

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

New update deleted my game.prefs

Postby JoonasTo » 29 Aug 2016, 20:32

First host of 3658 rewrote my game.prefs. POOF! All gone.
User avatar
JoonasTo
Priest
 
Posts: 498
Joined: 08 Feb 2015, 01:11
Has liked: 18 times
Been liked: 81 times
FAF User Name: JoonasTo

Re: New update deleted my game.prefs

Postby IceDreamer » 29 Aug 2016, 22:35

I'm sorry to hear this, though I have no idea what could have caused it. I'll ask around, see if there's any ideas.
IceDreamer
Supreme Commander
 
Posts: 2607
Joined: 27 Dec 2011, 07:01
Has liked: 138 times
Been liked: 488 times

Re: New update deleted my game.prefs

Postby JoonasTo » 29 Aug 2016, 23:07

I was online in FAF when the patch hit. Joined a game, it updated, left that game lobby before starting, hosted a game, all was fine. Finished the game, hosted the next one and could instantly see something was wrong, as it loaded the lobby in 1024x800. Restarted FAF, hosted a game, same thing. Then I checked the game.prefs file and saw that it had been rewritten to some kind of default configuration. There was also a game.prefs.bad file in the folder(not my old game.prefs file, but another similar default config one.)

Copied one over from my laptop that wasn't outdated(too badly.) And after some frustation and a couple of more overwrites later I set it to read-only. Then it generated a game.prefs.new file that I used as a base and copied all of my setting, mods, templates and hotkeys into before renaming it to game.prefs, without read-only. Now it works again.

I can see this as a gamebreaking issue. Losing my hotkeys(all of them custom, even the control groups) would have probably deterred me from playing the game at all.
User avatar
JoonasTo
Priest
 
Posts: 498
Joined: 08 Feb 2015, 01:11
Has liked: 18 times
Been liked: 81 times
FAF User Name: JoonasTo

Re: New update deleted my game.prefs

Postby Uveso » 30 Aug 2016, 01:17

Maybe its not lost, only renamed.
go to:
Code: Select all
C:\Users\YOURNAME\AppData\Local\Gas Powered Games\Supreme Commander Forged Alliance\


look for a file named:
Game.prefs.bad


if its there, delete the new "Game.prefs" then rename "game.prefs.bad" to "game.prefs".
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: New update deleted my game.prefs

Postby yorick » 30 Aug 2016, 01:52

viewtopic.php?f=3&t=12979&p=133460
I lost my game.prefs 2-3 times last month or so. No idea where exactly the incompability lies and if it was cause by this patch / smth that was in the beta earlier. I was able to recover some tendious settings by just copying them by hand, like hotkeys etc.
Dunno if this helps, here are some of the settigns and ui mods i use:
Spoiler: show
Windowed, with the autohotkey fullscreen script ( and reshade)
Video settings on highest possible i think
many hotbuild hotkeys

UI-Mods:
Common Mod Tools v1
Notifications v5.2
Notify v3.8 v3
SCU NamingTool v1
Selection Cost UI v2
Selection Sort v0.2
SelenDeselect v3
SupremeScoreBoard v1.21
UI Party v11 ( with some hotkeys for this mod)
yorick
Avatar-of-War
 
Posts: 113
Joined: 01 Oct 2014, 02:53
Has liked: 16 times
Been liked: 27 times
FAF User Name: yorick

Re: New update deleted my game.prefs

Postby Uveso » 30 Aug 2016, 03:17

@yorick:
was there or is there a "Game.prefs.bad" ?
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: New update deleted my game.prefs

Postby JoonasTo » 30 Aug 2016, 11:39

I run fullscreen on lowest graphics, without external scripts.
Fully customised hotkeys as mentioned.

And the mods in common with Yorick are:
Selection Sort
UI party(hotkeys)
Notify
Common mod tools

@Uveso:
JoonasTo wrote:There was also a game.prefs.bad file in the folder(not my old game.prefs file, but another similar default config one.)
User avatar
JoonasTo
Priest
 
Posts: 498
Joined: 08 Feb 2015, 01:11
Has liked: 18 times
Been liked: 81 times
FAF User Name: JoonasTo

Re: New update deleted my game.prefs

Postby yorick » 30 Aug 2016, 13:44

yeah, uveso there is.
I just ran a git diff between the files ( my current game.prefs and the old one) and found this line:
Code: Select all
Quality = -1.#IND,

i guess it is this issue https://github.com/FAForever/fa/issues/1418 that broke my game.prefs

I think i did some games sandboxing/vs AI testing some stuff.


@JoonasTo
If you have this line as well in your game.prefs.bad you can maybe recover it if you delete that line.
yorick
Avatar-of-War
 
Posts: 113
Joined: 01 Oct 2014, 02:53
Has liked: 16 times
Been liked: 27 times
FAF User Name: yorick

Re: New update deleted my game.prefs

Postby Uveso » 30 Aug 2016, 16:44

We are working at the moment on a fix for that;
https://github.com/FAForever/fa/pull/1449
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest