Need some help getting NPCs to work...
by Adrian S · in Torque Game Engine · 05/20/2003 (6:01 pm) · 4 replies
I have been trying to use this tutorial, and I don't know where to go with the code. All I want is simple non-bot computer characters that I can modify and play around with later. I've only been using TGE for about 2 weeks now, so don't be too hard on me =)
About the author
#2
Thanks,
Joe
07/08/2003 (8:41 am)
I would like to take advantage of the new AIPlayer code to use as an NPC class for my game project. There are various places around the forum that say the HEAD revision may not necessarily compile or run successfully. I am having difficulty in following the existing bot tutorials. They seem to be rather incomplete, make a lot of guesses on your knowledge of the TGE, and the example code snippets are strewn about and modified by continuing posts. I am continually breaking it and having to start over again to determine what the tutorials were really trying to explain. It became frustrating so I gave up. My responsibility is NPC code and AI and would like to know if there is a schedule for the next stable release for it has been over a year. I know the downloads are metered and don't want to get a HEAD revision that may not be useful. Any feedback would be appreciated before I download the HEAD revision and just try it anyway.Thanks,
Joe
#3
This resource will help you get the ball rolling adding AI Players in a HEAD release.
07/09/2003 (2:51 am)
While downloads are metered you're more than able to download HEAD and keep it updated if you so choose. If your responsibility is AI and NPCs then I'd go ahead and grab it, provided the rest of your team doesn't mind upgrading to it as well.This resource will help you get the ball rolling adding AI Players in a HEAD release.
#4
Joe
07/09/2003 (9:59 am)
Thanks for your input. I had to acquire the patch from a non GG link. Are there instructions somewhere on GG on how to apply this patch? The contents of the text file I saved it as don't look familiar to me. Lotsa "+" signs, "@" signs, text stuff. I guessed this is not a cut and paste operation but this file must be used as input to some sort of patching system I haven't discovered yet. Sorry if I missed the tutorial on applying patches but I have no idea what "Apply this patch from the engine directory" means. Can you give me a hint? This is just an experiment for me for the rest of the team feels very strongly about _not_ going to the HEAD revision so I'm on my own. Does that mean that whatever I do with this "patch" won't work for our game. If that's the case, then I don't believe I'll bother with it but thanks for your help.Joe
Torque Owner Josh Albrecht
AIPlayer is basically the NPC class that he created. So I would ignore that tutorial and just use AIPlayer. There is a function to spawn one in aiplayer.cs I believe, which you can use to create a player then mess around with him.
Oh, and make sure that you have updated your version of torque to the HEAD revision, I dont believe that the latest stable release has the AIPlayer class working like this.
I hope that helped somewhat. :)