Author Topic: How does AI work?  (Read 1617 times)

Loufas

  • Guest
How does AI work?
« on: 10 June 2008, 16:31:47 »
Hi, is there someone that can describe how AI works?

 Are there some (14) airules that run in loop or something like that? Maybe I don't get it right!?!?

 Where is game->update() used? I can't find it...

 What's going on between different leves of difficulty?

 I need to get the main idea at least...

 Please help me :D

 Thanks.
« Last Edit: 1 January 1970, 00:00:00 by Loufas »

Dasaki

  • Guest
(No subject)
« Reply #1 on: 27 June 2008, 01:55:05 »
You'll need to obtain the Source code for Glest, find it stickied on the GAE forum section.  It's in C++ I believe so, some experience before diving into that is neccessary.  

As of now the AI runs off of what seems to be recordings of simple actions done by players.  I.E. ordering a unit to collect resources, and when there is enough, units are made.  

Reading my posts you'll find that the AI responds robotically right when the resource cap for something is made, they make it and it is automatically sent to the opposing team.  

Kinda ruffs up the turtle style of play which is what I'm trying to fix.  

I'm thinking up a name for this version of Single player Glest as of now, but I'll release it when I can.
« Last Edit: 1 January 1970, 00:00:00 by Dasaki »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
(No subject)
« Reply #2 on: 1 July 2008, 15:14:44 »
Thats right, so get lots of experience. I recomend googling for a tutorial.
« Last Edit: 1 January 1970, 00:00:00 by omega »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert