Problem with non-latin path to game
by Arsen Gnatkivskyi · in Torque Game Builder · 08/16/2008 (8:07 am) · 13 replies
If I install my tgb-game in directory which name contain non-latin (Cyrillic) symbols, game does not start:
"Game Startup Error
'initializeProject' function could not be found.
This could indicate a bad or corrupt common directory for your game.
The Game will now shutdown because it cannot properly function"
Also I have trouble with cyrillic windows user profile (for example default administrator profile on ukrainian or russian windows). TGB cant enter right folder in "c:\Documents and Settings\" and create strange filder which name contain only squares.
UNICODE is on in my torqueConfig.h
How to fix this problem ?
"Game Startup Error
'initializeProject' function could not be found.
This could indicate a bad or corrupt common directory for your game.
The Game will now shutdown because it cannot properly function"
Also I have trouble with cyrillic windows user profile (for example default administrator profile on ukrainian or russian windows). TGB cant enter right folder in "c:\Documents and Settings\" and create strange filder which name contain only squares.
UNICODE is on in my torqueConfig.h
How to fix this problem ?
#2
12/11/2008 (3:06 am)
Ok, now I found the same bug on this forum, solutions, solutions, please :)
#4
This will remove all the non-ANSI chars, resolving this issue... albeit ONLY FOR WINDOWS!!!
Lastly, while this goes without saying... these shortened paths are not absolute (read: "c:\foo~1" today may expand to "c:\foo bar", but expand to "c:\foo ballistic" at some later point if "c:\foo bar" is removed). This may not be an issue for your usage, but I can't suggest this method without also pointing out the rather obvious weaknesses in it.
01/11/2009 (12:05 am)
In the event that you're looking for a solution ONLY FOR WINDOWS... you can simply convert your Long File Name paths to Short File Names via the GetShortPathName (http://msdn.microsoft.com/en-us/library/aa364989(VS.85).aspx) API. This will remove all the non-ANSI chars, resolving this issue... albeit ONLY FOR WINDOWS!!!
Lastly, while this goes without saying... these shortened paths are not absolute (read: "c:\foo~1" today may expand to "c:\foo bar", but expand to "c:\foo ballistic" at some later point if "c:\foo bar" is removed). This may not be an issue for your usage, but I can't suggest this method without also pointing out the rather obvious weaknesses in it.
#5
04/18/2009 (3:22 pm)
Will this problem be fixed someday? I'm currently using the demo to see if I like this engine and I'm thinking about buying TGB, but I won't buy the source code, so I won't be able to change it and recompile.
#6
04/21/2009 (2:51 am)
I use TGB on a Japanese version of Vista without problems. I don't know if that info is much help to you.
#7
05/26/2009 (4:27 am)
I have this problem too! How to fix this problem???
#8
If the path to your application data folder in your home directory contains problematic characters, then this is difficult of course. Not sure if you can instruct Windows to use a different home directory within an application based on environment variables.
If I find the time, I can put together a binary diff for vanilla 1.7.4. That would allow patching the release binary without having the source code.
//EDIT: if you have interest in such a thing, make yourself heard here, so I won't be wasting my time
05/26/2009 (9:19 am)
Unfortunately, I don't see a way to fix this without having access to the source code other than making sure all paths used by TGB map 1:1 from the local codepage to UTF-8.If the path to your application data folder in your home directory contains problematic characters, then this is difficult of course. Not sure if you can instruct Windows to use a different home directory within an application based on environment variables.
If I find the time, I can put together a binary diff for vanilla 1.7.4. That would allow patching the release binary without having the source code.
//EDIT: if you have interest in such a thing, make yourself heard here, so I won't be wasting my time
#9
05/26/2009 (1:13 pm)
Rene Damm, yes of course, I have interest! Thanks:)
#10
I've uploaded the patched binaries for 1.7.4 and added a link to the thread with the fixes.
Or click here to download.
05/27/2009 (9:45 am)
Silly me was thinking things too complicated again.I've uploaded the patched binaries for 1.7.4 and added a link to the thread with the fixes.
Or click here to download.
#11
05/28/2009 (11:32 am)
Thanks alot, but "Access Restricted"! I downloaded fix only:)
#12
Oh, yeah, right. For the forum thread, you'll need a TGB license.
But the file is the same. Just cross-posted across the forums.
05/28/2009 (11:36 am)
Oh, yeah, right. For the forum thread, you'll need a TGB license.
But the file is the same. Just cross-posted across the forums.
#13
05/28/2009 (12:50 pm)
Don't work. Replace files, but I can see only one screen: http://www.postimage.org/image.php?v=Pq118qVi (if I work with my old project), and view good (normal) screen if I start new project. And I have one problem with both situation - my mouse stoped in centre of screen and I can't move it. I put 3 files in archive (2 'console' files and 1 image): http://rapidshare.com/files/238286753/Torque.rar.html
Olli Taimisto
Default Studio Name