Game Development Community

Compile Error on Mac

by Colton Ogden · in Torque Game Engine · 12/31/2006 (10:22 pm) · 3 replies

I left another post like this, but nobody seemed to notice it... I have a Mac, and the script compiler can't find a small script I wrote. Is there an easy way to just put your scripts somewhere (btw, I'm using TextEdit to create them), and then just have the script compiler just find it there? If it helps, I'm trying to do an exec("demo/helloworld.cs"); since it's in a folder called "demo" and the script is a little Hello World script. Main.cs is also in this folder and the compiler seems to locate it just fine. Any help on this would be fantastic and a termination to my only roadblock. Thanks. :]

About the author


#1
01/01/2007 (2:43 am)
Have you tried accessing them from "/demo/helloworld.cs"? I'm confused slightly; you say that main.cs is in the same directory; is your binary in the same dir, too? If it is, then you can probably just exec("helloworld.cs") instead?

Gary (-;
#2
01/01/2007 (2:26 pm)
I tried accessing them from "/demo/helloworld.cs" but that didn't work. What exactly is a binary? I know main.cs and helloworld.cs are in the same directory but perhaps the binary is the key to this whole thing.
#3
01/02/2007 (2:15 am)
By "binary" I mean "program", ie, that thing you double click to make torque start.

Gary (-;