Game Development Community

Exec(...) not working for one .cs file

by Jeremy Brown · in Torque Game Builder · 05/08/2006 (11:58 pm) · 3 replies

I'm trying to put all of my exec(...) statements in an exec.cs file. This was working fine - it was including and compiling all of the files I exec'ed.

But I created a new board.cs file, and tried to exec it. When I load T2D, it doesn't indicate that the file was loaded for parsing, and it doesn't create board.cs.dso. And of course, because of that, none of the functions in it will run.

All the files I am execing, including the exec.cs file, are in games/DvO/gameScripts/

Here is the code:

exec("~/gameScripts/datablocks.cs");
exec("~/gameScripts/board.cs");
exec("~/gameScripts/ObjectTypes.cs");
exec("~/gameScripts/Dwarf.cs");
exec("~/gameScripts/Orc.cs");
exec("~/gameScripts/game.cs");
exec("~/gameScripts/onStartUp.cs");

When I copy the code out of board.cs and copy it into another file, there are no syntax errors or anything, and the functions work fine. I tried naming the board.cs file different things, and none of that worked. I also have tried deleting all the .dso files, but no change.

Is there anything else I can do to make the exec actually load my board.cs file? Is there anything that I could be doing wrong?

Thanks

#1
05/09/2006 (12:17 pm)
Is the name case correct so is it really board.cs and not Board.cs or the like?
#2
05/09/2006 (12:34 pm)
I think the name case would only apply to a non windows based environment. Windows is not case
sensative as Linux is.

I had to make several changes to TGE to get it working under Linux due to case name issues which windows ignored

-Ron
#3
05/09/2006 (12:37 pm)
Quote:I think the name case would only apply to a non windows based environment. Windows is not case
sensative as Linux is.

the name case does, in fact apply to Windows based systems. I found out the hard way.