Game Development Community

Can't run project from TXB

by Carolina Torres · in Torque X 2D · 10/10/2008 (9:57 am) · 4 replies

I started a project some months ago using TXB and VS C# Express and when I created it I gave it a stupid name 'cause I was just trying stuff out. But meanwhile I continued working on that project.
The problem came when I changed the project name in VS (cause I have to deliver it to be integrated with other projects, so it had to have a coerent name) - after doing this the project does not run in TXB! I can load the project but when I try to run it I get the error message "There was a problem running your game. Check to make sure you have a successful build of your game from Game Studio Express". I have a successful build and I'm able to run it from VS, so I can only guess it was because of the name change. The components are updated when changed, I can load all scenes, everything but running the game is ok.

What is the name of the file that needs to be "successfuly built" and where is it located?

Can you help me?

Thanks.

Carolina

PS - When i try to select a project configuration in the TXB toolbar nothing appears

#1
10/11/2008 (8:49 am)
In your game project's folder, find the file named "Game.txproj". There should only be one .txproj file (in case your renaming created another one). Open the file and check the tag to see if it matches your new path name. That should do it.

John K.
#2
10/13/2008 (6:06 am)
Thanks for your try but everything is ok in the .txproj file...

Could it be something else?
My hipoteshis is that it may have to do with the build file. When we run the project from TXB, what build file is TXB going to try to run? Where is it located? Where do we define which build file it should run?
#3
02/08/2009 (8:13 am)
I had the same problem. Here's the solution in case anyone else runs into the problem:

Rename the .txproj file to the same name of the csproj that contains your TX game.

ie if my game was:
mygame.csproj

then my txproj needed to be:
mygame.txproj

otherwise the 'run' options in TXB are blank.
#4
02/09/2009 (8:24 am)
Actually, I've had the same problem. The ContentNodeGenerator kept crashing, but I found a workaround on the forums that said to rename the .txproj to something other then the csproj. Renaming the txproj "fixed" the ContentNodeGenerator program, but now I can't run a build from TXB. I can make changes to the TXB resources and save scenes, but I have to add new files I import to TXB(images, and scenes) to VS manually.

I believe this is due to the fact that the TXB ContentNodeGenerator assumes the txproj is the same name as the csproj, but since the names of the projects are different all the new content isn't being pushed to VS. Suffice to say, I have to run the build in Studio. In other words, this problem is serious annoyance, but otherwise it shouldn't stop you from working on your game.