Game Development Community

Mac Problem

by Colton Ogden · in Technical Issues · 12/31/2006 (3:13 am) · 0 replies

Hey, everyone... I am brand new to Torque, and I'm having a problem that could probably be very easily fixed. I'm using a Mac, G5, I believe 10.4 or 10.3. I purchased the book entitled, "3-d Programming, All-in-One", which supplied the Torque Game Engine with some demo scripts, and what I need help with is locating my script files. I wrote a small script, which is supposed to simply compile a script in the script editor when I execute it:

exec("demo/helloworld.cs");

Now, I have the script in a folder called "demo" within another folder that came with a CD with the book, and this big folder is called, "3D2E". The helloworld.cs script is within the "demo" folder that is within the "3D2E" folder, and when I type in that aforementioned command, which is supposed to compile the script so I can run it, it returns this:

Missing file: scripts/helloworld.cs!

This is my only obstacle to learning how to use Torque and Torquescript, and I would very much appreciate it if someone could help me solve this problem. I've tried changing the folder it's within, and that hasn't helped... I don't know if it's just a Mac thing, but I hope there's a way around it. Thank you.