|
-
May 13th, 2001, 12:24 PM
#1
Thread Starter
Junior Member
Artificial Intelligence
Hi guys,
I was wondering, would anyone know of good tutorials for pathfinding or just straight AI (with source code).
What I need is like an AI that has to find the best way through something, and say unlock some things on its own and things. So a kind of pathfinding AI, except the game isn't graphics-based, I don't think anyone has done a game like this.
-
May 13th, 2001, 12:32 PM
#2
Frenzied Member
Search for "A* pathfinding" or some similar phrase in a search engine. A* is a very well-known pathfinding algorithm, although I only know the name, nothing about how it works.
Harry.
"From one thing, know ten thousand things."
-
May 13th, 2001, 05:56 PM
#3
A* is one of the most commonly used algorithms, although it is slow, compared to some algoritms, especially if you are searching a large area.
Z.
-
May 13th, 2001, 07:31 PM
#4
Hyperactive Member
-
May 13th, 2001, 08:01 PM
#5
Good Ol' Platypus
Okay VBD that is just a cheap way to get your postcount up.
Not to sound mean, but I would quit it.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 14th, 2001, 01:19 AM
#6
Fanatic Member
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
May 14th, 2001, 02:35 AM
#7
Frenzied Member
Hey, I'm revising Dijkstra's algorithm along with a load of other stuff for my Algorithms & Data Structures exam on Tuesday morning Never really thought of actually using it...
Harry.
"From one thing, know ten thousand things."
-
May 14th, 2001, 06:14 PM
#8
-
May 14th, 2001, 06:40 PM
#9
Frenzied Member
If you want to ask questions about neural nets go ask in the AI forum at www.gamedev.net .
You don't need AI that learns for a game. You can probably get away with very simplistic AI if the game isn't too complex. Remember Command & Conquer? The AI in that basically attacked your northernmost unit that was within range, or moved towards the northernmost unit it could see if it was out of range of anything. Well I think there was a little more to it obviously, but AI doesn't have to be so complicated.
Harry.
"From one thing, know ten thousand things."
-
May 16th, 2001, 02:52 AM
#10
Frenzied Member
Yes, you're right, I'll use Fuzzy Logic (tried it in a game's scripting language and it works just fine).
Hey, I have an idea: what about a small 2-d array, which would be just like the map - but instead of tile information, it would have the number of times it saw the player in that area! That could be used to avoid areas where the player usually is when running away or to chase the player!
-
May 17th, 2001, 09:43 AM
#11
Frenzied Member
Hey I would be very interested in seeing your AI (the fuzzy logic). (just to see how good it works)
I tried to use an A* some time ago but I could not get it to work properly. So I never got to the AI because the pathfinding was the basis for everything.
I really need to learn how to get a descent AI working.
Sanity is a full time job
Puh das war harter Stoff!
-
May 17th, 2001, 09:55 AM
#12
PowerPoster
Well, when I upload the next version of Sentience (blatant plug - those who haven't downloaded it, do so now!!!!! ) you'll notice that the units have pathfinding and can be set on autopilot to destinations.
I am having serious problems with it however. Initially it had an almost pathological fear of straight lines. Now that's cleared up it seems to be excessively scared of diagonal lines.
I think it may be down to the costs we've specified for each chassis type to traverse different terrain types. Still, it finds it's way there by a route which may not be the best (but is certainly in the top 10%) and at a reasonable speed as well.
The code for it is frightening though and more than a little clumsy...
Gentile or Jew,
O you who turn the wheel and look to windward,
Consider Phlebas, who was once handsome and tall as you...
-
May 18th, 2001, 11:42 AM
#13
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|