Game Development Community

Strange.......

by Johnathan Moore · in Torque Game Engine · 09/02/2005 (8:19 am) · 5 replies

Im getting an error which is stopping the script including anouther script file ,the thing is it shows the syntax error in the console but thats not how its written. ive checked lots of times

the source incide game.cs


// Load up all datablocks, objects etc.  This function is called when
   // a server is constructed.
   exec("./audioProfiles.cs");
   exec("./camera.cs");
   exec("./markers.cs"); 
   exec("./triggers.cs"); 
   exec("./inventory.cs");
   exec("./shapeBase.cs");
   exec("./item.cs");
   exec("./health.cs");
   exec("./staticShape.cs");
   exec("./weapon.cs");
   exec("./poisonccrossbow.cs");
   exec("./radiusDamage.cs");
   exec("./crossbow.cs");
   exec("./player.cs");
   exec("./chimneyfire.cs");
   exec("./aiPlayer.cs");

   exec("./flag.cs");
   exec("./ctfbot.cs");
   exec("./Navigation.cs");
   exec("./ctf.cs");


   // Keep track of when the game started




and heres the syntax error in the console

>>> Advanced script error report.  Line 110.
>>> Some error context, with ## on sides of error halt:
   exec("./chimneyfire.cs");

   exec("./aiPlayer.cs");



   exec("./flag.cs");
##
##   exec("./ctfbot.cs");

   exec("./Navigation.cs");

   exec("./ctf.cs");
>>> Error report complete.

Loading compiled script starter.fps/server/scripts/game.cs.

its probably just my stupid mistake because im a bit of a newbie

#1
09/02/2005 (8:21 am)
You forgot the quotes around ctfbot.cs

it should be exec("./ctfbot.cs");
#2
09/02/2005 (8:24 am)
Ditto, don't feel bad, I did the same thing once
#3
09/02/2005 (8:25 am)
Thanks only posted 5 secs ago i have put the quotes around it sort of but they show up different to the original source and they dont appear on this
#4
09/02/2005 (8:27 am)
Ok my bad, lol for some reason the place i copied that source off had wierd characters thanks
#5
09/02/2005 (9:27 am)
It also looks like the quotes around "./flag.cs" are unfinished (right before "./ctfbot.cs"). Not sure if this could be causing you an error as well...