Game Development Community

Can't Deploy to Xbox

by Matthew Hoesterey · in Torque X 2D · 09/14/2008 (8:52 pm) · 15 replies

Going through the new torque x book I'm trying to deploy my game to the xbox.

I'm getting 98 errors that read something like this:
The type or namespace name GarageGames could not be found


I think it can't find the engine I"m not sure what to do.

The book says that you shouldn't copy theEngine files if you own the pro version of torque so I didn't at first. After that I tried copying the files but got the same result.

Also I'm unclear as to how I should set up the configuration manager. With the non pro version of Torque x you set the game and engine files to go to the XBOX platform do you set the uncopied engine files to xbox with torque pro? I've tried every setting I can think of but without any change in results.

Thanks.

#1
09/14/2008 (10:37 pm)
Did you start off by first creating the Xbox360 project? If not, select your Game project in the Solution Explorer panel, then right-click the mouse and select "Create Copy of Project for Xbox360". Next, check your build configuration by selecting Build>Configuration Manager from the menu. The "Active Solution Platform" should NOT be Mixed. Instead, select Xbox360 and make sure that only the new Xbox 360 related projects are checked. Similarly, for x86, make sure only the Windows projects are selected. After closing the configuration manager, you can select Xbox360 as the active target platform and rebuild the solution.

You must have XNA Connect installed on your Xbox360, downloaded from the Marketplace. And you must have your Xbox 360 registered with your development environment (Tools>Launch XNA Game Studio Device Center from the main menu). When your Xbox is "waiting to connect", you can deploy your game.

If you're running into trouble, the common problems are:
1. You have not created the Xbox version of the project
2. Your solution has Mixed Modes of x86 and Xbox360 projects
3. XNA Connect is not installed or running
4. Your Xbox 360 is not registered with your PC with the correct key

John K.
#2
09/15/2008 (12:11 am)
Sorry it's still giving me the same errors
The type or namespace name GarageGames could not be found

I right-clicked and Created a copy of the project for the xbox. My Solution explorer now has "Xbox 360 Copy of ChuDynasty" listed below the engine files


I didn't copy the engine files as I have the pro version


Then I went into the Build Configurations and set Xbox360 copy of Chudynasty to release, xbox 360, and checked the build and deploy boxs. I didn't check the build box on anything else the first time I tried to deploy. After that I tried clicking on the build for the engine files (also setting them to xbox) with no luck. I also tried changing the configuration from release to debug with no luck.


Next I opened up the XNA game studio device center and connected to the xbox. I received a message that It had connected and a pic of my xbox apeared in my device manager.


After that the waiting screen (18.9) in the book popped up on my tv.


After that I pressed F5 and received the following.


Thanks for the help. :)



Warning 1 The file 'Game.txproj' could not be added to the project. A file with the same path already exists in the project. ChuDynasty
Warning 2 The file 'EngineData\EngineData_x86.Designer.cs' could not be added to the project. A file with the same path already exists in the project. Torque
Warning 3 The file 'EngineData\EngineData_Xbox.Designer.cs' could not be added to the project. A file with the same path already exists in the project. Torque
Warning 4 The file 'EngineData\EngineData_x86.resx' could not be added to the project. A file with the same path already exists in the project. Torque
Warning 5 The file 'EngineData\EngineData_Xbox.resx' could not be added to the project. A file with the same path already exists in the project. Torque
Warning 6 The file 'Game.txproj' could not be added to the project. A file with the same path already exists in the project. Xbox 360 Copy of ChuDynasty
Warning 7 The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Release' Platform='Xbox 360' ChuDynasty
Error 8 The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='Debug' Platform='Xbox 360' Torque
Error 9 The type or namespace name 'GarageGames' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\PlayerMovementComponent.cs 8 7 Xbox 360 Copy of ChuDynasty
Error 10 The type or namespace name 'GarageGames' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\PlayerMovementComponent.cs 9 7 Xbox 360 Copy of ChuDynasty
Error 11 The type or namespace name 'GarageGames' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\PlayerMovementComponent.cs 10 7 Xbox 360 Copy of ChuDynasty
Error 12 The type or namespace name 'GarageGames' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\PlayerMovementComponent.cs 11 7 Xbox 360 Copy of ChuDynasty
Error 13 The type or namespace name 'TorqueComponent' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\PlayerMovementComponent.cs 18 44 Xbox 360 Copy of ChuDynasty
Error 14 The type or namespace name 'ITickObject' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\PlayerMovementComponent.cs 18 61 Xbox 360 Copy of ChuDynasty
Error 15 The type or namespace name 'GarageGames' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\CameraController.cs 7 7 Xbox 360 Copy of ChuDynasty
Error 16 The type or namespace name 'GarageGames' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\CameraController.cs 8 7 Xbox 360 Copy of ChuDynasty
Error 17 The type or namespace name 'GarageGames' could not be found (are you missing a using directive or an assembly reference?) F:\ChuDynastyXBox\ChuDynastyXBox\Game\CameraController.cs 9 7 Xbox 360 Copy of ChuDynasty
ect....
#3
09/15/2008 (1:19 am)
Ahh, Pro version... Did you also create the Xbox 360 Project for the "Torque" project too? If your Solution Explorer has "Game" and "Torque", then you should end up with "Game", "Torque", "Xbox Copy of Game", and "Xbox Copy of Torque".

