View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001975 | The Dark Mod | GUI | public | 18.10.2009 20:06 | 17.03.2012 12:50 |
Reporter | Havner | Assigned To | tels | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
OS | Linux | ||||
Product Version | TDM 1.00 | ||||
Target Version | TDM 1.08 | Fixed in Version | TDM 1.08 | ||
Summary | 0001975: [LINUX] - DoomConfig.cfg synchronization does not fully work. | ||||
Description | This happens for me on Linux, haven't checked win version. DoomConfig.cfg synchronization as described here: http://modetwo.net/darkmod/wiki/index.php?title=DoomConfig.cfg happens only one way for me, darkmod-dir -> fm-dir. Not the other way. | ||||
Additional Information | 1. Install some mission 2. Change some key in Controls 3. Uninstall -> the changes wont be there, FM config was not copied 4. Change some other key in Controls 5. Install the same mission again 6. Changes will be there, Main config was copied | ||||
Tags | No tags attached. | ||||
Can you check the value of the CVAR tdm_fm_sync_config_files? It should be set to 1 by default. Otherwise, there is no logging output in the corresponding code section, I assume this code part is failing: common->WriteConfigToFile("../" + fs_game_base + "/DoomConfig.cfg"); Where is your darkmod copy installed? |
|
Yes, of course this CVAR is 1, checked that from the linked wiki page. Darkmod is installed in home folder, specifically in $HOME/.doom3/darkmod But after looking at your code one thing comes to my mind, are you sure that current dir for this function is set inside mission dir? That relative path as you specified will point to proper location? |
|
It's possible that the relative path is not working. One possibility to check this is to search for all DoomConfig.cfg files on your filesystem - are there any DoomConfig.cfg files in odd places? |
|
No, its not relative path issue, strace shows the correct path in all cases, whether I run it from inside darkmod or my home dir or any other: 5348 stat64("/home/havner/.doom3/outpost/../darkmod/DoomConfig.cfg", {st_mode=S_IFREG|0644, st_size=10543, ...}) = 0 5348 open("/home/havner/.doom3/outpost/../darkmod/DoomConfig.cfg", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 65 Anyway. When I select a mission, run TDM, change settings and quit I can see settings change in darkmod/DoomConfig.cfg. Problem appears only when I uninstall mission and let TDM to restart itself. Then the new settings are not applied. BTW, can't you reproduce it? Would be so much easier for you to debug it as you've got source code. |
|
I'm on Windows here - I did the following on my system: - Uninstalled any FM (restart) - Cleared the keybinding for "Toggle Compass" - Restart - Installed Outpost (restart) - "Toggle Compass" was empty, now I bound it to "Apostrophe" - Went back to main menu, click "New Mission", click "Uninstall" => restart - Go to settings => Toggle Compass is set to "Apostrophe". So I can only confirm that it seems to be working for me even when I uninstall a FM. Maybe this is a bug in the Linux version of the D3 code, these are independent binaries after all. |
|
Great, I see you've released source code, I'll have a look at this bug | |
The copying of the config will no longer happen, and any syncronization bugs should now be gone since there will be only one config file, afterall. So closing this one. | |
Date Modified | Username | Field | Change |
---|---|---|---|
18.10.2009 20:06 | Havner | New Issue | |
19.10.2009 05:25 | greebo | Note Added: 0002691 | |
19.10.2009 05:25 | greebo | Status | new => feedback |
19.10.2009 05:26 | greebo | Note Edited: 0002691 | |
19.10.2009 05:26 | greebo | Note Edited: 0002691 | |
19.10.2009 05:32 | greebo | OS | => Linux |
19.10.2009 10:17 | Havner | Note Added: 0002692 | |
19.10.2009 10:43 | greebo | Note Added: 0002693 | |
20.10.2009 18:11 | Havner | Note Added: 0002696 | |
20.10.2009 18:15 | Havner | Note Edited: 0002696 | |
20.10.2009 18:23 | Havner | Note Edited: 0002696 | |
20.10.2009 18:23 | Havner | Note Edited: 0002696 | |
20.10.2009 18:36 | greebo | Note Added: 0002697 | |
29.10.2009 07:45 | greebo | Project | @8@ => The Dark Mod |
30.10.2009 10:02 | Havner | Note Added: 0002728 | |
03.03.2012 12:01 | tels | Relationship added | related to 0003034 |
17.03.2012 12:50 | tels | Note Added: 0004412 | |
17.03.2012 12:50 | tels | Status | feedback => closed |
17.03.2012 12:50 | tels | Assigned To | => tels |
17.03.2012 12:50 | tels | Resolution | open => fixed |
17.03.2012 12:50 | tels | Fixed in Version | => TDM 1.08 |
17.03.2012 12:50 | tels | Resolution | fixed => no change required |
17.03.2012 12:50 | tels | Target Version | => TDM 1.08 |