Project not running from Torsion
by Laralyn McWilliams · in Torque Game Builder · 04/03/2010 (11:46 am) · 4 replies
I'm trying to get TGB working (just about to give up, actually) on my PC, and I can't connect to the project from Torsion. Here's what I did:
Created a new project in TGB, with the option to copy the executable. Added a few images. Saved the level with the name FishDemo.
Created a new project in Torsion, and set up all the configuration options.
Tried to build in Torsion and got this error:
Error loading level game/data/levels/untitled.t2d. Invalid file.
Did a search and found a reference to untitled.t2d in the properties.cs file, so I changed it to the level name (FishDemo). It's odd that I would have to do that--why would it be hard-coded?
Tried to build again and got the same error, even though a search shows no references to "untitled.t2d" anywhere in my project.
Does anyone know how to make this work?
Created a new project in TGB, with the option to copy the executable. Added a few images. Saved the level with the name FishDemo.
Created a new project in Torsion, and set up all the configuration options.
Tried to build in Torsion and got this error:
Error loading level game/data/levels/untitled.t2d. Invalid file.
Did a search and found a reference to untitled.t2d in the properties.cs file, so I changed it to the level name (FishDemo). It's odd that I would have to do that--why would it be hard-coded?
Tried to build again and got the same error, even though a search shows no references to "untitled.t2d" anywhere in my project.
Does anyone know how to make this work?
#2
04/03/2010 (1:31 pm)
Just to clarify, are you creating a separate new project in Torsion or are you opening the Torsion project file (Game.torsion) that is created for you by TGB?
#3
04/03/2010 (8:21 pm)
I created a separate new project... and all of a sudden it started to work. It took 2-3 times of running, closing and reopening before it mysteriously fixed itself. Wacky!
#4
Some changes seem to cause it to happen again--I just set up collision for the Fish Game demo, and when I ran the project, it had the untitled.t2d error even though I had been successfully running it from Torsion for the past hour! I ran the build from TGB and moved the fish around with the input keys, and then magically Torsion could connect and run the app again.
04/03/2010 (9:27 pm)
I think I just confirmed what's happening. I'll submit it as a bug. When I either create a new project or open the project automatically created for the first time, I get that untitled.t2d error. I continue to get that error until I play the build from TGB with some player input (maybe clicking in the window would be enough). Some changes seem to cause it to happen again--I just set up collision for the Fish Game demo, and when I ran the project, it had the untitled.t2d error even though I had been successfully running it from Torsion for the past hour! I ran the build from TGB and moved the fish around with the input keys, and then magically Torsion could connect and run the app again.
Torque Owner Johnny Vo
If that doesn't work try entering the name of the level in loadLevel (in game.cs) sceneWindow2D.loadLevel("game/data/levels/untitled.t2d")