Advanced 3d AIO chapter 7 (aiGuard.cs) crash
by Nick Wilson · in Torque Game Engine · 01/21/2006 (10:47 am) · 22 replies
Has anyone been able to get this chapter's code to work? I've tried typing up my own version of aiGuard.cs and using the one on the cd in both torque 1.3 and 1.4 and it always crashes while loading. There is little to no information in console.log. It just ends after the line "Loading compiled script starter.fps/server/scripts/aiGuard.cs." Here's the last chunk of my console.log file:
Does anyone have any idea what the problem could be? I'd appreciate any tips or insight anyone could offer.
*** Load Main Menu Exporting server prefs... Starting multiplayer mode Binding server port to default IP UDP initialized on port 28000 Loading compiled script starter.fps/server/scripts/audioProfiles.cs. Loading compiled script starter.fps/server/scripts/camera.cs. Loading compiled script starter.fps/server/scripts/markers.cs. Loading compiled script starter.fps/server/scripts/triggers.cs. Loading compiled script starter.fps/server/scripts/inventory.cs. Loading compiled script starter.fps/server/scripts/shapeBase.cs. Loading compiled script starter.fps/server/scripts/item.cs. Loading compiled script starter.fps/server/scripts/health.cs. Loading compiled script starter.fps/server/scripts/staticShape.cs. Loading compiled script starter.fps/server/scripts/weapon.cs. Loading compiled script starter.fps/server/scripts/radiusDamage.cs. Loading compiled script starter.fps/server/scripts/crossbow.cs. ParticleEmitterData(CrossbowBoltEmitter) velocityVariance > ejectionVelocity Error: shape starter.fps/data/shapes/crossbow/ammo.dts-collision detail 0 (Collision-3) bounds box invalid! Loading compiled script starter.fps/server/scripts/player.cs. Loading compiled script starter.fps/data/shapes/player/player.cs. Validation required for shape: starter.fps/data/shapes/player/player.dts Loading compiled script starter.fps/server/scripts/chimneyfire.cs. Loading compiled script starter.fps/server/scripts/aiPlayer.cs. Validation required for shape: starter.fps/data/shapes/player/player.dts Compiling starter.fps/server/scripts/aiGuard.cs... Loading compiled script starter.fps/server/scripts/aiGuard.cs.
Does anyone have any idea what the problem could be? I'd appreciate any tips or insight anyone could offer.
About the author
#22
Dunno why just copying the file over the old one wasn't working.
03/21/2008 (8:50 pm)
Weird, I gave up and deleted the whole thing, reinstalled from CD, copied all the ai files that I was working with to the location specified and it worked? Well sorta, the bot spaces out, but at least it's spawning now, and shooting occasionally, that = happy.Dunno why just copying the file over the old one wasn't working.
Torque Owner Charlie Higdon
I've checked and rechecked the code 100 times to make sure it matched the book. I've even copied the files from CD containing the "exact" aiguard.cs file. I've set up spawn points, but nothing spawns.
If I change the LightMaleHumanAvata to PlayerBody as suggested, upon doing so I cannot laungh the FPS demo until I undo the change back to LightMaleHumanAvatar.
The only error I've seen is when I change the models. Everything is installed to the proper location, I am using the version of the demo that came with the CD, I've even tried the updated with no difference.