TGE and Vista
by Daniel Trudel · in Torque Game Engine · 06/28/2010 (11:00 pm) · 13 replies
I'm running vista and have the TGE 1.4 demo. Everything is running but when I try to compile a .cs the compiler starts but never finishes. I've got my UAC turned off. The program is installed to my desktop, not program files. And the graphics drivers are all updated. Is there any advice I could get on solving this problem? I can't even get the simple HelloWorld.cs to finish compiling.
#2
exec("...HelloWorld.cs");
It shows
Compiling HelloWorld.cs...
Nothing happens from there. It doesn't load up, doesn't abort, no error messages. No script complication errors occur. Just keeps compiling.
06/28/2010 (11:32 pm)
No reported script compilation errors. It doesn't even actually stop the compile. I enter the commandexec("...HelloWorld.cs");
It shows
Compiling HelloWorld.cs...
Nothing happens from there. It doesn't load up, doesn't abort, no error messages. No script complication errors occur. Just keeps compiling.
#3
You could try placing a few ECHO's in the HelloWorld.cs, before and after any functions you may have. This way one may find out what and where TGE is at...
06/28/2010 (11:48 pm)
And i expect your HelloWorld.cs is something as simple as ECHO("HELLO!");?You could try placing a few ECHO's in the HelloWorld.cs, before and after any functions you may have. This way one may find out what and where TGE is at...
#4
06/29/2010 (12:14 am)
No change. I'm guessing because there isn't an error popping up about the echo being outside a function that the compiler isn't opening the file properly.
#5
Check for any 'other' HelloWorld.cs files you may inadvertently have under the game folder, and move them out of the way (just to be sure we are not exec'ing an unexpected file).
Also try.
Find and follow the example of;
server\scripts\game.cs
function onServerCreated()
try to add your exec("./HelloWorld.cs"); to the end of that function. (and be sure your .cs is in the same folder location)
Now test your HelloWorld.cs by calling the function name from the console.
06/29/2010 (1:10 am)
Instructions outside the confines of a function are acceptable to Torque. If HelloWorld.cs was indeed being exec'ed the results from your ECHO statements should have appeared in the console right below Compiling HelloWorld.cs. Check for any 'other' HelloWorld.cs files you may inadvertently have under the game folder, and move them out of the way (just to be sure we are not exec'ing an unexpected file).
Also try.
Find and follow the example of;
server\scripts\game.cs
function onServerCreated()
try to add your exec("./HelloWorld.cs"); to the end of that function. (and be sure your .cs is in the same folder location)
Now test your HelloWorld.cs by calling the function name from the console.
#6
I'm not sure what it is. I moved the helloworld.cs into the scripts folder and tried. I couldn't get it to compile from there either. I even tried making a helloworld.cs.dso and it started crashing the program when I'd compile.
06/29/2010 (1:37 am)
No good. Was a clever trick though. The game.cs compiled properly and got the loading compiled script message. But even with the exec included it didn't let me load the hello().I'm not sure what it is. I moved the helloworld.cs into the scripts folder and tried. I couldn't get it to compile from there either. I even tried making a helloworld.cs.dso and it started crashing the program when I'd compile.
#7
06/29/2010 (8:47 am)
Thread moved to TGE.
#8
As a last effort before asking to see what your HelloWorld.cs function looks like;
copy and past your HelloWorld.cs function right below the function onServerCreated() that you used above, then call the function from the console.
If it is indeed not working still, cut/past your function here for further investigation.
06/30/2010 (1:09 am)
A .dso extension is telling Torque to expect the 'compiled' version of the script so crashing would be the expected outcome.As a last effort before asking to see what your HelloWorld.cs function looks like;
copy and past your HelloWorld.cs function right below the function onServerCreated() that you used above, then call the function from the console.
If it is indeed not working still, cut/past your function here for further investigation.
#9
// ========================================================================
// HelloWorld.cs
//
// This module is a program that prints a simple greeting on the screen.
//
// ========================================================================
function hello()
// ----------------------------------------------------
// Entry point for the program.
// ----------------------------------------------------
{
echo("Hello World");
}
Keep in mind I didn't write this one. This was from the book I'm trying to learn from.
06/30/2010 (4:24 pm)
Ok, so I put the HelloWorld.cs function inside the game.cs function and it was called up fine. Printed Hello World just fine. Here is what the HelloWorld.cs file looks like.// ========================================================================
// HelloWorld.cs
//
// This module is a program that prints a simple greeting on the screen.
//
// ========================================================================
function hello()
// ----------------------------------------------------
// Entry point for the program.
// ----------------------------------------------------
{
echo("Hello World");
}
Keep in mind I didn't write this one. This was from the book I'm trying to learn from.
#10
06/30/2010 (4:57 pm)
In what case the problem must be in the method you are using to EXEC the script. I would suspect something as simple as 'file name' or 'file path' confusion.
#11
Have you attempted to make a fresh new HelloWorld.cs script file from scratch?
06/30/2010 (5:06 pm)
It occurred to me that if this HelloWorld.cs is from a book, and perhaps that book came with a CD, then perhaps your copy of the HelloWorld.cs script is slightly corrupted if you are indeed using the script from an already established example file. Have you attempted to make a fresh new HelloWorld.cs script file from scratch?
#12
06/30/2010 (5:15 pm)
I did. I also tried putting it in the same folder as the game.cs and it would do the same thing. When I use the exec command in the console it'd start compiling but wouldn't finish compiling. There doesn't seem to be a problem with the path, usually when I make an error there I get a missing file alert. I've also made sure in any folder that I save it there are no other files of the same name, to avoid confusion over wich one I want the console to compile.
#13
The only thing left would be to repeat the process, changing the procedure of the process until you find what may have been the original problem (Google " Steps of the Scientific Method " ).
On the other hand if you have satisfied your curiosity about this odd error, and it still continues to be a problem down the road, then perhapses there is something more that we are both failing to think of. But for it to be a TRUE bug because of Torque itself is at this stage not probable, and we have excluded many other variables leaving it upto 'operator' error.
If after careful repetition gleamed from your learning documentation, you can not figure this out, reply with the exact steps of the process you are using to achieve this unwanted outcome.
06/30/2010 (6:11 pm)
It sounds like you have excluded all of the obvious logical reasons for this to not work, that I myself have also thought of.The only thing left would be to repeat the process, changing the procedure of the process until you find what may have been the original problem (Google " Steps of the Scientific Method " ).
On the other hand if you have satisfied your curiosity about this odd error, and it still continues to be a problem down the road, then perhapses there is something more that we are both failing to think of. But for it to be a TRUE bug because of Torque itself is at this stage not probable, and we have excluded many other variables leaving it upto 'operator' error.
If after careful repetition gleamed from your learning documentation, you can not figure this out, reply with the exact steps of the process you are using to achieve this unwanted outcome.
Torque 3D Owner Caylo Gypsyblood