Total Newbie Question
by Donald "DrPsycho" Piret · in Torque Game Engine · 09/22/2001 (2:12 am) · 6 replies
Hi everybody
Just a couple of questions from a total newbie,
it's the first time i get my hands on an allready completed engine or a 3D game so i'm having a couple of difficulties:
Could anybody explain how to get from the compiled engine to a working small app? from what i've figured out it seems i need the executable generated by the compiler for the engine project (do i need only that file?) and a couple of libraries created by the lib workspace, but wich one are they...
And when i got that how to i start coding, just by getting a main.cc and starting to script in there?
what is the smallest possible application using the engine, cause i would really like to learn how to go on with engines by incorporating more and more functionalities from scratch.
Also what part of the customization needs to be done in the engine and what part in the script?
If i'm totally wrong about the engine/script stuff could anybody correct me plz?
Thx alot
Just a couple of questions from a total newbie,
it's the first time i get my hands on an allready completed engine or a 3D game so i'm having a couple of difficulties:
Could anybody explain how to get from the compiled engine to a working small app? from what i've figured out it seems i need the executable generated by the compiler for the engine project (do i need only that file?) and a couple of libraries created by the lib workspace, but wich one are they...
And when i got that how to i start coding, just by getting a main.cc and starting to script in there?
what is the smallest possible application using the engine, cause i would really like to learn how to go on with engines by incorporating more and more functionalities from scratch.
Also what part of the customization needs to be done in the engine and what part in the script?
If i'm totally wrong about the engine/script stuff could anybody correct me plz?
Thx alot
About the author
#2
Now i actually have 2 new questions :)
1. What is the function used to reload the engine, for example i want to modify a pref in an own made option screen but i would like the game to reload without having to quit and restart. What to do?
2. Also i've sent a demo of my game to a friend to test it out and it crashed at his place, could it be that it is because of the $pref::Video::defaultsRenderer = "RIVA TNT2/AGP/SSE"; wich equals to my videocard but he hasnt got the same? or is this variable automatically updated at startup and should i look for the cause elsewhere?
Thank Alot in advance
09/23/2001 (2:21 am)
Thanks alot for the replyNow i actually have 2 new questions :)
1. What is the function used to reload the engine, for example i want to modify a pref in an own made option screen but i would like the game to reload without having to quit and restart. What to do?
2. Also i've sent a demo of my game to a friend to test it out and it crashed at his place, could it be that it is because of the $pref::Video::defaultsRenderer = "RIVA TNT2/AGP/SSE"; wich equals to my videocard but he hasnt got the same? or is this variable automatically updated at startup and should i look for the cause elsewhere?
Thank Alot in advance
#3
exec("mod/file.cs");
The video pref is auto-detected. You can tell your friend to run with the -autoVideo command line option to make sure, but it's probably something else.
09/23/2001 (3:01 am)
There is no way to restart the engine as a whole, but you can re-exec individual script files from the console:exec("mod/file.cs");
The video pref is auto-detected. You can tell your friend to run with the -autoVideo command line option to make sure, but it's probably something else.
#4
09/23/2001 (3:04 am)
Thank you for these precisions, but now my problem is, i'm creating a controll pannel and i've allready made the remap keys functions and all, but i'm stuck at the resolution and fullscreen options, what scripts do i have to rerun to reinitialise the graphics and permit me to change from fullscreen to windowed mode ingame?
#6
09/23/2001 (4:39 am)
Thanks Alot for helping me out
Torque Owner David R. Green
[simplified answer]
In the case of the V12, the minimum files to run a game would be the .exe and a main.cs script in the same folder (along with your textures, objects, etc.).
The .exe basically is a bunch of C++ game functions that the script calls to do what you want it to do.
You could rename the .exe to whatever you want, but some additional tweaking to the .exe should be completed prior to releasing a game with it.
Most anything you want to do can be done in scripting, however, that may not always result in the fastest speed depending on what you are trying to achieve (the scripts are parsed/interpreted). In which case you would have to add a few additional functions to the engine itself.
You could get away with one script file, but in a "full" game, that file would end up being huge. Hence the V12 demo uses various folders to divide the scripts into functional areas.
I'm using a similar folder layout, but tailored for my specific game.
David