Game Development Community

Game's directory name issue

by Suharian Ramadi · in Torque Game Builder · 08/30/2011 (11:38 am) · 9 replies

After build my project.. i try to rename it's folder name to several names (with various length).
If the length of the folder name is less than 16 characters, some files can not be invoked (presumed lost)

"Missing file: bla..bla..bla"

note:
- number of files that failed to be called, depending on the length of the folder name.
- folder name is alphanumeric.

can anyone help me to fix this issue, thank you before...

========================
SOLVED
========================
in file platformWin32/winFileio.cc (line 585)
Modify:
#ifdef UNICODE
      convertUTF16toUTF8( findData.cFileName, buf, buf.size );
      char* fnbuf = buf;
#else

To:
#ifdef UNICODE  
      TempAlloc< char > fileNameBuf(dStrlen(findData.cFileName)+3);  
      convertUTF16toUTF8( findData.cFileName,fileNameBuf,fileNameBuf.size);  
      char* fnbuf = fileNameBuf;  
#else

Original post from here

#1
08/31/2011 (9:04 am)
can anyone help me with this issue? please :D
#2
08/31/2011 (9:49 am)
You need to have names without spaces.
#3
08/31/2011 (1:08 pm)
@Ronny: no matter folder name put on a space or not, this issue will still appear, if the number of characters under 16.

I even tried using the name like "aaa", this issue still appears.
#4
08/31/2011 (4:19 pm)
Why are you renaming the directory after you built the project? Does your code contain literal references to the path?
#5
09/01/2011 (9:34 am)
@Harry: This test is actually done by my game publisher. they changed the name of the folder after installation.


oh yes, I did some more experiments, the results are:
1. during the build game, if the product name under 16 characters, this problem occurs.

2. I am trying to build in 1.7.4 this problem does not occur. but I need this game in the build in 1.7.5
#6
09/02/2011 (12:34 am)
Your game seems to be messed up pretty badly. I haven't ever tried using product name of 16 characters, and still everything works just fine. Renaming the folder also does not cause any troubles.
Which files are missing? Could you show us the log file?
#7
09/03/2011 (10:51 am)
problem solved. I simply rename each files that considered missing become shorter than before.
(but I still do not understand what the real cause of this issue: D)
#8
09/07/2011 (3:21 pm)
Might it be a localization issue? What language version of Windows are you using?
#9
09/20/2011 (9:39 am)
@Richard: the English version

@all: the issue occurs again.. this the log :

Loading compiled script C:/ABC/common/gui/profiles.cs.
Loading compiled script C:/ABC/common/gui/cursors.cs.
Missing file: C:/ABC/common/gui/messageBoxOk.gui!
Missing file: C:/ABC/common/gui/messageBoxYesNo.gui!
Missing file: C:/ABC/common/gui/messageBoxYesNoCancel.gui!
Missing file: C:/ABC/common/gui/messageBoxOKCancel.gui!
Missing file: C:/ABC/common/gui/messageBoxOKCancelDetailsDlg.gui!
Missing file: C:/ABC/common/gui/messagePopup.gui!
Loading compiled script C:/ABC/common/gui/options.gui.
Loading compiled script C:/ABC/common/gui/remap.gui.
Loading compiled script C:/ABC/common/gui/console.gui.
Missing file: C:/ABC/common/gui/NetworkMenu.gui!
Missing file: C:/ABC/common/gui/startServer.gui!
Missing file: C:/ABC/common/gui/joinServer.gui!
Missing file: C:/ABC/common/gui/waitingForServer.gui!
Loading compiled script C:/ABC/common/gui/helpDlg.gui.
Loading compiled script C:/ABC/common/gui/messageBox.cs.
Loading compiled script C:/ABC/common/gui/help.cs.
Loading compiled script C:/ABC/common/gui/chatGui.gui.
Loading compiled script C:/ABC/common/gameScripts/screenshot.cs.
Loading compiled script C:/ABC/common/gameScripts/metrics.cs.
Missing file: C:/ABC/common/Gui/FrameOverlayGui.gui!
Loading compiled script C:/ABC/common/gameScripts/scriptDoc.cs.
Loading compiled script C:/ABC/common/gameScripts/keybindings.cs.
Loading compiled script C:/ABC/common/gameScripts/options.cs.
Loading compiled script C:/ABC/common/gameScripts/levelManagement.cs.
Loading compiled script C:/ABC/common/gameScripts/projectManagement.cs.
Loading compiled script C:/ABC/common/gameScripts/projectResources.cs.
Loading compiled script C:/ABC/common/gameScripts/align.cs.

Torque Game Builder (v1.7.5) initialized...
Loading compiled script C:/ABC/game/managed/datablocks.cs.
Loading compiled script C:/ABC/game/managed/persistent.cs.
Loading compiled script C:/ABC/game/managed/brushes.cs.
Missing file: C:/ABC/game/gui/mainScreen.gui!
Loading compiled script C:/ABC/game/gameScripts/game.cs.
setContent(): Invalid control: mainScreenGui
Activating DirectInput...
DirectInput joystick enabled.
game/gameScripts/game.cs (23): Unable to find object: 'sceneWindow2D' attempting to call function 'loadLevel'

can you see the folder name is 'ABC' (or other 3 char names)

if i use name like this 'ABCD', the log file will be different
also >4 and <16 char names folder, problem will be still occurs.