Game Development Community

[TD2i 1.3 - Resolved] Torque 2D for iPhone will not Open Project

by Serhiy Zagniy · in iTorque 2D · 01/06/2010 (12:21 pm) · 18 replies

I have tried on two different PC one with Vista 64bit and second XP 32 bit

This is step by step:
1. Downloading iT2D 1.3 from torquepowered website
2. Unzip everything to c:/T2D_iPhone
3. Running TorqueGameBuilder.exe (C:/T2D_iPhone/tgb)
4. Create new empty project (No spaces in project name)
5. Project was created but after this T2D is crashed
6. Run TorqueGameBuilder.exe and trying to open just created new project... And again T2D crashed
6. Trying to rebuild T2D SDK solutions (C:/T2D_iPhone/engine/compilers/VisualStudio 2008). Successful
7. Same problem with creating and opening new projects... T2D crashing all the time



Console log saying about this warning:
tools/projectBuilder/main.cs (38): Unable to find object: 'ProjectBuilderDirectoryText' attempting to call function 'setText'
tools/projectBuilder/main.cs (48): Unable to find object: 'ProjectBuilderBuildOptionsList' attempting to call function 'add'
tools/projectBuilder/main.cs (49): Unable to find object: 'ProjectBuilderBuildOptionsList' attempting to call function 'add'
tools/projectBuilder/main.cs (62): Unable to find object: 'ProjectBuilderBuildOptionsList' attempting to call function 'setSelected'
tools/projectBuilder/main.cs (65): Unable to find object: 'ProjectBuilderBuildTypeList' attempting to call function 'setSelected'


I commented all this line but problem still exist and T2D crashing.
The end of console log is:


Torque Game Builder (v1.7.4) initialized...
Torque2D for iPhone | v1.3 is active...
% Opening Project C:/T2D_iPhone/MyProjects/iPhoneExample/projectFiles/project.t2dProj ...
Executed C:/T2D_iPhone/MyProjects/iPhoneExample/projectFiles/game/managed/datablocks.cs. Took 21 ms
Executed C:/T2D_iPhone/MyProjects/iPhoneExample/projectFiles/game/managed/brushes.cs. Took 21 ms
Executed C:/T2D_iPhone/MyProjects/iPhoneExample/projectFiles/game/data/levels/emptyLevel.t2d. Took 46 ms


Solutions (Work for me)

I think the problem was with this file:
Executed C:/Documents and Settings/USER_NAME/Application Data/GarageGames/Torque Game Builder(iPhone)/commonPrefs.cs

T2D cannot create this file at first attempt.

How I fix it:
1. Remove everything from C:/Documents and Settings/USER_NAME/Application Data/GarageGames (Vista folder: C:UsersUSER_NAMEAppDataRoamingGarageGames)
2. Run T2D and create new project, and then just close T2D
3. Run again T2D and open previous project
4. Close again your T2D.
5. After this steps problem fixed for me

#1
01/06/2010 (1:25 pm)
Very strange. I cannot replicate this on my 64b Windows 7 machine or my XP configuration. Did you make any changes to the engine and recompile? I'm using it out of the box and received the font errors (which are fixed in another post on the forum).
#2
01/06/2010 (1:28 pm)
No I do not make any changes to source code. Just download->unzip->open project-> I can see workspace for 1-3 seconds and then T2D crashing ((
#3
01/06/2010 (1:28 pm)
I too am unable to replicate this on Vista 64 or XP. When I get to the office I will try on a Windows 7 as well.

I'm wondering if this has something to do with previous builds being installed. Do you have a previous version of iTGB installed? (1.2 or T2Di 1.3 Beta)

If so, delete those. If you have already deleted them, make sure you have cleared out the config files installed by previous builds. These are typically found in:

C:\Documents and Settings\USER_NAME\Application Data\GarageGames (That's an XP OS). I'll check Vista when I get to work to see if it saves config files to another directory. This was an issue with previous builds being released, and older versions' config files messing with the system.
#4
01/06/2010 (1:38 pm)
Awesome, Thank you Michael.
Removed everything from C:\Documents and Settings\USER_NAME\Application Data\GarageGames and now my T2D working perfect. Thank You again!
#5
01/06/2010 (1:42 pm)
Thank God! Let's see if this works for others.
#6
01/06/2010 (1:49 pm)
@Serhiy
Did you get a firewall message asking TGB to access the internet? The RSS feed may be giving you fits.

Edit:
Ah! Saw that you got it fixed. That's what I get for asking a question and forgetting to click post until a while later!
#7
01/06/2010 (9:32 pm)
sorry did not happen. Windows 7. If this helps when I remove everything from blah/roaming/garagegames it works, the first time. Re opening and loading a file crashes it just the same.

I remove everything, start messing around and if I open the about window it crashes. weird.
#8
01/06/2010 (9:43 pm)
@Henry - Actually, that does help quite a bit. It shows that something the editor is saving out is not compliant with Windows 7, or is misreading the data after the first run.

Looking into this now. Thanks for the lead.
#9
01/06/2010 (10:25 pm)
@Henry - just after you remove all files from blah/roaming/garagegames folder try to open any project 2-3 times. It's should help
#10
01/08/2010 (12:21 am)
Sadly no deal, I have a PC and a laptop and the same on both. Remove the files and it will run. Run again and no. repeated launching causes the the same effect. Isn't that a sign of madness, expecting different results from the same actions? ; )
#11
01/08/2010 (2:24 am)
Try to run T2D with admin permission
#12
01/08/2010 (10:15 am)
What does your console.log say? Is there anything that isn't loading correctly? I've seen this happen when a project is munged and the load last project is auto-loading the corrupt project.
#13
01/28/2010 (3:43 am)
If i run debug version of editor it work fine. Release version crash on load or new project.I have tried to recompile under windows 7 but the problem persist.
#14
02/13/2010 (3:31 am)
I'm running windows 7 and having the same problem. I have to delete the \USER_NAME\Application Data\GarageGames folder every time I run the editor. Is this still being looked into? This issue is not fully resolved.
#15
03/28/2010 (4:01 am)
Same problem here, have to delete all the files before opening/creating project. Any solution to this ??
#16
04/23/2010 (6:38 am)
Same problem here. I had to delete all the files before opening a project, otherwise the editor crashed.

This happened with the sample project and even empty, newly-created projects.

On further investigation however I noted that, in my case, I only had to delete the file levelEditorPrefs.cs. Noting also that this seemed tied in to the display of the RSS dialog and how that relates to the entry:

$levelEditor::checkRSSFeeds = "1";

merely changing that to "0"

$levelEditor::checkRSSFeeds = "0";

has stopped the editor crashing. Hope this helps some of you experiencing the same issue.


#17
04/23/2010 (10:58 am)
@Darren - wow... if that fixes the crashing (can't try it at the moment), that would be awesome! GG has been trying to fix this for months. With a critical bug like this you think it would be fixed by now.

Great job.
#18
04/26/2010 (11:24 am)
Holy crap!! It works, even easier than editing the file is click off the checkbox when you start the first time. I removed the whole everything and started again just as I read this thread. thanks tons