Game Development Community

Tse Head Issue

by Jonathan Wood · in Torque Game Engine · 08/26/2006 (7:50 am) · 4 replies

I purchased this last night, did the full instructions to setup my VC8, compiled, and then when trying to run the SDK it says it can't find main.cs and exits.

I have my Visual Studio 2005 C++ configured according to the instructions, the direct x sdk I am using is June of 2006.

I get alot of these warnings:
12>c:\tse\lib\libqslim\mixmsg.cxx(79) : warning C4996: 'vsprintf' was declared deprecated
12> c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'vsprintf'
12> Message: 'This function or variable may be unsafe. Consider using vsprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
12>MxBlockModel.cxx
12>c:\tse\lib\libqslim\mxblockmodel.cxx(135) : warning C4996: 'strdup' was declared deprecated
12> c:\program files\microsoft visual studio 8\vc\include\string.h(205) : see declaration of 'strdup'
12> Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'

13>c:\program files\microsoft directx sdk (june 2006)\include\strsafe.h(5595) : warning C4996: '_vsnprintf' was declared deprecated
13> c:\program files\microsoft visual studio 8\vc\include\stdio.h(339) : see declaration of '_vsnprintf'
13> Message: 'This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'

Some other issues during the build include:
13>c:\tse\engine\gfx\d3d\gfxd3ddevice.cpp(35) : warning C4482: nonstandard extension used: enum 'GFXVertexColor::ColorOrdering' used in qualified name

13>LINK : ../example/TSE_DEBUG.exe not found or not built by the last incremental link; performing full link

13>Embedding manifest...
13>Creating browse information file...
13>Microsoft Browse Information Maintenance Utility Version 8.00.50727
13>Copyright (C) Microsoft Corporation. All rights reserved.
13>Build log was saved at "file://c:\tse\engine\out.vc8.win32.debug\BuildLog.htm"
13>Torque Shader Engine - 0 error(s), 6 warning(s)
========== Rebuild All: 6 succeeded, 0 failed, 7 skipped ==========

I can post up my build log and link it if need be, but the TSE SDK won't compile.
Which version of Microsoft SDK is this thing built for? From this it is apparent that June 2006 is the wrong version.

#1
08/26/2006 (8:03 am)
Those warnings are normal. They will go away with your second build.

What you need to do to get it to debug, is set your working directory in the project settings.

Do this by opening your project, Right click on "Torque Demo" in your solution explorer pane on the left hand side of the screen by default, and then, the property box comes up.

Set the configuration in the configuration drop down box to release, and go to Configuration Properties -> Debugging in the tree view on the left of the window. Then find the working directory box in the pane to the right. Set it to "../example". Then select the debug configuration and do the same.

Recompile and you're ready to go.

-Griff
#2
08/26/2006 (8:05 am)
TSE FAQ section

Quote:
Some people will use VS to compile, then run Torque; I am quite addicted to CTRL F5. However, when doing this with the torque project, you may get an error that says "Unable to open main.cs". The reason is that the IDE starts Torque in with the wrong working directory (often the same place as the .vcproj file), rather than the example director, where the main.cs file is. To fix this, follow the steps below:

1. Open the Torque SDK.sln
2. Right click on Torque Demo and select properties
3. Choose Debugging.
4. Find working directory field, and insert the path to where the executable is running from and needs to find the files it depends on. E.g. ..\example for the default Torque setup.

I don't even own TSE and I was able to dig that up. Search is your friend =)
#3
08/26/2006 (9:07 am)
Thanks to both of you.
#4
08/26/2006 (9:10 am)
Now to just figure out the TSE on how to get to the ingame editor like TGE.
TSE is totally new to me, just have to figure it out.