Game Development Community

Problem with Running T2D.exe

by game4Rest · in Torque Game Builder · 12/18/2005 (5:09 pm) · 14 replies

Hi all,

I apologize if i'm asking too simple question.

I installed Torque2DSDK_1_0_2 yesterday afternoon. And tried to run T2D.exe in sample folder. I simply double clicked it. But nothing happened. No window appeared.

I also tried to run with VC++ 6.0. When I hit F5 to run T2D SDK.dsw, it just gave me the asem code, no demo window. Do I forget something? I tried to find the answer in the document given. But I could not find the
answer.

Please, help me.

Thanks in advance.

Hong Jin

#1
12/18/2005 (5:25 pm)
To see the samples run, try to run the batch files instead: runshooter.bat or runfish.bat. The way that T2D.exe is set up in the example folder, it does nothing by itself, you need to tell it "what to run."

Regarding VC 6.0, I'm not sure what you mean? Did you build the Debug project? You have to build all of the subprojects too. The resulting built files will exist in the example folder and once again, you need the right command line params to tell T2D what to load.

You aren't tied to this behavior, btw. It's just that the way that the example folder is set up, the main.cs file in there requires command line parameters. If you want your game to behave differently, rewrite the main.cs to do something different.

Hope this helps.
#2
12/18/2005 (6:34 pm)
If you run T2D.exe without parameters, It should give you a basic T2D window. I think it's strange if it does nothing at all.
Hong Jin, Could you please give us more info? What's your hardware info, vga card, driver, OS etc. If you see a file console.log, grab the file contents and post it here. We can help you if we had more informations to examine the problem.
#3
12/18/2005 (7:03 pm)
To make it clear, the problem is that I can not see anything when I try to run T2D.exe.

My hardware Info:

CPU : AMD athlon 1.1G
VGA : NVIDIA GeForce FX 6600
OS : Window XP Pro
Memory : 512 RAM

And in the log file, I found "Missing file: common/client/defaults.cs!
Missing file: common/client/client/prefs.cs!" as you see below. Two files are called
in the main.cs in T2D folder. I checked if those files are. And .cs files "defaults" and
"prefs" exist in the designated folder. The truth is that I didn't change anything
after installing T2DSDK.

If it can be a hint, I'm using Brain Editor to debug .cs files.

Here is my log. As it is too long I copied the first part.

//-------------------------- 12/18/2005 -- 17:45:01 -----
Processor Init:
AMD Athlon, ~1.10 Ghz
(timed at roughly 1.11 Ghz)
FPU detected
MMX detected
3DNow detected
SSE detected

Math Init:
Installing Standard C extensions
Installing Assembly extensions
Installing FPU extensions
Installing MMX extensions
Installing 3DNow extensions
Installing SSE extensions

Input Init:
keyboard0 input device created.
mouse0 input device created.
DirectInput enabled.

--------- Loading MODS ---------
Loading compiled script T2D/main.cs.
Loading compiled script common/main.cs.
Loading compiled script T2D/defaults.cs.
Loading compiled script T2D/client/prefs.cs.
Loading compiled script tileeditor/main.cs.
Loading compiled script tileeditor/defaults.cs.
Loading compiled script tileeditor/client/prefs.cs.
Loading compiled script particleeditor/main.cs.
Loading compiled script particleeditor/defaults.cs.
Loading compiled script particleeditor/client/prefs.cs.

--------- Parsing Arguments ---------

--------- Initializing MOD: Common ---------
Loading compiled script common/client/canvas.cs.
Loading compiled script common/client/audio.cs.

--------- Initializing MOD: T2D ---------
Loading compiled script T2D/client/client.cs.
Loading compiled script common/client/message.cs.
Loading compiled script common/client/mission.cs.
Loading compiled script common/client/missionDownload.cs.
Loading compiled script common/client/actionMap.cs.
Loading compiled script common/main.cs.
Missing file: common/client/defaults.cs!
Missing file: common/client/client/prefs.cs!
--------- Loading MODS ---------
Loading compiled script T2D/main.cs.
Loading compiled script common/main.cs.
Loading compiled script T2D/defaults.cs.
Loading compiled script T2D/client/prefs.cs.
Loading compiled script tileeditor/main.cs.
Loading compiled script tileeditor/defaults.cs.
Loading compiled script tileeditor/client/prefs.cs.
Loading compiled script particleeditor/main.cs.
Loading compiled script particleeditor/defaults.cs.
Loading compiled script particleeditor/client/prefs.cs.

