Game Development Community

Tutorial.base

by Brett Jones · in Torque Game Engine · 10/14/2004 (9:29 am) · 5 replies

Hello,

I purchased & downloaded the Torque SDK yesterday and installed it, and I've been looking around the different examples that were included. I compiled the Torque SDK as instructed, yet I cannot for the life of me find where to switch directories to the different starter.* and the tutorial.base.

So, I copied the starter.fps to just an 'fps' directory and deleted everything in it, and have been replacing it with the other two folders. A problem occurs when I put in the "tutorial.base" folder. On loading, it gives me an assert error "Error, div by zero attempted" in torque\engine\math\mpoint.h.. is this somehow a result of the cut&pasting or is this a known bug with the tutorial.base ?

-Greven

About the author

Recent Threads


#1
10/14/2004 (9:57 am)
I don't know what is causing the bug, but if you just want to make it switch directories, make the shortcut to your exe look like this:

C:\torque\example\torque_demo.exe -game *gamename*

replace *gamename* with the name of the directory, for example starter.fps, like this:

C:\torque\example\torque_demo.exe -game starter.fps
#2
10/14/2004 (10:22 am)
Or to make it more permanent, like for a release, find the main.cs file in the same dir as your EXE and change the first line:

from:
$defaultGame = "starter.fps";

to:
$defaultGame = "fps"; //whatever the name of your folder is

If you are looking for a temporary solution that allows changing directories all the time, Brinks solution is better.

While we are on this topic, is there a document somewhere that defines the bare-bones script files required to do specific tasks? It seems the script files are mix-matched... ie I couldn't simply remove networking scripts through a single file.

What I want to do is start with a world that is so minimal that it doesn't have a loader, menu and not even player controls. It just spawns a world, a character, and focuses the camera on that player.
#3
10/14/2004 (10:39 am)
Try this resource. It's very basic, but I think it does load a gui.
#4
06/08/2005 (11:38 pm)
Textures are being scaled proorly. too big of a texture on to small of an obect is what causes it for me.
#5
06/09/2005 (5:51 am)
My Tic Tac Toe tutorial might be of some assistance.

Other than that, I would say dive into Ken's book. It takes you by hand through this sort of thing. Very nice book!