John K.
#4
09/15/2008 (7:36 am)
I did the first time it failed yesterday but I also had the Windows version set to build. I'll try it again tonight this time I will:

Copy the engine and the game

Make sure the Xbox copy of torque and xbox copy of game are both set to build and deploy on Release

Make sure the Windows versions are not checked.

I'll let you know what happens :).
#5
09/15/2008 (5:33 pm)
Hi John I tried what you said but got the same results. Sorry i wish this was working.

I know you said above to copy the engine files and I tried that but I was wondering. In your book you say:

"Create Copy of Project for Xbox 360... ,as shown in Figure 18.5 TorqueX Pro licensees should only perform the task on the Game project. The engine project will automatically be detected as a dependency and be properly converted"

Is there some setting I need to set to make The exporter See the engine dependency. Judging by the errors the builder is having trouble finding the xbox engine files.

If I do copy the Torque engine files and rightclick and rebuild just the engine files it tells me the build succeded though it gives me this error: "The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration ='Release' Platform = 'Xbox 360'

My configuration manager is set up to look exactly like figure 18.6 in your book.

Thanks for the help.

On a side note your book has been a huge help in understanding the Torque framework. I feel pretty confident that I understand the fundamentals of how torque x is put together. It was a really good buy. :)

Thanks for the help.

Now If I can just get it to deploy lol.
#6
09/17/2008 (6:08 pm)
I tried building the game with a base startup 2d game and failed as well. I don't think this has anything to do with the xbox connection as I shouldn't even need to be connected to build, if I'm right.

It just can't find the engine files.

I've went though the directions above and the directions in the book line by line several times now with no luck..

I feel like I'm clicking the wrong Rebuild Solution or something crazy. Has anyone experienced this before?
#7
09/17/2008 (6:44 pm)
Hey Matt -

I can probably help out - I have not had the same issues -
but I can probably help get you set up.

Are you able to compile in win just fine?
#8
09/18/2008 (8:52 am)
Yes sir. I can compile and build in win perfectly. Once I switch to xbox I get the errors above.

Thanks!
#9
09/18/2008 (10:44 am)
Have you tried to open and compile some of the sample ones?

Can you double click on the following error:
The type or namespace name 'GarageGames'
and paste the line here - either you are using a method incorrectly - or you have not included that namespace.

The warnings should nto matter.

Sean
#10
09/18/2008 (4:30 pm)
The Sample games don't compile on xbox either. They give me the same errors. :(

Looking at all 150 errors it seams that whenever I switch to an xbox build it can't find any of the engine files and errors on all calls to classes in the engine.

I'm at work now I'll paste in that code when I get home. Thanks!
#11
09/18/2008 (5:16 pm)
Double clicking on that assert brought me to this line:

using GarageGames.Torque.Core;
#12
09/18/2008 (7:00 pm)
Matt -

We will get you working - easy fix.

You are just missing the "Torque" reference in your xbox game project
under the folder - "Xbox 360 copy of blah" expand references.
right click and add reference.
Go to Projects Tab - and select Xbox Copy of Torque.
(this is if you have pro and the torque project in there).
Right Click and Build!

That should get you set.

Sean
#13
09/18/2008 (7:13 pm)
One thing to note:

In config manager -
Should have 4 projects
Your WinGame
Your Torque Project
Your Copy of WinGame
Your Copy of Torque Project.

Should have the following settings for Debug x86
Game, Debug, x86, check build, nocheck deploy
Torque, Debug, x86, check build, nocheck deploy
Xbox Copy of Game, Release, Xbox 360. Nocheck build, NoCheck Deploy
Xbox Copy of Torque, Release, Xbox 360. Nocheck build, NoCheck Deploy

Shoud have the following settings for Debug Xbox 360
Game, Debug, x86, nocheck build, nocheck deploy
Torque, Debug, x86, nocheck build, nocheck deploy
Xbox Copy of Game, Release, Xbox 360. check build, Check Deploy
Xbox Copy of Torque, Release, Xbox 360. check build, NoCheck Deploy
#14
09/18/2008 (8:21 pm)
You rock my world. It worked!!!!!!

Thanks so much. I knew it was something simple. I was a pro FX artist and I'm relitivly new to the code side of things so I don't always know what to look for.

I did run into a strange problem the first time I built it failed. and said it couldn't find the

F:\ChuDynastyXBox\ChuDynastyXBox\Torque\bin\Xbox 360\Torque .dll

and it didn't know what .Exit was in this block of code

#if !XBOX
if (_exitOnFailedLoad)
System.Environment.Exit(GameExitCodes.SceneLoaderError); // this is here so that TXB knows we failed due to a content load problem


To fix it I just shutdown XNA opened a starter game and torque x builder and deployed that starter game. then I reopened my actual project and it deployed without error!

Do you know why it couldn't find the .dll files to start with? just so if happens again I know what to look for. If not no big deal it works now! :)

Thanks a ton. I owe you one.
#15
09/19/2008 (2:38 am)
The Torque.dll is the second project, and it probably was just not built when you tried to run your game.
I typically build the Torque (this is for pro users) project, and then build my game.

and no worries -that is what the community is here for!