Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 4 users and 190 guests online.

Online users

  • GambitUK
  • Theace
  • Shyssiryxius
  • Dark_Lizerd

Languages

  • English English
  • French French

Browse archives

« September 2008  
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Research and the AI.

Submitted by Fallen Haven on Sun, 2007-01-14 07:58. SE:V MODs

I have been working for quite a while to get the AI to research in a semi-intelligent way. The problem is that i hardly understood how the research mechanism worked for the AI and was basically blind shooting. Now i understand it a lot better and can share some of my discoveries.

Basically, the AI research in a sequencial way. I will research 1 item then the next. But each turn it reset it's research. To continue researching what it had the previous turn it use a list that pinpoint where it was last turn in the research queue. The only exeption is when it run on a tech it can't research yet and will try to queue up the requirement if some research "slot" is free (but most of the time, there is none). All this make the AI very predictible and totally inflexible. It will try to research things that it doesn't need yet and won't adapt to changing situations.

I'm currently working on a way to make this a thing of the past. The problem is to permit the AI to loop on it's research queue and take different things from turns to turns depending on it's current priorities. Patching the old system won't help as making conditionnal research just screw it up. It remember where it was the previous turn, but if the line was conditionnal and it happen to be false that turn, it will just jump to the next entry and research it instead. It will jump back to the previous research once the condition is true, but if the other item is fully researched by then, it will never resume it. And once it reach the bottom of the research queue, it never go back to the top. Once the last item is researched, it just stop there.

In the stock code, there are 2 routines at the end that will make the AI research things in alphabetical order until the all reach the maximum level. Again it's not helping the AI at all, it just make it spend it's research points on something...

‹ Nomad Mod? Creating a dynamic research pathern. ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

In fact...

Submitted by Fallen Haven on Wed, 2007-01-17 22:48.

I found out the AI has no idea what it is researching. There is no memory of it. The memory is used to know if all research points are spent each turns, nothing else. With the proper routines, you can change it's spending each turns. But it should be noted that since it runs it's research routines several times, using randomness just screw things as they will be drawn several times (unless some sub routine make sure the random function isn't used several times). But the way the game works, randomness isn't a good thing...

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Balance Mod v1.05 Available!
  • Ship Capture Issues
  • Babylon 5 Space Empires V mod?
  • Colonizing planets in foreign systems
  • Shipset in progress Part 2

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • Babylon 5 Space Empires V mod?
  • Black screen of death
  • Is there a script debugger??
  • Space Empires & Linux
  • solar collectors and fleet supply
(c) Strategy First, Inc. All rights reserved.