Game Development Community

No window shows up when running torque2d.exe

by trailblazer · in Torque 2D Beginner · 12/03/2015 (8:36 am) · 7 replies

whenever i run torque2d.exe no window appears, but it shows in task manager processes.
also i'm using minGW g++ for C== compiler, and i have no visual studio or visual C++ compiler, are they necessary?

i'm new and beginning to use torque for the first time. and following the wiki getting started guide and i'm at chapter 3 right now.
thanks

About the author

Recent Threads


#1
12/03/2015 (9:43 am)
Did you copy the main.cs file you were instructed to copy?
#2
12/03/2015 (9:29 pm)
yes i have copied that also. and also initialize the schema and removed that part of code from main.cs which is required for schema.
My question is that, is Visual C++ compiler or Visual Studio is necessary?
as i don't have these and i'm using minGW g++ for C++ compiler.
also tried it by moving project folder on c drive, still same issue.

on console this message comes up, after i close torque2d.exe process from task manager.
//-------------------------- 12/4/2015 -- 17:58:11 -----
Console trace is off.
Module Manager: Failed to scan module directories in path 'C:/Users/Tasneef/Desktop/Test Project/modules'.
#3
12/04/2015 (5:51 am)
No, they're not necessary.

However, VS2010 or VS2012 Express both work fine, and they're free, so if you want to see if that fixes your problem it won't cost you a dime.

Also, does your executable produce a console.log file when you run it? It should, but even if it doesn't that's a better clue to where the problem is than "it doesn't create a window" - hopefully it will have info pointing to a graphics issue or something....
#4
12/04/2015 (9:11 am)
I might be wrong, especially since I can't test it right now, but have you tried in a project directory that does NOT contain a space? I see you have "Test Project". Can you try "TestProject" instead? Also, can you post the code being used for scanning the modules directory? I believe it may be in the main.cs file.
#5
12/05/2015 (4:37 am)
i have downloaded visual C++ 2010 Express Edition, but still facing same problem.and also tried with project directory path without having a space.
i haven't alter anything in main.cs so it same as that comes with binary zip.

i'm using the binary zip package Torque2D-3.1-win.zip, which i downloaded from https://github.com/GarageGames/Torque2D/releases.

and i haven't compiled it as i think that compiling is only necessary for source not for binaries, is i'm right?
also when i try to compile the solution file for VS 2010, i get this -

warning : Platform 'x64' referenced in the project file 'lpng' cannot be
found. Please make sure you have it installed under '%VCTargetsPath%\Platforms\x64'.
and same for ljpg and some other file i didn't recall right now.


#6
12/05/2015 (11:15 am)
Here is what I did:

1)Download the zip file https://github.com/GarageGames/Torque2D/releases/download/3.1/Torque2D-3.1-win.zip

2)Extract zip to local folder.

3)Run Torque2D.exe from that folder.

4)Watch Truck demo load and run just fine.

So, perhaps try downloading and unzipping that package again. Or, if you can find a utility to calculate the SHA-1 hash of your zip file, mine came out to EE160ABF BF67E5AB F8EDB9AC B805DF21 55384119. If yours doesn't match it may have been corrupted.

If it still fails, look in the console.log file that will appear in the same folder as Torque2D.exe - it will contain diagnostic output that we can use to help pinpoint the issue....
#7
12/06/2015 (5:51 am)
thanks Richard, I was doing all stuff without extracting the zip file before.
and also I don't need to compile it (which was my mistake).
After extracting I do all stuff which you suggest, and all worked.

I create the new project file and copy all files which were told in chapter 3, (all same steps which I done for Test project), and now i do see window in default blue colour.

But the previous project folder (named Test project) which i made before installing VC++ Express, is still not working. I try it by replacing all files in it with new project folder files, and it works, but on again replacing its older files, it didn't work.

so i have deleted this test project and created a new project folder and its working now.

Thanks for all the advices.

I will now complete the wiki tutorial to learn it, and any advice to get started I'll highly appreciate.