.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old December 21st, 2003, 08:25 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: The AI... when will ìt earn its "I"?

The biggest challenge to programming an AI for a game like SE4 is the fact that it has to be able to cope with random and arbitrary changes to the data files. Games that have 0 moddability are often able to (not any guarantee) have stronger AIs because programming time does not have to be spent making it adaptable to changes to the data files.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #2  
Old December 21st, 2003, 08:36 PM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: The AI... when will ìt earn its "I"?

It has been my experience that if you play with medium/medium or medium/high the AI does put on more of a challenge.
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #3  
Old December 21st, 2003, 10:33 PM
Grandpa Kim's Avatar

Grandpa Kim Grandpa Kim is offline
Captain
 
Join Date: Jan 2002
Location: Calgary, Canada
Posts: 858
Thanks: 2
Thanked 0 Times in 0 Posts
Grandpa Kim is on a distinguished road
Default Re: The AI... when will ìt earn its "I"?

Gryphin, my opinion is more of a state-of-the-world perception than one directed at any specific niche of any specific industry. You have hit on one world-wide attitude: If it's too hard, it's okay to do a poor job. The other is money: do as little as possible to make as much as possible. Both cases mean "I'm breaking my promise".

I work in new housing and believe me housing and computers are running neck and neck in screwing the public.

I am not a programmer either, but I know my limits. I cannot program to my own satisfaction. Those who have chosen that profession have taken on that job. Now, gentlemen, please do your job!

But I do have some ideas about how to program an AI. I think before you get down to specific cases, you must give the AI a plan to work from. Give it goals, make it aware of common (and not so common) problems and provide general solutions. For instance running out of supplies is a common problem. The current solution is to send the ship(s) back to a resupply depot. There are at least four other solutions to that problem! This is a beginning only, but something the AI can always fall back on.

I'm sure the programmers out there can pick this to pieces... and that's the problem. Rather than say, "Damn it! There's got to be a way to make this work." they say, "It's too hard." You can take out the word programmers and replace it with any profession you like; it will still be true.

Okay, enough of that rant... and thread hijacking.
__________________
Those who can, do.
Those who can't, teach.
Those who can't teach, slag.

http://se4-gaming.net/
Reply With Quote
  #4  
Old December 22nd, 2003, 01:19 AM
Wardad's Avatar

Wardad Wardad is offline
Lieutenant Colonel
 
Join Date: Dec 2001
Location: Scottsdale AZ
Posts: 1,277
Thanks: 0
Thanked 0 Times in 0 Posts
Wardad is on a distinguished road
Default Re: The AI... when will ìt earn its "I"?

no AI yet...

It's an Algorithm Stupidity System.
__________________
So many ugly women, so little beer.
Reply With Quote
  #5  
Old December 22nd, 2003, 01:36 AM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: The AI... when will ìt earn its "I"?

I think some people generally think that this kind of programming then it easier then it really is.

Consider for example the programming needed to create a quality chess playing AI program. There you have a game with a much simpiler rule set. Two players, 16 pieces of only 5 different kinds on an 8 by 8 grid. Most pieces have only 2 or 3 rules determining everything they are capable of doing in the game. Seems like it would be easy no? In fact programmers thought it would be easy. But it took decades of work by hundreds if not thousands of programmers world wide to come up with a program capable of beating even a moderatly skilled player. It was only in the Last few years that one could defeat the best players, and even now it doesn't beat them every time.

Se4 by comparison is much more complex. Exponentially more variables, just in the stock game, not even taking into consideration what can be done with mods. It's not suprising that the AI is much more difficult to program. It's actually suprising that it's as decent as it is.

It's no suprise that the game industry has gone towards real time strategy. With real time strategy it's much easier to give a human player a tough game because humans can't think as fast as computers can. This does wonders for masking repetative or illogical behavior by the AI. With a turn based strategy game the human player can think about their moves as long as they want before comitting to them. Remeber, computers, even the big ones, aren't smarter then humans, just faster. Make them wait on us the computer doesn't stand a real chance then.

