Error Code 4
by John Bura · in Torque X 2D · 06/06/2010 (6:47 pm) · 14 replies
Hi there,
I tried to deploy my game to my Xbox. When I went to play the games it generated an Error Code 4. Im not exactly sure what that is. The game runs perfectly fine on my PC. Has anybody encountered this?
EDIT
So I have been using the Torque X starter kit made by Henry. And I have to say this starter kit is amazing. Although I just tried to run it on my XBox and it didn't work.
Perhaps I didn't get an update for the Xbox.
I tried to deploy my game to my Xbox. When I went to play the games it generated an Error Code 4. Im not exactly sure what that is. The game runs perfectly fine on my PC. Has anybody encountered this?
EDIT
So I have been using the Torque X starter kit made by Henry. And I have to say this starter kit is amazing. Although I just tried to run it on my XBox and it didn't work.
Perhaps I didn't get an update for the Xbox.
#2
06/06/2010 (9:20 pm)
Awesome. I must have missed a step Where do I enable the torque 2D and the torque Core?
#3
I don't get you?
First it does compile and deploy right?
In the Solution Explorer Right Click on the Xbox Game and select Debug > Start new Instance, you may get some error message back that helps you understand whats wrong. It took me a while the first times as well.
Second open the configuration manager and make it look like the picture, then pull down the menu on the right and make certain that the platform, build and deploy are correct for each configuration, that is that no x86 binaries are getting linked in the xbox and vice versa.
06/06/2010 (9:27 pm)
????I don't get you?
First it does compile and deploy right?
In the Solution Explorer Right Click on the Xbox Game and select Debug > Start new Instance, you may get some error message back that helps you understand whats wrong. It took me a while the first times as well.
Second open the configuration manager and make it look like the picture, then pull down the menu on the right and make certain that the platform, build and deploy are correct for each configuration, that is that no x86 binaries are getting linked in the xbox and vice versa.
#4
Do I have to add those to the GameKitTest Project?
06/06/2010 (9:34 pm)
When I go to the configuration manager All I have is Gmae and XBox 360 Game. Torque 2D torque Core Xbox360torque2d and Xbox360torqueCore are not there.Do I have to add those to the GameKitTest Project?
#5

