[Solved] References Errors When Creating Xbox Pro Project
by Bryant Drew Jones · in Torque X 2D · 02/02/2010 (8:06 pm) · 8 replies
I'm trying to create an Xbox copy of the Torque X Simple 2D Pro game and I'm getting a ton of missing references errors. I right clicked on each of the Windows projects in my solution -- Game, TorqueCore, and Torque2D -- and selected "Create Copy of Project for Xbox 360." The Game references are fine, but there are little yellow exclamation marks next to all of the XNA and System references attached to TorqueCore and Torque2D. Even stranger, if I try to remove and re-add all of the references, I get the same problem.
Has anyone seen this issue before? What's the right way to create an Xbox project?
Thanks for the help :)
Has anyone seen this issue before? What's the right way to create an Xbox project?
Thanks for the help :)
About the author
www.SpryBry.com :)
#2
from there the only references that should have the exclamiation mark should be system.data which I don't believe is available on the 360.
02/03/2010 (2:10 pm)
You should only have to create a 360 project from your Game and visual studio should create 360 projects for TorqueCore and Torque2D automaticly which will also create the proper references.from there the only references that should have the exclamiation mark should be system.data which I don't believe is available on the 360.
#3
@Scott: That's what I expected Visual Studio to do, yes. My project dependencies are set up correctly (Windows Game depends on Torque 2D and Torque Core; Windows Torque 2D depends on Torque Core), as is the build order. But when I created a 360 project from my Game, Visual Studio failed to automatically create 360 projects for the Torque dependencies. Manually creating 360 projects from the Torque code leads to these missing references that I'm experiencing.
@Henry: All of the references are missing for the manually created 360 copy of Torque Core. Torque 2D, on the other hand, is missing all of the Content references, System.Data, and System.Drawing.
Any ideas? Is my installation screwed up? I certainly didn't expect to have problems creating an Xbox project after purchasing an Xbox engine :)
02/03/2010 (2:24 pm)
Thank you for your quick responses, Henry and Scott.@Scott: That's what I expected Visual Studio to do, yes. My project dependencies are set up correctly (Windows Game depends on Torque 2D and Torque Core; Windows Torque 2D depends on Torque Core), as is the build order. But when I created a 360 project from my Game, Visual Studio failed to automatically create 360 projects for the Torque dependencies. Manually creating 360 projects from the Torque code leads to these missing references that I'm experiencing.
@Henry: All of the references are missing for the manually created 360 copy of Torque Core. Torque 2D, on the other hand, is missing all of the Content references, System.Data, and System.Drawing.
Any ideas? Is my installation screwed up? I certainly didn't expect to have problems creating an Xbox project after purchasing an Xbox engine :)
#4
************** Exception Text **************
System.Exception: Cannot read solution file, unknown format version
at XboxProjectGenerator.Program.GenerateFromSolution(String solution)
at XboxProjectGenerator.Program.RunFromCurrentProjectDir()
at XboxProjectGenerator.Form1.button2_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
What else can I try....
02/03/2010 (2:47 pm)
I just tried using the XboxProjectGenerator under C:\Program Files\GarageGames\Torque X 2D Pro\v3.1.4.0\TXB\TXTools. It failed :) The Browse button didn't work, so I manually typed in the path to my solution file. When I hit generate I got the following error:************** Exception Text **************
System.Exception: Cannot read solution file, unknown format version
at XboxProjectGenerator.Program.GenerateFromSolution(String solution)
at XboxProjectGenerator.Program.RunFromCurrentProjectDir()
at XboxProjectGenerator.Form1.button2_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
What else can I try....
#5
I still don't know why Visual Studio didn't automatically create the 360 projects for me, but here's how I got all the references working nicely:
1. Create a Simple 2D Pro project
2. Manually create Xbox projects for Game, TorqueCore, and Torque2D
3. At this point Visual Studio complains about the references for the Xbox copies of TorqueCore and Torque2D. To make that go away, rebuild Xbox TorqueCore. TorqueCore might still complain about missing System.* references. Delete those. Like Scott said, some of the System dlls aren't available on Xbox.
4. Add the newly built Xbox TorqueCore reference to Xbox Torque2D. Rebuild Torque2D and remove any System references that it complains about.
5. Add the newly built Xbox TorqueCore and Torque2D references to Xbox Game. Rebuild Game.
6. Set the Project Dependencies (under Project >> Project Dependencies) to match the Windows dependencies. Xbox Game requires Xbox TorqueCore and Torque2D. Xbox Torque2D requires Xbox TorqueCore.
I hope that makes sense. Thank you all for your help.
02/03/2010 (4:18 pm)
Success!I still don't know why Visual Studio didn't automatically create the 360 projects for me, but here's how I got all the references working nicely:
1. Create a Simple 2D Pro project
2. Manually create Xbox projects for Game, TorqueCore, and Torque2D
3. At this point Visual Studio complains about the references for the Xbox copies of TorqueCore and Torque2D. To make that go away, rebuild Xbox TorqueCore. TorqueCore might still complain about missing System.* references. Delete those. Like Scott said, some of the System dlls aren't available on Xbox.
4. Add the newly built Xbox TorqueCore reference to Xbox Torque2D. Rebuild Torque2D and remove any System references that it complains about.
5. Add the newly built Xbox TorqueCore and Torque2D references to Xbox Game. Rebuild Game.
6. Set the Project Dependencies (under Project >> Project Dependencies) to match the Windows dependencies. Xbox Game requires Xbox TorqueCore and Torque2D. Xbox Torque2D requires Xbox TorqueCore.
I hope that makes sense. Thank you all for your help.
#6
02/03/2010 (4:49 pm)
To get VS to generate a 360 project right click on your project in the solution explorer and select 'Create copy of project for xbo 360'.
#7
It's fine now, though :)
02/03/2010 (4:54 pm)
I did that, yes, and it created an Xbox version of my Game project just fine. It didn't however, automatically create Xbox versions of the TorqueCore and Torque2D projects, which (I guess) is what's supposed to happen. When I manually created Xbox versions of the Torque projects, all of the references got screwed up.It's fine now, though :)
#8
04/15/2010 (6:46 pm)
Thanks, I followed your instructions and got my game to work on xbox. Maybe it is an installation issue.
Torque 3D Owner Henry Shilling
Smokin Skull
say. I have not had any issues removing them so far .
Do all of the references have them? Or is it just some of them?