3dgpai1 chapter 2
by Barry Selk · in Torque Game Engine · 09/13/2011 (11:50 pm) · 0 replies
Hello,
I'm reading chapter 2 P81 of the pdf book. Everything is working fine until I run TwotyFruity.cs. Now I must missed it or something but in the pdf of the book and the book, I don't remember seeing any mention on how to run a function(whatever name) call using tge command line. I do know that the following works:
> tge -ch2 fruitloopy.cs - runs only if you have a function main() at the start the program.
On TwotyFruity.cs there is an function runTwotyFruity at the end of the listing. Now how do
you run a function call type program with no main()? I've added a function main() at the beginning
to be able to compile it, but when it runs, shows nothing. Also changed echo's to print to see on the screen.
Also in the Pro version I bought, can you enter exampleprogram.cs using Torsion as I do in tge? If not how can you enter separate programs with using the game version to experiment with without the game environment being used? All I see is the same game environment. Also I don't see any dialog using the shift ~ key as in tge. Is there one available or do I just use c++ to do this exampleprogramming.cs experimenting?
It all comes down to can I write small code experiments.cs in Torque3D without all the gaming example stuff that is shown? Right now I'm not trying to learn the advance stuff yet, just the C++ code practice stuff.
I'm reading chapter 2 P81 of the pdf book. Everything is working fine until I run TwotyFruity.cs. Now I must missed it or something but in the pdf of the book and the book, I don't remember seeing any mention on how to run a function(whatever name) call using tge command line. I do know that the following works:
> tge -ch2 fruitloopy.cs - runs only if you have a function main() at the start the program.
On TwotyFruity.cs there is an function runTwotyFruity at the end of the listing. Now how do
you run a function call type program with no main()? I've added a function main() at the beginning
to be able to compile it, but when it runs, shows nothing. Also changed echo's to print to see on the screen.
Also in the Pro version I bought, can you enter exampleprogram.cs using Torsion as I do in tge? If not how can you enter separate programs with using the game version to experiment with without the game environment being used? All I see is the same game environment. Also I don't see any dialog using the shift ~ key as in tge. Is there one available or do I just use c++ to do this exampleprogramming.cs experimenting?
It all comes down to can I write small code experiments.cs in Torque3D without all the gaming example stuff that is shown? Right now I'm not trying to learn the advance stuff yet, just the C++ code practice stuff.
About the author
Have worked with 3d studio and truespace in the past. Retired from the electronics industry. Currently working on own site as a home business startup. http://barryselkmarketing.com Hobbies are guitar, computers, robotics, cars.