CH3 & Mac OS X?
by Michael Rogers · in Torque Game Engine · 09/05/2005 (2:46 pm) · 8 replies
Any hints on how to run CH3 from Mac OS X? I tried
1) installing the files on Virtual PC
2) dragging over the folder
3) changing $defaultGame to CH3
4) Launching Torque Demo OSX from the example folder
but Torque quits after a few seconds of seeming inactivity.
Although I want to launch this from Mac OS X, I tried launching from VPC directly, and it also quits -- complaining about the lack of OpenGL, D3D, and Voodoo2 display devices.
Any help would be appreciated.
Michael
1) installing the files on Virtual PC
2) dragging over the folder
3) changing $defaultGame to CH3
4) Launching Torque Demo OSX from the example folder
but Torque quits after a few seconds of seeming inactivity.
Although I want to launch this from Mac OS X, I tried launching from VPC directly, and it also quits -- complaining about the lack of OpenGL, D3D, and Voodoo2 display devices.
Any help would be appreciated.
Michael
About the author
#2
09/20/2005 (9:00 am)
I don't know if you ever got this going, but I run the chapters by dropping the Torque Demo OSX file into each chapter folder, and it works fine.
#3
After installing the TGE OSX demo, and the "Resources" folder from the book CD, I tried copying the "Torque Demo OSX.app" file to the CH2 folder, and double-clicking on the app, but it just runs the built-in demo. How did you get it to load the .cs in the CH2 folder?
Hope your still listening...
-Rob
01/24/2006 (5:52 pm)
Hi Rubes,After installing the TGE OSX demo, and the "Resources" folder from the book CD, I tried copying the "Torque Demo OSX.app" file to the CH2 folder, and double-clicking on the app, but it just runs the built-in demo. How did you get it to load the .cs in the CH2 folder?
Hope your still listening...
-Rob
#4
it's contents should be :
That will do the trick. It will work as the command line parameters for PC
01/25/2006 (12:36 pm)
Create a text file called maccmdline.txt it's contents should be :
-game -CH2
That will do the trick. It will work as the command line parameters for PC
#5
Hmmm. I tried this both with the demo and a commercial version of TGE. Let me give a little more background.
1) I baught the 1st (& 2nd) Finney book, and then copied the contents of the NEW_FILES and RESOURCES directories from the CD to my Mac.
2) I downloaded the TGE 1.4 demo ("Torque Demo OSX.app") from the GG Web site.
3) I copied the app to the RESOURCES folder. The RESOURCES folder has sub-folders for CH2, CH3, CH4, etc.
4) I created a file "maccmdline.txt" in the RESOURCES folder, containing the single line "-game -CH4" (I use CH4 as CH4 contains a "main.cs" file, and CH2 does not).
5) I double-click on the app.
The result is that the 1.4 demo is run (i.e., it does not seem to use the "maccmdline.txt" file.)
6) If I change the line in the "maccmdline.txt" file to "-game CH4" or "-mod CH4" or "-mod -CH4" there is no change.
7) If I use a commercial version of the app (which I purchased), and replace the demo version in the RESOURCES folder, when I double-click the app, I get two error messages 'Failed to open "main.cs".' and 'Failed to initialize game, shutting down.' This happens with all versions of the "maccmdline.txt" file I have described above.
8) If I copy the DEMO app into the CH4 folder, and run it, there is no change (i.e., the demo runs).
9) If I copy the COMMERCIAL app into the CH4 folder, it finds the local "main.cs" and runs the book code.
So, I am assuming the TGE 1.4 demo from the Web site is hard coded to only run the embedded code. So, is there a Mac version of TGE that I (and others) can leagally use to run the code from the book(s)?
Since I bought the books, it would be nice to be able to run the code from the book.
Sorry for the long post!
-Rob
01/25/2006 (1:19 pm)
Hi Bruno,Hmmm. I tried this both with the demo and a commercial version of TGE. Let me give a little more background.
1) I baught the 1st (& 2nd) Finney book, and then copied the contents of the NEW_FILES and RESOURCES directories from the CD to my Mac.
2) I downloaded the TGE 1.4 demo ("Torque Demo OSX.app") from the GG Web site.
3) I copied the app to the RESOURCES folder. The RESOURCES folder has sub-folders for CH2, CH3, CH4, etc.
4) I created a file "maccmdline.txt" in the RESOURCES folder, containing the single line "-game -CH4" (I use CH4 as CH4 contains a "main.cs" file, and CH2 does not).
5) I double-click on the app.
The result is that the 1.4 demo is run (i.e., it does not seem to use the "maccmdline.txt" file.)
6) If I change the line in the "maccmdline.txt" file to "-game CH4" or "-mod CH4" or "-mod -CH4" there is no change.
7) If I use a commercial version of the app (which I purchased), and replace the demo version in the RESOURCES folder, when I double-click the app, I get two error messages 'Failed to open "main.cs".' and 'Failed to initialize game, shutting down.' This happens with all versions of the "maccmdline.txt" file I have described above.
8) If I copy the DEMO app into the CH4 folder, and run it, there is no change (i.e., the demo runs).
9) If I copy the COMMERCIAL app into the CH4 folder, it finds the local "main.cs" and runs the book code.
So, I am assuming the TGE 1.4 demo from the Web site is hard coded to only run the embedded code. So, is there a Mac version of TGE that I (and others) can leagally use to run the code from the book(s)?
Since I bought the books, it would be nice to be able to run the code from the book.
Sorry for the long post!
-Rob
#6
TGE 1.4 Demo from GG site has the demo game placed inside the application. If you right click over it and choose "show Package Contents" you'll be able to find a main.cs and the demo files and directories. This is the new (1.4) starting place to search for a main.cs so you can directly bundle your game inside the app. This is also why the maccmdline.txt doesn't work. Just drag the demo game files out of the package and it will work just like the commercial one.
What version of TGE are you calling "commercial" ? There was a bug fix in 1.4 that deals with command line arguments. There was a problem passing those arguments in the mac version that could be fixed in the script ( the arguments had their numbers incremented by one ).
So in TGE 1.3, a main.cs from a PC version could have some trouble with the args.
01/26/2006 (4:20 am)
Hi Rob.TGE 1.4 Demo from GG site has the demo game placed inside the application. If you right click over it and choose "show Package Contents" you'll be able to find a main.cs and the demo files and directories. This is the new (1.4) starting place to search for a main.cs so you can directly bundle your game inside the app. This is also why the maccmdline.txt doesn't work. Just drag the demo game files out of the package and it will work just like the commercial one.
What version of TGE are you calling "commercial" ? There was a bug fix in 1.4 that deals with command line arguments. There was a problem passing those arguments in the mac version that could be fixed in the script ( the arguments had their numbers incremented by one ).
So in TGE 1.3, a main.cs from a PC version could have some trouble with the args.
#7
Your first paragraph makes total sense. I will try this.
The commercial version I have is also 1.4. Sorry for the confusion. In terms of the bug fix, do you mean the bug was in 1.3, and fixed in all (windows, linux, Mac) versions 1.4?
-Rob
01/26/2006 (5:41 pm)
Thanks Bruno.Your first paragraph makes total sense. I will try this.
The commercial version I have is also 1.4. Sorry for the confusion. In terms of the bug fix, do you mean the bug was in 1.3, and fixed in all (windows, linux, Mac) versions 1.4?
-Rob
#8
I am still having some problems with the deployment version of 1.4 on the mac, though. The debug version is working better. Try compiling a debug executable.
01/27/2006 (5:09 am)
The bug was in the mac version of 1.3. It was fixed in 1.4. I am still having some problems with the deployment version of 1.4 on the mac, though. The debug version is working better. Try compiling a debug executable.
Torque Owner Bruno Grieco