Chapter 7 and Dynamic Field Issue
by Kevin O · in Torque Game Engine · 12/12/2006 (8:35 am) · 3 replies
I teach a number of game development course using TGE, and this quarter we started using the All-in-One book (very nice). So the students are working in Chapter 7 and making the Stationary Guard. 99% of the time it's no problem. But that one time, we hit a hitch adding the 4 dynamic fields to the guard. If you add just one field and save your work, the level can no longer load. I've had to reinstall the entire demo to get it working again. The student started the exercise over three times on two different computers and I tried it once. Each time, once we got to the step where you add the aggrression, range, attention, and alertness values, we could not get back into the level. It would hang loading the mission.
So, has anyone else come across this? Obviously it's not the code since all the other projects worked fine. It's so early in the exercise there is not even much room for operator error. By the way, we are using the latest version of TGE.
And if there ever is a problem with a dynamic field that causes loading issues, where are they saaved to so I can go in and edit them back out?
Thanks for any help. This is finals week and I'd like to help this student through this.
So, has anyone else come across this? Obviously it's not the code since all the other projects worked fine. It's so early in the exercise there is not even much room for operator error. By the way, we are using the latest version of TGE.
And if there ever is a problem with a dynamic field that causes loading issues, where are they saaved to so I can go in and edit them back out?
Thanks for any help. This is finals week and I'd like to help this student through this.
About the author
#2
www.garagegames.com/mg/forums/result.thread.php?qt=39012
12/13/2006 (9:23 am)
Okay, for anyone having probs with getting Chapter 7 AI to run, here is a good thread with some excellent fixes to several typos in the AIGuard.cs code. www.garagegames.com/mg/forums/result.thread.php?qt=39012
#3
As for the issues you may be having, make sure you replace the reference to "LightMaleHumanAvatar" with "PlayerBody" like it says in that link you posted. That cures 97% of the ills (except mine apparently).
I have the project running fine for 6 students on 6 computers and not working for one student on two computers. Go figure.
12/14/2006 (12:14 pm)
Thanks for trying to help, Brad. We did try "reinstalling" the demo but the same lock up would occur (on two different machines) once we started adding Dynamic Fields.As for the issues you may be having, make sure you replace the reference to "LightMaleHumanAvatar" with "PlayerBody" like it says in that link you posted. That cures 97% of the ills (except mine apparently).
I have the project running fine for 6 students on 6 computers and not working for one student on two computers. Go figure.
Torque Owner Brad Strong
I did find that I had to add the dynamic values twice, as the first pass through the process kind of bugged out, so I had to select a different object in the tree and then reselect my Spawn Sphere object, and then I could see that I needed to do some cleanup on the values.
Actually, I am surprised you are able to get the Ch 7 Stationary Guard to work! I have gone through this carefully a few times and it is causing a crash when I try and launch with the aiGuard.cs file being called. I've had the crash in both TGE 1.4 and 1.5.
Did you do anything special to get it to run, other than the setup mentioned at the start of Ch 7?