Game Development Community

Struggling to signify .exe executing LOL

by Tristan · in General Discussion · 08/11/2008 (9:46 am) · 3 replies

Hi all, i am new to torque and was just generally looking for more info on getting started. i have gone throught the pdf file they supply but im still in confusing of how to personally run your own set of data.

This probly isn't enough info for you lot to run on so il give u a example:

Throughtout the getting started tutorial it tells u to use example Gameone folder. I Changed this to another folder name (Private). However the files inside are all the same. The only things i have done is fixed up a new gui file + a new mis file.

However im not even sure how the hell!?!? you execute the god damn gui....

im not a pro at scripting in C++ so im not sure how peeps are able to do it ?

is there a way of creating a exe file to load the GUI ?

ive checked out the main.cs and ive changed all the info to load the gui and mis i want it to.

problem is im not even sure how to execute this cs file or converting it to execute. If someone could enlighten me on what i need to do it would be much appreciated. Sorry to burden you with so much crap lOL.

Hope you can help !

#1
08/11/2008 (11:16 am)
Hmm.. I'm not entirely clear what your questions are, but I'll try my best to lead you in the right direction.

The main.cs file is always executed by default. For example, try changing the first line from "tutorial.base" to "starter.fps"

.CS files are compiled by Torque into .dso files. If you ever make changes to a .cs file, you will need to delete the corresponding .dso file. There should be a delete dso executable in your example directory that will do this for you.

If you want to execute your own .cs script files, it depends if they are server or client side scripts. Check out your server/scripts directory, as well as your client/scripts directory. You can add your scripts here, but will need to execute them for them to have effect. To do this, check out your init.cs and game.cs files. I would highly recommend running through ever .cs script you see in the starter.fps directory.

For the GUI, press F10 to bring up the editor. You can add, modify, remove any gui elements from this editor.

Check out the tutorials at garagegames.com/developer/torque/tge/ for some good starting info.
#2
08/11/2008 (11:33 am)
Thanks .

the other question i was trying to find out is im not sure how to operate the folder system..


FOR EXAMPLE:

a normal game has a exe (Example.exe) file that automatically loads these files.

IS there a way to create a exe to load the gui like the tutorial demo.exe does. Thats what im trying to figure out, i want to create a exe to load the gui for the game folder im trying to make.


Thanks in advance
#3
08/11/2008 (12:01 pm)
It executes the gui through script. The exe loads the configuration scripts, checking main.cs to see where to parse from there. Then it follows those paths until it executes your GUI scripts.