Project Loading problems-can't get rid of warnings
by Iml_sg · in Torque X 2D · 12/11/2008 (8:44 am) · 13 replies
Hi, guys, I am a beginner in using Torque X. I just got warnings when I was creating and building new "Starter Game 2D (2.0) Pro" project in C#, the content of the warnings is listed below:
Warning 1 The file 'Game.txproj' could not be added to the project. A file with the same path already exists in the project. Game
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 Field 'GarageGames.Torque.SceneGraph.SceneRenderState._isStencilPass' is never assigned to, and will always have its default value false C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\SceneGraph\SceneGraph.cs 260 23 Torque
Warning 7 Warning compiling C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\EngineData\effects\LightingEffect2D.fx: warning X4707: texcoord inputs used directly (that is, other than sampling from textures) in shader body in ps_1_1 are always clamped from 0 to 1 C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\EngineData\effects\LightingEffect2D.fx 168 1 Torque
Warning 8 Warning compiling C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\EngineData\effects\LightingEffect3D.fx: warning X4707: texcoord inputs used directly (that is, other than sampling from textures) in shader body in ps_1_1 are always clamped from 0 to 1 C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\EngineData\effects\LightingEffect3D.fx 187 1 Torque
I installed XNA 2.0, c#2005 express edition+sp1+sp1 update for vista and Torque X pro 2.0 all in the c: drive.
The operating system is vista.
Really need help. Can anyone know how to deal with the problem kindly teach me how fix it? Thanks in advance!
Warning 1 The file 'Game.txproj' could not be added to the project. A file with the same path already exists in the project. Game
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 Field 'GarageGames.Torque.SceneGraph.SceneRenderState._isStencilPass' is never assigned to, and will always have its default value false C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\SceneGraph\SceneGraph.cs 260 23 Torque
Warning 7 Warning compiling C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\EngineData\effects\LightingEffect2D.fx: warning X4707: texcoord inputs used directly (that is, other than sampling from textures) in shader body in ps_1_1 are always clamped from 0 to 1 C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\EngineData\effects\LightingEffect2D.fx 168 1 Torque
Warning 8 Warning compiling C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\EngineData\effects\LightingEffect3D.fx: warning X4707: texcoord inputs used directly (that is, other than sampling from textures) in shader body in ps_1_1 are always clamped from 0 to 1 C:\Users\iml\Documents\Visual Studio 2005\Projects\Starter Game 2D (2.0) Pro1\Starter Game 2D (2.0) Pro1\Torque\EngineData\effects\LightingEffect3D.fx 187 1 Torque
I installed XNA 2.0, c#2005 express edition+sp1+sp1 update for vista and Torque X pro 2.0 all in the c: drive.
The operating system is vista.
Really need help. Can anyone know how to deal with the problem kindly teach me how fix it? Thanks in advance!
#2
Delete the second one out, and it should be ok. The Torque issues are in the Torque.csproj is my guess. Ill check it out.
12/11/2008 (12:16 pm)
If you look in your Game.csproj, you will find two references to game:<ItemGroup>
<None Include="Game.txproj">
<XNAUseContentPipeline>false</XNAUseContentPipeline>
<Name>Game</Name>
</None>
</ItemGroup>and<ItemGroup>
<None Include="Game.txproj">
<Name>Game</Name>
</None>
</ItemGroup>Delete the second one out, and it should be ok. The Torque issues are in the Torque.csproj is my guess. Ill check it out.
#3
12/11/2008 (6:49 pm)
Sorry for bothering you again, David, but what did you mean by "look in your Game.csproj"? Game.csproj is a project file. If I click it, the system will open the Game project also, and if I search "ItemGroup", there will be no match. Can you please explain how to find these two references in detail?
#4
12/11/2008 (8:46 pm)
I think it is because of the vista. This morning I installed the torque x on a computer with XP and successed without any warnings
#5
12/11/2008 (8:57 pm)
It seems I can use TXB to do simple drag and drop things even with building warnings in c# in vista. I am wondering whether I will encounter further bigger problems which will lead to building failures if I have to build more complex project in vista?
#6
12/11/2008 (9:17 pm)
You can find the game.csproj (Its just an xml file)file in your project folder. Any text editor should suffice. As for the other engine warnings. The errors look like maybe a msbuild issue, not sure, still checking it out. I did notice some odd things in the solution file as well.
#7
12/11/2008 (9:35 pm)
Well, It looks like it is related to the GGBinaryRelease configuration. Once it is taken out from the torque project file, all the warnings dissapear other than an initialization issue with _isStencilpass, which if you have the code can set yourself. Not sure what impact it has though taking that out, since I use the debug configuration while developing. Anyone know why they would select something to be a GGBinaryRelease as opposed to a regular release? Licensing maybe?
#8
There is only a xml file named torqueSettings.xml in the Game folder. I can't find game.csproj.xml through searching...version issue?
12/11/2008 (10:45 pm)
No. I think it is a c# project file under the Game folder.There is only a xml file named torqueSettings.xml in the Game folder. I can't find game.csproj.xml through searching...version issue?
#9
12/11/2008 (11:18 pm)
In your project folder, mine is called game, there is a file called game.csproj, that is your project definition file. It is a MSbuild file if I recall, and can be opened by any text editor The format inside the file is xml, but it itself does not have a .xml extension.
#10
12/12/2008 (2:35 am)
Sorry, I am confused. There are two folders under the project folder: Game and Torque, right? In the Game folder, there are subfolders like bin, data, blabla.... at the same place there are files, I give you their names: Game.cs, Game.csproj (which is definately a Visual c# project file), Game.ico, Game.txproj (which is a TXPROJ file), MovementComponent.cs, myschema.txschema, torqueSettings.xml and no more other files. I can't find the game.csproj with MSbuild file type, really.
#11
12/12/2008 (9:54 am)
The Game.csproj is your msbuild file. Run notepad, and open up game.csproj. You can do the same for torque.cspoj if you are a pro user.
#12
12/12/2008 (6:43 pm)
Yeah, it worked. thanks a lot. Have you figured out how to modify torque.csproj?
#13
that has "
12/12/2008 (7:56 pm)
Yeah, you have to remove any reference to the GGBinaryReleaseConfiguration in the torque.csproj. Any
Torque Owner Zilla
www.garagegames.com/mg/forums/result.thread.php?qt=80055
www.garagegames.com/mg/forums/result.thread.php?qt=80056