Game Development Community

Tutorial Error/Incorrect

by HatHead Rickenbacker · in General Discussion · 01/09/2008 (9:49 am) · 3 replies

Hello, I am excited to work through the Torque tutorial and start to learn how to develop on this platform.

Just a note, the very first thing the tutorial asks me to do:

***
We won't go into the details of the script here, but if you look near the top of the file there's a line that says '$defaultGame = "tutorial.base";'. That line (combined with a couple others later in the file) tells the Torque engine where to look for the rest of our game files. Change the defaultGame line to say "GameOne" instead of "tutorial.base" and then save the script file. Note that defaultGame is case sensitive, so be sure to capitalize 'Game' and 'One'. When you run torqueDemo now, it will know to look for all resources in the GameOne folder.
***

But $defaultGame does not exist in the main.cs file whatsoever.

Is this a problem or should I put it in? I don't see this variable being referenced anywhere else in the main.cs file.

Thanks for any help!

About the author

Recent Threads

  • Hot Key List

  • #1
    01/09/2008 (9:53 am)
    Are you in the examples folder? That's where that particular main.cs file resides.
    #2
    01/09/2008 (9:58 am)
    Wow - super speedy! You rock!

    Yes, I believe I am: here is my path:

    C:\Torque\TGE_1_5_2\example\tutorial.base

    and for GameOne:

    C:\Torque\TGE_1_5_2\example\GameOne
    #3
    01/09/2008 (10:24 am)
    My bad - i was a directory too deep.

    Please feel free to delete this thread!