Opened 10 years ago

Last modified 3 years ago

#2553 closed defect

VFS problem with user.cfg on Windows — at Version 6

Reported by: Itms Owned by:
Priority: Must Have Milestone: Alpha 25
Component: Core engine Keywords: vfs
Cc: Patch: Phab:D2781

Description (last modified by wraitii)

I encountered this problem on the alpha16 rcs: my config changes were not remembered.

After a quick research I found out that a file mods/user/config/user.cfg was created in my My Games/ folder (see GameDataPaths). This file was identical to my %appdata/0ad/config/user.cfg but none of the two files was modified by the game.

This only happens for a non-development copy. The reason is the code in GameSetup.cpp, at line 405 a "user" mod is created and at line 465 the use of My Games/ folder is forced with higher priority.

I know issues with VFS are already investigated but I wanted to log this issue somewhere for information.

I solved the problem by removing all the contents of mods/ in My Games/. I can't remember if I touched the files in there nor when.

Change History (6)

comment:1 by leper, 10 years ago

Was it mods/user/user.cfg or mods/user/config/user.cfg?

comment:2 by Itms, 10 years ago

Description: modified (diff)

Sorry, it was actually mods/user/config/user.cfg. I correct the ticket.

comment:3 by sanderd17, 8 years ago

Another problem noted with user.cfg on IRC: http://irclogs.wildfiregames.com/2016-04-25-QuakeNet-%230ad.log

The user.cfg wasn't created when setting the language, but it was created when changing another setting.

in reply to:  3 comment:4 by Vladislav Belov, 7 years ago

Replying to sanderd17:

Another problem noted with user.cfg on IRC: http://irclogs.wildfiregames.com/2016-04-25-QuakeNet-%230ad.log

The user.cfg wasn't created when setting the language, but it was created when changing another setting.

Fixed in r18960 (refs #4146).

comment:5 by Vladislav Belov, 7 years ago

What was the problem? What did you try to save (options, languages, etc)?

comment:6 by wraitii, 4 years ago

Description: modified (diff)
Milestone: BacklogAlpha 24
Patch: Phab:D2781

Thanks Stan for noticing. This is fixed by Phab:D2781.

Note: See TracTickets for help on using tickets.