Geoschmo

[ December 21, 2003, 23:37: Message edited by: geoschmo ]
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #6  
Old December 22nd, 2003, 01:57 AM

JurijD JurijD is offline
Corporal
 
Join Date: Jun 2003
Location: Slovenia
Posts: 122
Thanks: 0
Thanked 0 Times in 0 Posts
JurijD is on a distinguished road
Default Re: The AI... when will ìt earn its "I"?

Well I have some experience in programming AI and I have to say that there are 2 basic strategies in providing a chellenging AI for computer games.

1. You create several strategies for the AI based on what humas do and let it combine those strategies in a random way hoping it will make something smart.

2. You try and pre-program almost all possible eventualities in a game and the "AIs" responces.

For a game such as SE IV the second option is not even to be considered and the first one is mostly implemented. BUT the major drawback is that the AI doesn't learn. The biggest problem in creating an AI isn't in programming its tactics and strategies... those can be simply random combinations of several hundred pre-programmed ones.. the biggest challenge is making some kind of algorithm that EVALUATES the EFFECTIVENESS of the strategy chosen and makes changes to it in order to achieve better results.

Good results in this area have been made in the field of genetic algorithms and neural nets but the thing is that these approaches are not developed enough to take on the wast scope of decisions needed in SE IV. People tend to underestimate the human brain when it comes to AI. Remember we have something like 10^13 neurons in our brain and more than 10^16 connections between them... thats a lot of "adaptable code". And we had a couple of billion years to get where we are now. It would be silly to expect us to pre-program something even remotely so versatile on a couple hundred megs of CD space...

I think that the future of AI in games such as SE IV is to get the AI on aditional CDs apart from the Game itself. The AI could be (in theory) developed if you put several million adapatable and self-changing genetic algorithms to compete against each other on many millions of games... then eventually you'd get something that is worth comparing to humans. But noone can really answer how long this process would take or how powerful the computers would have to be. But for now its the only way as we are not intelligent enough to write the program ourselves... but with some luck and enough processing power we could make it happen randomly.
__________________
Quid pro quo <img border=0 title= alt=[Wink] src=wink.gif /]
Reply With Quote
  #7  
Old December 22nd, 2003, 02:12 AM
Roanon's Avatar

Roanon Roanon is offline
Second Lieutenant
 
Join Date: Mar 2003
Location: Germany
Posts: 575
Thanks: 0
Thanked 0 Times in 0 Posts
Roanon is on a distinguished road
Default Re: The AI... when will ìt earn its "I"?

I agree, Geo, but only partially. Being a programmer myself, I know how difficult it would be to programm a real AI. To be as creative as a human, as resourceful, considering all options and possible strategies derived from whole sets of options, thinking ahead a few turns and choose the best way to act for multiple units as a strong, simultaneously striking force, persuing a final goal consisting of numerous single targets and objectives - impossible with the technology at hands right now.

AI able to ACT like a human - ok, lets put that aside. But what I, too, consider as "not doing a job" is really *stupid* AI that does not even know how to REACT properly. There are a lot of simple problems - own fleet out of supply, enemy fleet near own planet, enemy planet in friendly system, etc - that the current AI has no real Algorithm for to cope with. Instead, it seems that each turn each fleet decides anew what to do, independent of all other fleet actions, unaware of longtime major problems and the overall global situation but reacting to nearby local events happening Last turn, mixed with a good shot of the random generator. This could have been done better in nearly all games I know. Though this also is not simple - for small companies like MM it might just be too expensive, but I cannot accept excuses like this from big companies obviously spending like 100 times more money on graphics and design than on AI programming.

Yes, it might be possible to play a challenging game vs. the AI. But this is always happening like an elderly grandpa engaging in hand-to-hand combat against a young strong brutish bully - and winning finally. Looks challenging, is not. And advices like "if you want it more interesting, tie the grandpa one hand on the back and blindfold him" may sound interesting, but he still is winning, and this just makes it more ridiculous.

Thank god (and Geo!) for PBW !!!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:02 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.