--------- Parsing Arguments ---------

--------- Initializing MOD: Common ---------
Loading compiled script common/client/canvas.cs.
Loading compiled script common/client/audio.cs.

--------- Initializing MOD: T2D ---------
Loading compiled script T2D/client/client.cs.
Loading compiled script common/client/message.cs.
Loading compiled script common/client/mission.cs.
Loading compiled script common/client/missionDownload.cs.
Loading compiled script common/client/actionMap.cs.
Loading compiled script common/main.cs.
Missing file: common/client/defaults.cs!
Missing file: common/client/client/prefs.cs!
--------- Loading MODS ---------
Loading compiled script T2D/main.cs.
Loading compiled script common/main.cs.
Loading compiled script T2D/defaults.cs.
Loading compiled script T2D/client/prefs.cs.
Loading compiled script tileeditor/main.cs.
Loading compiled script tileeditor/defaults.cs.
Loading compiled script tileeditor/client/prefs.cs.
Loading compiled script particleeditor/main.cs.
Loading compiled script particleeditor/defaults.cs.
Loading compiled script particleeditor/client/prefs.cs.

--------- Parsing Arguments ---------

--------- Initializing MOD: Common ---------
Loading compiled script common/client/canvas.cs.
Loading compiled script common/client/audio.cs.

--------- Initializing MOD: T2D ---------
Loading compiled script T2D/client/client.cs.
Loading compiled script common/client/message.cs.
Loading compiled script common/client/mission.cs.
Loading compiled script common/client/missionDownload.cs.
Loading compiled script common/client/actionMap.cs.
Loading compiled script common/main.cs.
Missing file: common/client/defaults.cs!
Missing file: common/client/client/prefs.cs!
--------- Loading MODS ---------
Loading compiled script T2D/main.cs.
Loading compiled script common/main.cs.
Loading compiled script T2D/defaults.cs.
Loading compiled script T2D/client/prefs.cs.
Loading compiled script tileeditor/main.cs.
Loading compiled script tileeditor/defaults.cs.
Loading compiled script tileeditor/client/prefs.cs.
Loading compiled script particleeditor/main.cs.
Loading compiled script particleeditor/defaults.cs.
Loading compiled script particleeditor/client/prefs.cs.

--------- Parsing Arguments ---------

--------- Initializing MOD: Common ---------
Loading compiled script common/client/canvas.cs.
Loading compiled script common/client/audio.cs.

--------- Initializing MOD: T2D ---------
Loading compiled script T2D/client/client.cs.
Loading compiled script common/client/message.cs.
Loading compiled script common/client/mission.cs.
Loading compiled script common/client/missionDownload.cs.
Loading compiled script common/client/actionMap.cs.
Loading compiled script common/main.cs.
Missing file: common/client/defaults.cs!
Missing file: common/client/client/prefs.cs!
--------- Loading MODS ---------
Loading compiled script T2D/main.cs.
Loading compiled script common/main.cs.
Loading compiled script T2D/defaults.cs.
Loading compiled script T2D/client/prefs.cs.
Loading compiled script tileeditor/main.cs.
Loading compiled script tileeditor/defaults.cs.
Loading compiled script tileeditor/client/prefs.cs.
Loading compiled script particleeditor/main.cs.
Loading compiled script particleeditor/defaults.cs.
Loading compiled script particleeditor/client/prefs.cs.

--------- Parsing Arguments ---------

--------- Initializing MOD: Common ---------
Loading compiled script common/client/canvas.cs.
Loading compiled script common/client/audio.cs.
#4
12/18/2005 (9:19 pm)
I tried it on another computer. And it was successful to run. I think I have some problem with my computer.
I'm going to format mine. And see if it has still same problem.
#5
12/18/2005 (10:34 pm)
Hmm.. that's strange. I don't know the reasons why the script is run in loops. As you see
--------- Parsing Arguments ---------
--------- Initializing MOD: Common ---------
and then
--------- Parsing Arguments ---------
--------- Initializing MOD: Common ---------

