Problems with Save Games in "My Documents" in foreign Windows versions

Started by Le Woltaire, Wed 08/07/2009 20:53:10

Previous topic - Next topic

monkey0506

Quote from: Gilbet V7000a on Fri 28/08/2009 01:56:35You may try to run the game using the V3.2 engine and see if it fixes your problem.

Quote from: Crimson Wizard on Thu 27/08/2009 19:56:23
Quote from: monkey_05_06 on Thu 27/08/2009 19:32:36
Edit: Nevermind. I just tested it and the 3.2 engine says it can only run games from 3.2+. :-\
Yeah, me too :) :(

We've already ruled that one out Gilbot. :-\

I'm curious though to see why this is only affecting this one game. Do the other games save to the game directory as opposed to My Documents?

Crimson Wizard

Quote from: monkey_05_06 on Fri 28/08/2009 03:34:26
I'm curious though to see why this is only affecting this one game. Do the other games save to the game directory as opposed to My Documents?
Nope, all of them save to "My Documents".
well I nearly passed the game last night...  ;D since it's short, it's not a big problem, I will try again this evening.

SSH

Does AGS use the %CSIDL_DEFAULT_MYDOCUMENTS% variable to determine the location, as this should be langauge-independent?
12

Crimson Wizard

Uh... I hope there could be some solution for 3.1.2 games, I was trying play current MAGS games, and all 3 do not read savegames on my PC :(

What about sma-a-all patch which fixes this in 3.1.2?  ::)

monkey0506

Quote from: SSH on Fri 28/08/2009 13:21:04
Does AGS use the %CSIDL_DEFAULT_MYDOCUMENTS% variable to determine the location, as this should be langauge-independent?

The problem isn't actually finding the folder (in direct contradiction of what I said ~2 months ago; I was wrong). The problem is unfortunately that prior to 3.2 beta 3 if the file path contains any Unicode characters it won't work properly.

Then to make matters worse with all the major overhauling CJ's been doing it seems that backwards compatibility of the engine is straight out at this point. So if the game is compiled with any version of AGS prior to 3.2 beta 3 then the game author must:

A) not use 'My Documents' at all which could potentially alienate some Vista users who don't know how to install the game in a writable directory,

OR

B) allow for the save directory to be set via Game.SetSaveGameDirectory (which for Vista users would still require they know how to install the game to a writable directory).

Another complication that could arise is whether the Unicode restriction applies only when expanding the My Documents path or whether it applies to the full path of all save game directories. Because even if the game directory is specified, if the Unicode restriction applies to the full path, that would just further narrow down the possibilities as to where Vista users can install the game.

I would assume that it doesn't require the full path because it should be able to use the "./" directory but again, I don't know for sure.

Crimson Wizard

OMG! I SOLVED THIS!  ;D 8)

Stupid me... I reviewed an old thread where I was reporting bug related to similar problem (unicode characters), and found I wrote back then:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36544.msg480028#msg480028

So, practically, if one have this problem with saved games, he or she may simply set Compatibilty with Win98 option for game executable, and it seem to work then!
:P

SMF spam blocked by CleanTalk