Results 1 to 13 of 13

Thread: Artificial Intelligence

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    23

    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.

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  3. #3
    Zaei
    Guest
    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.

  4. #4
    Hyperactive Member VBD's Avatar
    Join Date
    Apr 2001
    Location
    The Place Above The Place Below Heavin
    Posts
    278
    X

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  6. #6
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  7. #7
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  8. #8
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    The path finding algorythm won't help if there isn't an AI controlling it

    I've heard that Fuzzy Logic is the best one (it's based on probabilities, like if it's attacked, you should increase its chance of running away). But also that there's something else that is more "inteligent" and learns with our moves, Neural Nets. Does anyone have more info on this? I need it for my game
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  9. #9
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    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."

  10. #10
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    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!
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  11. #11
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    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!

  12. #12
    PowerPoster Arbiter's Avatar
    Join Date
    Sep 2000
    Location
    Manchester
    Posts
    2,276
    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...

  13. #13
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Go to http://www.planet-source-code.com and look for "Fuzzy Logic". It should be there

    As to the path finding, there are lots of algorythms there! Surf the net for an hour or so and you'll find dozens, just pick one
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width