How to run fishdemo and spacescroller...
by rawi · in Torque Game Builder · 08/07/2005 (1:21 pm) · 11 replies
Just got Torque 2D and i am a little overwhelmed - sorry for another newbie!
the tutorial is really nice, although i am not through i wanted to run the other "games" in the example folder!
changing the Default game in main.cs does not do the work!
So obviously there must be another way!
please, please...
the tutorial is really nice, although i am not through i wanted to run the other "games" in the example folder!
changing the Default game in main.cs does not do the work!
So obviously there must be another way!
please, please...
#2
forgot to mention: i am on Macintosh and besides that, there are no bat files in my folder!
any other hint?
08/08/2005 (12:05 am)
Thanks for answering, Joseph -forgot to mention: i am on Macintosh and besides that, there are no bat files in my folder!
any other hint?
#3
08/08/2005 (9:19 am)
Try using the "-mod foldername" switch when you run T2D, where foldername is the demo you want to run.
#4
or in the scrip main.cs ( instead of default game "T2D") does not work either'
hm, hm, :-((
08/08/2005 (10:44 am)
Do you mean in the console ( does not work! ) or in the scrip main.cs ( instead of default game "T2D") does not work either'
hm, hm, :-((
#5
t2d.exe -mod spaceshooter
t2d.exe -mod fishdemo
t2d.exe -mod thisfolderImadeup
Not a Mac user, but hopefully you can translate that into the Mac equivalent.
(see Brian below)
08/08/2005 (11:27 am)
Command line option:t2d.exe -mod spaceshooter
t2d.exe -mod fishdemo
t2d.exe -mod thisfolderImadeup
Not a Mac user, but hopefully you can translate that into the Mac equivalent.
(see Brian below)
#6
08/08/2005 (12:47 pm)
The console should work fine. You can also change the line in main.cs to point to the correct directory if you're still having difficulties.
#7
Create a plain text file called "maccmdline.txt" that contains the command line options you want to use e.g. -mod spaceshooter
You'll need to edit this file each time to change the mod to be run and when you want to work on your own game either delete the file (or rename it).
08/08/2005 (12:47 pm)
@rawi:Create a plain text file called "maccmdline.txt" that contains the command line options you want to use e.g. -mod spaceshooter
You'll need to edit this file each time to change the mod to be run and when you want to work on your own game either delete the file (or rename it).
#8
thank you so much!
should have known that myself - shame on me! - i think i have read that somewhere.
sigh- it takes a lot of steps to get familiar with torque!
i will try the other options although, but on MAC some things really work differently
( or maybe just my limited experience)
thank you all, this is a nice forum and lots of kind users, great!!!
08/08/2005 (1:11 pm)
Hi brian, that was a great hint!!!!thank you so much!
should have known that myself - shame on me! - i think i have read that somewhere.
sigh- it takes a lot of steps to get familiar with torque!
i will try the other options although, but on MAC some things really work differently
( or maybe just my limited experience)
thank you all, this is a nice forum and lots of kind users, great!!!
#9
However there is no description of fishdemo concepts (unlike spaceshooter which is described in the basic tuitorial) or is there?How did you get all the fab lighting effects, watery movement, depth, bubbles etc - do I have to work this out from the source code?
Thanks
Andy
08/24/2005 (4:53 pm)
Thanks for this thread - it was just what I needed! However there is no description of fishdemo concepts (unlike spaceshooter which is described in the basic tuitorial) or is there?How did you get all the fab lighting effects, watery movement, depth, bubbles etc - do I have to work this out from the source code?
Thanks
Andy
#10
08/24/2005 (6:31 pm)
Everything was done with script. Take a look at fishdemo/client/client.cs everything you want to know is there with comments.
#11
Open the terminal, cd into "examples" directory, create a text file, (I called it runT2D), and put the following two lines in it.
#! /bin/bash
./T2D-OSX.app/Contents/MacOS/T2D-OSX -mod spacescroller
save file, and change permissions on it by running chmod u+x runT2D
Any time you want to run a different game, just change the mod name to the name of that mod. Obviously, if your project is in a totally different directory, you have to specify absolute paths for both T2D executable and the location of your project.
09/02/2005 (9:55 am)
Here is how I got it working on my mac.Open the terminal, cd into "examples" directory, create a text file, (I called it runT2D), and put the following two lines in it.
#! /bin/bash
./T2D-OSX.app/Contents/MacOS/T2D-OSX -mod spacescroller
save file, and change permissions on it by running chmod u+x runT2D
Any time you want to run a different game, just change the mod name to the name of that mod. Obviously, if your project is in a totally different directory, you have to specify absolute paths for both T2D executable and the location of your project.
Associate Joseph Euan