http://bugs.winehq.org/show_bug.cgi?id=13560
Summary: Baldur's Gate 2 Throne of Bhaal fails to save game because the file default.tot exists in the game temp directory. Product: Wine Version: 0.9.59. Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: christian.apolloni@gmail.com
Baldur's Gate 2 with the installed expansion Throne of Bhaal fails to save games unless the user manually removes the file /temp/default.tot in the game directory. It's not wine crashing: the game displays an error message with the following text:
Save game failed, do you wish to quit?
Yes No
Removing the default.tot file before attemping to save makes it work, but the files gets recreated when the game runs so it has to be removed every time you want to save, which is pretty annoying.
From the App DB's comments and a quick google search it seems many others are
having the same problem.
It's a lot of time that I don't use wine but I remember in the past it was saving correctly whithout the need to manually delete anything.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2008-05-31 08:29:16 --- Please retest with 1.0-rc3.
http://bugs.winehq.org/show_bug.cgi?id=13560
Dimitri De Vallière dimitri.de.valliere@wanadoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dimitri.de.valliere@wanadoo. | |fr
--- Comment #2 from Dimitri De Vallière dimitri.de.valliere@wanadoo.fr 2008-08-05 02:09:43 --- I had the same bug with 1.1.2 under Ubuntu 8.04. Deleting default.tot before saving prevent from the save problem.
Note that all folders and files are chmod to 777
http://bugs.winehq.org/show_bug.cgi?id=13560
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Lei Zhang thestig@google.com 2008-08-05 10:35:19 --- Confirming. Can you provide exact steps to reproduce this problem?
1. install BG2:SOA 2. install BG2:TOB 3. ??
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #4 from Christian Apolloni christian.apolloni@gmail.com 2008-08-05 12:33:11 --- 1. install BG2:SOA 2. install BG2:TOB 3. start a new game (or load a saved game) 4. try to save -> error message
If you manually remove the default.tot file just before trying to save, the save is successful.
This default.tot file gets recreated pretty frequently so removing it does not solve the problem once for all. My guess is that it gets created every time you load or save a game.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #5 from Lei Zhang thestig@google.com 2008-08-05 12:48:32 --- Ok, one more question - did you patch the game at all?
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #6 from Christian Apolloni christian.apolloni@gmail.com 2008-08-05 12:52:19 --- I applied the last available patch after installing TOB.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #7 from Lei Zhang thestig@google.com 2008-08-05 12:58:56 --- Please be specific, are you on Patch 26498 or 26499 (beta)
http://www.bioware.com/games/throne_bhaal/support/patches/
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #8 from Christian Apolloni christian.apolloni@gmail.com 2008-08-05 13:26:39 --- I installed the last stable patch: 26498. I was not aware there is a beta patch available.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #9 from Austin English austinenglish@gmail.com 2008-08-05 17:16:37 --- (In reply to comment #4)
- install BG2:SOA
- install BG2:TOB
- start a new game (or load a saved game)
- try to save -> error message
If you manually remove the default.tot file just before trying to save, the save is successful.
This default.tot file gets recreated pretty frequently so removing it does not solve the problem once for all. My guess is that it gets created every time you load or save a game.
You could try deleting the file, then, as root or some other user, 'touch default.tot'.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #10 from Christian Apolloni christian.apolloni@gmail.com 2008-08-05 17:32:20 ---
You could try deleting the file, then, as root or some other user, 'touch default.tot'.
I don't understand the logic but I just tried: when starting the game gives an error about not being able to remove some temporary files and exits...
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #11 from Christian Apolloni christian.apolloni@gmail.com 2008-08-05 17:36:27 --- Austin, maybe now I understood your logic, I think you tought the file gets filled with some sort of corrupted data, thus trying to make it read-only for te game?
By the way, this file is always empty. I don't know if it gets filled and then emptied in some moment, but when I check it, it is always empty, and the save fails for it merely being there.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #12 from Dimitri De Vallière dimitri.de.valliere@wanadoo.fr 2008-08-06 06:34:32 --- Concerning my installation : only BG2:SOA is installed, with latest patch (non beta)
If it can help : I noticed that default.tot is set as "readonly" for all user, current user excepted. Moreover, I confirm that this file is created both when loading a game and when saving.
I found a script that delete default.tot every second, and it works like a charm with it, but it's just a clumsy workaround.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #13 from Lei Zhang thestig@google.com 2008-08-06 23:45:51 --- I installed the game, the expansion, and the patch. Then I started the game and saving worked fine. There is not default.tot in BG2's temp directory.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #14 from Dimitri De Vallière dimitri.de.valliere@wanadoo.fr 2008-08-07 09:16:06 --- That's strange. What's your version of BG2 ? Mine is the french one.
About the default.tot file : the content of the temp folder is deleted when you quit the game. Look into it when the game is running to see this files.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #15 from Lei Zhang thestig@google.com 2008-08-08 02:53:52 --- I have the English version. Saving works just fine here. Default.tot is there when a game is in progress. Its has permissions 644, and the directory's permissions are 755.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #16 from Dimitri De Vallière dimitri.de.valliere@wanadoo.fr 2008-08-08 04:24:38 --- Well, that's a good information, because non english version and english version of the game are different : when you patch the game, there are two version. One for the English version, and another one for international versions. Maybe it's just because of texts, but I'm not sure.
Btw, what's the content of your default.tot file ? Is it always empty as it is for us having the bug ?
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #17 from Lei Zhang thestig@google.com 2008-08-08 13:04:42 --- default.tot is always 0 bytes sized for me.
Oh, just to make sure, did you installed the game with Wine? You did not copy / run the game from a Windows partition, right?
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #18 from Dimitri De Vallière dimitri.de.valliere@wanadoo.fr 2008-08-09 02:15:11 --- Yes. Installed from wine, not from windows. It was a clean fresh install, without any old save files I guess Christian Apolloni did the same.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #19 from Austin English austinenglish@gmail.com 2009-02-16 02:13:45 --- Is this still an issue in current (1.1.15 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=13560
Chris simulcra@uchicago.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |simulcra@uchicago.edu
--- Comment #20 from Chris simulcra@uchicago.edu 2009-03-09 01:38:54 --- This seems related to an issue in IWD2 (which is also based on the same engine) which blocks character creation into a new party - trying to do some with a party of more than one character results in an error trying to compress default.tot, and the game then summarily crashes.
Does anyone have more information on what exactly this .tot file is and why it's apparently problematic?
http://bugs.winehq.org/show_bug.cgi?id=13560
zersaa zersaa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zersaa@gmail.com
--- Comment #21 from zersaa zersaa@gmail.com 2009-03-29 07:55:13 --- I confirm this bug.
Distribution: Arch Linux, kernel 2.6.28.8, wine 1.1.18
Steps to reproduce: 1. Download http://thepiratebay.org/torrent/3227065/Baldur_s_Gate_II_-_SoA___ToB_expansi... 2. Install BG_SoA 3. Install patch http://downloads.bioware.com/baldursgate2/Baldur%27sGateII-ShadowsofAmnPatch... 4. Install BG_ToB 5. Install patch http://downloads.bioware.com/baldursgate2/BGII-ThroneofBhaal_Patch_26498_ENG... 6. Run new game BG_SoA 7. The first autosave causes issue
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #22 from Chris simulcra@uchicago.edu 2009-04-11 04:20:01 --- I have an additional weird comment to make on this issue. I was able to play through BGII (and its expansion) just fine before (about two weeks ago). I decided to start up a new game today, and now I'm running into this default.tot issue non-stop! As far as I can recall, nothing has changed about my setup or wine install between the two play-throughs.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #23 from Chris simulcra@uchicago.edu 2009-04-11 04:21:15 --- (In reply to comment #22)
I have an additional weird comment to make on this issue. I was able to play through BGII (and its expansion) just fine before (about two weeks ago). I decided to start up a new game today, and now I'm running into this default.tot issue non-stop! As far as I can recall, nothing has changed about my setup or wine install between the two play-throughs.
oh yeah, i'm using wine 1.1.18, using a gentoo system
http://bugs.winehq.org/show_bug.cgi?id=13560
Simetrical Simetrical+wine@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Simetrical+wine@gmail.com
--- Comment #24 from Simetrical Simetrical+wine@gmail.com 2009-09-01 13:01:06 --- ln -s default.tot temp/default.tot works around the problem for me. I'm still seeing it on wine-1.1.25-63-g3ab8778. Saving now shows up the error "wineserver: file_set_error() can't map error: Too many levels of symbolic links" in the console, but works fine. Is there any further data I/we can provide to help out?
http://bugs.winehq.org/show_bug.cgi?id=13560
Scott Ortell sortell@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sortell@gmail.com
--- Comment #25 from Scott Ortell sortell@gmail.com 2009-09-13 20:34:22 --- I can confirm this. Although the workaround of deleting the default.tot and then ln -s default.tot temp/default.tot from the BGII (or in my case the EasyTutu folder) solves it for me.
http://bugs.winehq.org/show_bug.cgi?id=13560
Baris Urum barisurum@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |barisurum@gmail.com
--- Comment #26 from Baris Urum barisurum@gmail.com 2009-11-07 05:19:56 --- I did not encounter this bug with wine version 1.1.31 and did not encounter the regression chris explained in comment #22 too. I guess this problem doesn't affect 1.1.31 version, but this bug report shall remain as it may be still affecting the 1.0.1 stable branch.
http://bugs.winehq.org/show_bug.cgi?id=13560
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dank@kegel.com Resolution| |FIXED
--- Comment #27 from Dan Kegel dank@kegel.com 2010-01-15 04:17:56 --- For the record: do not post links to pirated versions of games, and do not use pirated versions of games in repro recipes.
Reported fixed, no need to leave bugs open against the 1.0 branch, as we are focusing on the 1.1 branch.
http://bugs.winehq.org/show_bug.cgi?id=13560
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #28 from Alexandre Julliard julliard@winehq.org 2010-01-22 11:01:42 --- Closing bugs fixed in 1.1.37.
http://bugs.winehq.org/show_bug.cgi?id=13560
Vlad Blanton vblanton@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vblanton@gmail.com
--- Comment #29 from Vlad Blanton vblanton@gmail.com 2010-10-03 17:55:35 CDT --- I would like to reopen this bug, as I have this issue with a fresh install of BG2:SOA --> BG2:TOB and patch 26498
Wine Version 1.2 (Stable)
http://bugs.winehq.org/show_bug.cgi?id=13560
DEVastat0r@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |DEVastat0r@yahoo.com
--- Comment #30 from DEVastat0r@yahoo.com 2011-12-17 02:42:13 CST --- (In reply to comment #29)
Agreed, haven't used it in prior versions, but I am currently experiencing this bug in Wine v1.3.34 w/ Baldur's Gate ToB patched to v26498. I'm running Ubuntu Oneiric 11.10. The linked file solution in comment #24 doesn't work for me.
http://bugs.winehq.org/show_bug.cgi?id=13560
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|CLOSED |REOPENED URL| |http://www.fileplanet.com/1 | |64134/160000/fileinfo/Baldu | |r%27s-Gate-II-Demo-%5BFull- | |Install%5D CC| |gyebro69@gmail.com Resolution|FIXED |
--- Comment #31 from GyB gyebro69@gmail.com 2011-12-17 04:38:15 CST --- I can confirm the bug persists with Wine-1.3.35 so reopening. I tested with the GOG.com version of Baldur's Gate II. Can be reproduced with the demo too (link added to url).
Steps to reproduce the problem with the demo: 1. Install the demo as usual then launch the game by BGMain.exe 2. In the main menu choose Single Player, then New game. You need to generate your in-game character. 3. When character generation is complete the game starts with an intro (couldn't find a way to skip the intro sequence). When the intro ends you're supposed to talk to a NPC by choosing sentences from the available conversations. 4. When the conversation ends the game performs an autosave: according to my testing this always succeeds the very first time I start the game. When autosaving is finished perform a manual save by clicking on the disk icon on the left: select an available save slot and enter a name then click on Save: you will be greeted with the error message, saying 'Save game failed, do you wish to quit?'
I think this bug has close resemblance to bug #18101: when I installed BG 2 on an external usb hdd, the game saved the game correctly all the time (http://bugs.winehq.org/show_bug.cgi?id=18101#c9).
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #32 from DEVastat0r@yahoo.com 2011-12-17 06:07:03 CST --- (In reply to comment #30)
Bug seems somewhat inconsistent ... game was working on first run, and appeared only on subsequent runs. Bug appears to "reset" itself and disappear after exiting the initial dungeon into town. We'll see if it surfaces again now that I've quit and will have to load the game.
http://bugs.winehq.org/show_bug.cgi?id=13560
Goblinstomper@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Goblinstomper@gmail.com
--- Comment #33 from Goblinstomper@gmail.com 2012-07-28 08:53:57 CDT --- Unable to reproduce with english DVD version, following the steps in comment 31 (except I didn't install the demo but rather the full version and ToB - but as some of the previous reports included ToB as does the title of the original report that ought to be ok) and wine 1.5.9.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #34 from GyB gyebro69@gmail.com 2012-07-30 09:25:11 CDT --- The error message 'Save game failed, do you wish to quit?' still occurs for me, tested with wine-1.5.9-267-g8f108a0 and with the GOG.com version of BG II. Just like in comment #31, I can't reproduce the problem when the game is installed on my external hdd, but happens on my internal (sata2) disk (both partitions formatted as ext4). As said in comment #32, the problem is somewhat inconsistent: the first auto-save always works as well as the subsequent manual saves. The error message appears when I load a previously saved game and try to perform a manual save.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #35 from Dan Kegel dank@kegel.com 2012-07-30 10:48:15 CDT --- A +relay or +file log might be interesting.
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #36 from GyB gyebro69@gmail.com 2012-07-30 11:31:33 CDT --- Created attachment 41200 --> http://bugs.winehq.org/attachment.cgi?id=41200 7zipped +file,+tid,+msgbox log (uncompressed 51 MB)
Here's how the attached log was created:
After installation I started the game normally (without WINEDEBUG), just to start a new game, create a character and wait until auto-save performed. Files saved by the auto-save feature located in ../save/000000003-Auto-Save-TOB and the directory contains the files: BALDUR.BMP, BALDUR.GAM, BALDUR.SAV, PORTRT0.BMP, TOBTEMP.BMP, WORLDM25.WMP. I restarted the game, now with WINEDEBUG=+file, loaded the previously saved game, then performed a manual save: that's when the error happened. I looked into the directory created by the manual save (it has the name: 000000007-111), and found that only the .BMP files exist, these files are missing: BALDUR.GAM, BALDUR.SAV, WORLDM25.WMP
A combined +relay,+file log is almost 600 MB in uncompressed form, it is available here: https://docs.google.com/open?id=0B-tTbLKBl-tOV01SNl9vTWVFSWs
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #37 from Goblinstomper@gmail.com 2012-07-30 13:21:10 CDT --- Sorry to butt in here, but considering GyB's problems with bug Bug 18101 - which is another bug regarding infinity engine and file manipulation, seeing as me and GyB get very different results for both these bugs, perhaps we should try to identify any differences?
eg, I'm using opensuse 12.1, kernel 3.1.10-1.16-desktop and get my wine from http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_12.1/ which list wine version as 1.5.9-178.1
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #38 from GyB gyebro69@gmail.com 2012-07-30 13:34:05 CDT --- (In reply to comment #37)
Sorry to butt in here, but considering GyB's problems with bug Bug 18101 - which is another bug regarding infinity engine and file manipulation, seeing as me and GyB get very different results for both these bugs, perhaps we should try to identify any differences?
eg, I'm using opensuse 12.1, kernel 3.1.10-1.16-desktop and get my wine from http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_12.1/ which list wine version as 1.5.9-178.1
I'm on Fedora 17 x86, Kernel 3.4.6-2.fc17.i686.PAE, Wine was compiled from source. Mount options for the partition where the problem occurs: ext4 (rw,relatime,seclabel,data=ordered) Mount options where the problem doesn't occur: ext4 (rw,nosuid,nodev,relatime,seclabel,data=ordered,uhelper=udisks2)
http://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #39 from Goblinstomper@gmail.com 2012-07-31 02:59:48 CDT --- I don't think this makes much of a difference, I tried a bunch of variations but I think the only interesting result was the one regarding fedora.
Did not encounter the problem on open suse 12.1 kernel 3.1.1016-x86_64 (wine 1.5.9) nor 12.2 rc1 kernel 3.4.4 x86_64 (wine 1.5.9) and not Maegia2 3.3.6-x86_64 (wine 1.4) or Fedora17 3.3.6-2-x86_64 (wine 1.5.8)
Did encounter it on: 32bit fedora17 3.4.6. (wine 1.5.8 though).
just looking at it it looks like there's something up with 32bit fedora, unfortunaly fedora was the only 32bit distro that I tried with a new enough mesa to actually get the game going, so it's hard to draw any conclusions.
https://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #40 from Austin English austinenglish@gmail.com --- *** Bug 18101 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=13560
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #41 from joaopa jeremielapuree@yahoo.fr --- Is still a bug in current wine(3.20)?
https://bugs.winehq.org/show_bug.cgi?id=13560
Vlad vblanton@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|vblanton@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=13560
--- Comment #42 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-8.6?