LightMaleHumanArmor where
by Duncan Perham · in Torque Game Engine · 11/14/2005 (2:40 pm) · 4 replies
I have just installed a clean up to date torque engine, did nothing except coppied in aiguard.cs (from the book A3dgpai1) followed chapter 7 word for word, but the engine crashes when it runs. I have identified the problem as
datablock PlayerData(AIGuardDB : LightMaleHumanArmor)
{
className = "NPC";
maxInv[CrossbowAmmo] = 500000;
};
'LightMaleHumanArmor' does not exist anywhere, i have all cs files loaded into my compiler, i opened them all and searched, that class does not exist. if i change LightMaleHumanArmor to somthing else the game runs but obviously does not work right.
Can someone tell me where it is defined. Or if the book (i only just got it a few days ago) is out of date, where is the up to date aiguard.cs
thanks
datablock PlayerData(AIGuardDB : LightMaleHumanArmor)
{
className = "NPC";
maxInv[CrossbowAmmo] = 500000;
};
'LightMaleHumanArmor' does not exist anywhere, i have all cs files loaded into my compiler, i opened them all and searched, that class does not exist. if i change LightMaleHumanArmor to somthing else the game runs but obviously does not work right.
Can someone tell me where it is defined. Or if the book (i only just got it a few days ago) is out of date, where is the up to date aiguard.cs
thanks
#2
Loading compiled script starter.fps/server/scripts/aiGuard.cs.
starter.fps/server/scripts/aiGuard.cs (0): Unable to find parent object LightMaleHumanArmor for PlayerData. I have seen 'LightMaleHumanArmor' refrenced several times. but it does not appear to be loaded or in the torque download.
11/14/2005 (3:24 pm)
Thanks for the quick reply, unfortunatly that didnt work ,(presuming i did it right). I found the console file, the last record info before it crashed was Loading compiled script starter.fps/server/scripts/aiGuard.cs.
starter.fps/server/scripts/aiGuard.cs (0): Unable to find parent object LightMaleHumanArmor for PlayerData. I have seen 'LightMaleHumanArmor' refrenced several times. but it does not appear to be loaded or in the torque download.
#3
datablock PlayerData(AIGuardDB : PlayerBody)
11/14/2005 (3:32 pm)
Lightmalehumanarmor is an old playerdata now it is playerbody so it should look like thisdatablock PlayerData(AIGuardDB : PlayerBody)
#4
11/14/2005 (4:12 pm)
Yep that fixed it. Thnks very much guys.
Torque Owner Rex
BrokeAss Games