Game Development Community

Stuck in tutorials

by Wes · in Torque Game Builder · 03/04/2006 (3:13 pm) · 3 replies

I'm working my way through the debug tutorials. I'm at the Hello World console thingy and torsion won't let me run the script.

this is what I'm getting:

Warning: (c:\tgb\latest\engine\source\gui\core\guitypes.cc @ 347) GuiControlProfile: requested gui profile (GuiContentProfile) does not exist.
Fatal: (c:\tgb\latest\engine\source\gui\core\guitypes.cc @ 351) GuiControlProfile: unable to find specified profile (GuiContentProfile) and GuiDefaultProfile does not exist!

Did I forget something?

Thanks for any help on this.

#1
03/05/2006 (1:01 am)
Yeah, one of two things to check:

1) did you replace the main.cs with the file that was in the article?
2) did you get the command line parameters correct: you need: -nocommon -notools -game ...

It looks like the common dir is trying to load, but it shouldn't be if you specified -nocommon. That means one of the two things above is likely the culprit.
#2
03/05/2006 (2:56 am)
Thanks for replying... and since I've got your attention let me just say, awesome tutorial, I'm really enjoying it.

Back to the post... yes, I copied the parameters straight from the tutorial and pasted them into torsion > project properties > config > arguments field (-nocommon notools game sample-001-console_hello_world).

[edit]
{the parameters above are missing dashes, but that's being caused by the forum, the ones in torsion have the dashes}
[/edit]

And yes, I downloaded the new main.cs from the link in the tutorial and overwrote the main.cs file in the C:\TGB\Latest\games folder.

I'm still stuck with the error message, is there anything else I might be missing?

screenshots:
properties dialog
games folder
error message

Also, this is showing up in my console.log:

--------- Parsing Arguments ---------
Error: Unknown command line argument: notools
Error: Unknown command line argument: game
Error: Unknown command line argument: sample-001-console_hello_world

{again, dashes are being removed by the forum}
#3
03/05/2006 (9:09 am)
Jeez, I'm really sorry that my tutorial is causing you trouble. I'd really like to get this issue solved. I appreciate you posting so much detail here in the forum so I can help.

By all outward appearances, it looks like your main.cs file is somehow "not right." Can you try a couple of things for me?

First: Open your root main.cs file... On lines 77 and 179 you should see references to "notools". Do you? The console log content above claims that the parameters for "notools" and "game" are unknown. I don't see this myself, and you shouldn't either. Hmmm...

If you do have the right main.cs file. Then the next thing to try is to run T2D without Torsion... Click on your Start button, then Run... In the Open: textbox type: cmd and press enter. When the command prompt window appears, type:
cd \TGB\Latest\games and Enter
T2D.exe -nocommon -notools -game sample-001-console_hello_world and Enter

If that doesn't do it, I'm really at a loss. At that point, if you could zip up your "Latest/games" and post it somewhere, then send me a private e-mail message to jason@jecahill.com, I'd be happy to take a look. Again, I'm really sorry you are running into these problems!