Page 1 of 1

Beta11 - .TMP files not being renamed

Posted: Mon Sep 20, 2010 5:27 pm
by jobu
Hello,

I came across a problem today in beta11 where my save files were not being updated. I created a character and played for a while, saving the game several times. I encountered a graphical glitch which replaced all of the images with white boxes, which I will report on later, if I see it again. I quit and reloaded, and found that I had been returned to the first save game I had made with this character. One thing I noticed was that the description of the save game did reflect the most recent save I had made (saying I was in Bree) but the game which was loaded had me in the Trollshaws.

I experimented a bit and found that, no matter how often I saved, whenever I reloaded I was back to the original save point. I did some digging and I think I found the answer. I have uploaded a couple of jpeg's showing my save directory at two different times:
tome1.JPG
tome1.JPG (13.88 KiB) Viewed 4278 times
tome2.JPG
tome2.JPG (17.39 KiB) Viewed 4278 times
The timestamps on the desc.lua and .tmp files have been updated, but the timestamps on the .teag and .teaz files have not. The timestamps on the .teag and .teaz files seems to fit with the first time I would have saved, although I didn't actually make a note of the time when I was playing.

I read the changelogs and saw that a feature which has been added to prevent save corruption causes saves to happen to a separate file, which is then renamed once the save is finished. It seems that the rename is failing in my case.

To test this theory, I renamed the .tmp files to .teag and .teaz, and found that when I loaded the game, I was at the most recent save point, rather than the one from 12:18 p.m.

I am running on Windows XP, SP3. This is the first time I have played on this machine.

I doubt this matters, but just in case, my character is a level 2 Noldor alchemist named Feandren. I have saved in both Bree and the Trollshaws.

Re: Beta11 - .TMP files not being renamed

Posted: Mon Sep 20, 2010 5:32 pm
by darkgod
Hum weird, can you try using this file please: http://te4.org/dl/tmp/Savefile.lua

Download it, and replace the file in game/engines/default/engine/Savefile.lua

This should fix it

Re: Beta11 - .TMP files not being renamed

Posted: Mon Sep 20, 2010 5:33 pm
by jobu
I am not sure if the images uploaded correctly, so I will post the directory contents in text form:

C:\Documents and Settings\...\save\Feandren:

Version 1:

desc.lua 1 KB LUA File 9/20/2010 12:51 PM
game.teag 4,153 KB TEAG File 9/20/2010 12:18 PM
game.teag.tmp 4,160 KB TMP File 9/20/2010 12:51 PM
zone-trollshaws.teaz 866 KB TEAZ File 9/20/2010 12:00 PM
zone-trollshaws.teaz.tmp 820 KB TMP File 9/20/2010 12:34 PM

Version 2:

desc.lua 1 KB LUA File 9/20/2010 1:06 PM
game.teag 4,153 KB TEAG File 9/20/2010 12:18 PM
game.teag.tmp 4,160 KB TMP File 9/20/2010 1:06 PM
zone-trollshaws.teaz 866 KB TEAZ File 9/20/2010 12:00 PM
zone-trollshaws.teaz.tmp 820 KB TMP File 9/20/2010 12:34 PM

Re: Beta11 - .TMP files not being renamed

Posted: Mon Sep 20, 2010 5:34 pm
by darkgod
As for the white display thing it's known and still being hunted :/

Re: Beta11 - .TMP files not being renamed

Posted: Mon Sep 20, 2010 5:37 pm
by darkgod
Oups! If you did download the file I gave you already please download it again, I made a slight error :/

Re: Beta11 - .TMP files not being renamed

Posted: Mon Sep 20, 2010 5:52 pm
by jobu
The second version you posted fixed the problem :)

Thanks for your very fast response. That is some world-class technical support!

Re: Beta11 - .TMP files not being renamed

Posted: Mon Sep 20, 2010 6:21 pm
by edge2054
Was able to reproduce this (also on windows XP).

If you need logs, save files, or whatever DG let me know and I'll get them emailed to you.

Re: Beta11 - .TMP files not being renamed

Posted: Mon Sep 20, 2010 6:40 pm
by darkgod
I have updated the beta11 archives with the fix