Opened 10 years ago

Last modified 3 years ago

#2553 closed defect

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

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

Description (last modified by Itms)

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 (2)

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.

Note: See TracTickets for help on using tickets.