You make copies of everything, just like you made an xbox360 copy of game, do the same for Torque2D and TorqueCore.
06/06/2010 (9:40 pm)
Yeas it should look like this:
You make copies of everything, just like you made an xbox360 copy of game, do the same for Torque2D and TorqueCore.
#6
rightclick on the Xbox360Game, select Add Reference.
Click the browse tab
browse to C:/Program Files/Common Files/GarageGames/TorqueX/v3.1.4.0/References/Xbox360
Add both files GarageGames.TorqueX.Framework2D.dll and GarageGames.TorqueX.Framework.dll
That should do it
If you have TX with the source why don't you just make a new project and add in the files from the game kit?
06/06/2010 (10:09 pm)
Ohh wait I build those to use the binaries so that the CC edition would work. rightclick on the Xbox360Game, select Add Reference.
Click the browse tab
browse to C:/Program Files/Common Files/GarageGames/TorqueX/v3.1.4.0/References/Xbox360
Add both files GarageGames.TorqueX.Framework2D.dll and GarageGames.TorqueX.Framework.dll
That should do it
If you have TX with the source why don't you just make a new project and add in the files from the game kit?
#7
Perhaps I haven't set up my project right from the beginning?
06/07/2010 (7:20 am)
I added the Torque 2D and then TorqueCore Manually. But When I Tried To build I got 591 errors. LOL.Perhaps I haven't set up my project right from the beginning?
#8
Then you can learn how to set up a project correctly from the start ;)
BTW Drag the folders from the window to the Solution explorer, drop them on the Game.
06/07/2010 (2:37 pm)
Hey John, why don't you make a new project, Then you can drag the gamekit folder to the project, and even replace the game.cs and GUI files with the files from the kit. I only did the binary thing because of the CC version. Then you can learn how to set up a project correctly from the start ;)
BTW Drag the folders from the window to the Solution explorer, drop them on the Game.
#9
Right click on your xbox game, and do "Debug->Start New Instance" that should clear things up right away as to just what the Code 4 is being attributed to.
06/07/2010 (5:29 pm)
@John Bura, you should be giving more info then just a Code 4, I believe. I think what the problem is you are not "Debuging" on the x-box, just deploying, finding your game, and running it, am I right? Right click on your xbox game, and do "Debug->Start New Instance" that should clear things up right away as to just what the Code 4 is being attributed to.
#10
There is no source code for the current location.
Also When I try and build there are about 8 of these kinds of error messages
Error 1 'GarageGames.Torque.T2D.T2DSceneObject.Dispose()': no suitable method found to override E:\My Documents\TorqueXProjects\CircleShooter\CircleShooter\Torque2D\T2D\T2DSceneObject.cs 1631 30 Xbox 360 Copy of Torque2D
06/08/2010 (8:05 am)
If I go Debug -> Start New Instance on my xbox 360 copy of game. The game works but when I try to load a level it says:There is no source code for the current location.
Also When I try and build there are about 8 of these kinds of error messages
Error 1 'GarageGames.Torque.T2D.T2DSceneObject.Dispose()': no suitable method found to override E:\My Documents\TorqueXProjects\CircleShooter\CircleShooter\Torque2D\T2D\T2DSceneObject.cs 1631 30 Xbox 360 Copy of Torque2D
#11
edit: specifically, that would mean right clicking, and opening properties, and using the drop down to select "content" and the other to select "copy if newer" anyways, if thats the thing I'm thinking of, it sounds like you added a txscene file, always need to set those if thats so.
06/08/2010 (7:21 pm)
hmmm, possibly check to make sure your txscene files property's are all set to "content" and "copy if newer".edit: specifically, that would mean right clicking, and opening properties, and using the drop down to select "content" and the other to select "copy if newer" anyways, if thats the thing I'm thinking of, it sounds like you added a txscene file, always need to set those if thats so.
#12
I am so close to getting this thing to work. Im just getting these error messages
Error 357 'GarageGames.Torque.T2D.T2DPhysicsComponent.Dispose()': no suitable method found to override
Has anybody encountered this?
06/09/2010 (7:23 am)
@ Will they were already set to copy if newer. Thanks for the advice I will use it for future reference.I am so close to getting this thing to work. Im just getting these error messages
Error 357 'GarageGames.Torque.T2D.T2DPhysicsComponent.Dispose()': no suitable method found to override
Has anybody encountered this?
#13
06/09/2010 (10:55 am)
That sounds like back to the project references thing. Make sure you not only set the references in your "Game" but also in "TX2D" since that uses the "core" luckly, the core does not use TX2D, so you don't need to reference that, but the TX2D should reference the core.
#14
When I add the GarageGames.TorqueX.Framework and GarageGames.TorqueX.Framework2D to the XBOX game, It gives me 366 of these error messages.
Error 1 The type 'GarageGames.Torque.Core.TorqueComponent' exists in both 'e:\My Documents\TorqueXProjects\XBOXTest\XBOXTest\TorqueCore\bin\Xbox 360\Debug\TorqueCore.dll' and 'c:\Program Files\Common Files\GarageGames\Torque X\v3.1.4.0\References\Xbox 360\GarageGames.TorqueX.Framework.dll' E:\My Documents\TorqueXProjects\XBOXTest\XBOXTest\Game\GameKit\gameplay\gp_DealsDamage.cs 40 35 Xbox 360 Copy of Game
If I don't put that there, the errors go away but when I try and run a level it says there is no source code at this location.
06/09/2010 (8:09 pm)
Thanks for the advice and patience.When I add the GarageGames.TorqueX.Framework and GarageGames.TorqueX.Framework2D to the XBOX game, It gives me 366 of these error messages.
Error 1 The type 'GarageGames.Torque.Core.TorqueComponent' exists in both 'e:\My Documents\TorqueXProjects\XBOXTest\XBOXTest\TorqueCore\bin\Xbox 360\Debug\TorqueCore.dll' and 'c:\Program Files\Common Files\GarageGames\Torque X\v3.1.4.0\References\Xbox 360\GarageGames.TorqueX.Framework.dll' E:\My Documents\TorqueXProjects\XBOXTest\XBOXTest\Game\GameKit\gameplay\gp_DealsDamage.cs 40 35 Xbox 360 Copy of Game
If I don't put that there, the errors go away but when I try and run a level it says there is no source code at this location.
Torque 3D Owner Henry Shilling
Smokin Skull
At the top next to the green arrow for run where it says debug etc click that and pick the configuration manager.
in there make certain that the all the configs are correct. That the x86 and the xbox 360 things are all in order for all the platforms. TorqueCore for some reason often gets reversed with the 360 version.