again and again...

Sorry, I can't help with this.
#6
12/18/2005 (11:18 pm)
Umm.....
I finally got my computer formatted. And I made a success to see the white window with Torque log by
running T2D.exe.
But why? I can only suppose there could be some mixed-up in my computer. But I think I have to go
forward now, stop thinking about it which is beyond my capacity.

Anyway, thank you all.

Hong Jin
#7
12/18/2005 (11:25 pm)
Very strange indeed. It is the very first time I have seen the script running in loops.

Without changing the default scripts, I have absolutely no idea how this could happen. I certainly don't think it warrants a reinstall of your computer.

It might be worth you downloading the latest alpha#1 release (on your product download page), unzip it and see if it runs.

- Melv.
#8
12/19/2005 (5:44 pm)
Dear Melv,

After Hard drive format and reinstalling OS, everything is going OK now.

I think I have to keep going now.

By the way, you made a really good job. It is impressive to use T2D.
Hope you'll add perfect network soon.

Thanks.

Hong Jin
#9
12/19/2005 (11:12 pm)
That's good to hear; thanks. :)

- Melv.
#10
06/01/2006 (2:18 pm)
(Note: I know this is an old topic, but it is the most recent one pulled up in a search of the forums.)

I'm having the same issue regarding "T2D.exe" not doing anything. I try to run it, but no window pops up. It does get listed in the Task Manager as a running process, but no CPU is being used.

I've reinstalled the SDK several times, as well as tried running the stand-alone Shooter Demo, and the Torque Game Engine Demo, all with the same results.

I don't have a "console.log" file, and one does not get created after running "T2D.exe".

I have Visual Studio 6.0 installed, as well as Visual Basic 2005 Express and Visual C++ 2005 Express. I had DirectX SDK (April 2006) installed, but I uninstalled it in the hopes of T2D working. (I mention these just in case they change system files Torque accesses.)

OS: Windows XP Home SP 2
CPU: AMD Athlon XP 2600 2.1 GHz
Video: GeForce FX5200 with 66.93 drivers
Memory: 1 GB PC2700 DDR
Resolution: 1280X1024 on LCD monitor


An older topic mentioned that changing the desktop resolution might fix the problem. I tried both 1024X768 and 800X600, neither of which worked.

Reformatting is always a pain, so I'd like to leave that as a last resort.

Anyone have any ideas on how I can get T2D working?
#11
06/01/2006 (2:26 pm)
@Robert- that's a bummer- my setup is identical except I think I have Geforce FX 5700. Which works awesome with TGB and TGE. Are you able you run any other software or games that uses OpenGL rendering?
#12
06/01/2006 (2:38 pm)
Yes, I have OgreSDK demos that work in both Direct3D 9 and OpenGL.
#13
06/01/2006 (7:33 pm)
Talk about dumb luck. I seem to have stumbled across the problem.

I have a Playstation controller to USB adaptor I use for several games, as well as emulators. ZSNES, however, does not work with it. It'll lock up the program, and then glitch the controller, requiring me to unplug it to have it reset (specific buttons become permanently "pressed" even though they aren't being physically pressed).

Lo and behold, I try to use the controller with a playstation emulator, only to find the controller not responding. I go into the controller settings and see 5 buttons locked down. I unplug the controller, and decide to try T2D and related programs. They work fine.

FYI, it's a KiKY X-series Playstation to USB adaptor. Apparently there is something odd about the drivers, since a few programs glitch when doing the DirectInput initialization.

Edit some time later: I checked the company's website for driver updates, and they have a revision of the driver with the description "install if the game hangs after controller installation". I installed the driver, plugged in the controller, and ran T2D. Works fine now.
#14
06/02/2006 (10:01 am)
Thanks much for reporting your fix Robert--I'm going to add this into my "bag of last ditch things to try" tricks for the occasional "can't get anything else to work" scenarios!