Game Development Community

Access Violation Error by including AiPlayer.cs

by mks · in Torque Game Engine · 04/03/2005 (1:33 am) · 1 replies

Hi there,
i have already searched below this forum but i doesn't find my problem. To add a bot to my project in Torque i need to insert exec("./scripts/aiPlayer.cs"); on init.cs in folder "server":

//other executes 
exec("./scripts/commands.cs");
exec("./scripts/centerPrint.cs");
exec("./scripts/game.cs");
//
exec("./scripts/aiPlayer.cs");

Now, when I try to start torque, i get an acces violation error.
It seems to be this one, which occures the error:
datablock PlayerData(DemoPlayer : PlayerBody)
{
   shootingDelay = 2000;
};

Ive bought the Lighting Pack and ive tryed out all with there.
Furthermore, i added the Aiplayer.h to the Torque project and re compiled it.

Cheers for answears :)

#1
04/22/2005 (10:06 am)
Just curious, but you say you've ADDED an AIPlayer.h to the project, which AIPlayer.h would that be, because AFAIK TGE comes stock with AIPlayer.h.