.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   Increasing AI difficulty (http://forum.shrapnelgames.com/showthread.php?t=26856)

Xrati November 27th, 2005 02:06 PM

Re: Increasing AI difficulty
 
The TDM Mod will increase the computer difficulty and so will the settings. What Warshed is looking for is in the actual code of the base program or the algorithms the computer uses to make its decisions. If the program were to be rewritten to accept a “lunatic” or “suicidal” mode then it might attack. That would mean that the computer would just throw ships at you without regard to any future consideration. Although you could program a random event into the AI when certain conditions were met to launch a suicide attack. Like maybe if it had enough of obsolete ships to commit to the attack.

AgentZero November 27th, 2005 02:18 PM

Re: Increasing AI difficulty
 
Quote:

Xrati said:
That would mean that the computer would just throw ships at you without regard to any future consideration.

RTS Mode, FTW!!!oneeleven!

Goes back to his corner and hides.

Warshed November 27th, 2005 04:26 PM

Re: Increasing AI difficulty
 
Quote:

Xrati said:
The TDM Mod will increase the computer difficulty and so will the settings. What Warshed is looking for is in the actual code of the base program or the algorithms the computer uses to make its decisions. If the program were to be rewritten to accept a %u201Clunatic%u201D or %u201Csuicidal%u201D mode then it might attack. That would mean that the computer would just throw ships at you without regard to any future consideration. Although you could program a random event into the AI when certain conditions were met to launch a suicide attack. Like maybe if it had enough of obsolete ships to commit to the attack.

Yeah that is what I am looking for. I just think that whatever the computer uses to determine when to attack an enemy it is just plain screwed up. There have been too many games when the computer had tons and tons of ships and still didn't attack my systems. The only thing is that I don't want to program the computer to just wontonly throw ships at me, I want him to have a certain threshold, like 15 ships before he decides to send in a fleet (not the slow leak of one ship at a time).

Quote:

Xrati said:
Your AI would have to be very complex to assess the attack potential of its fleet and the composition of the defense fleet.

I don't think the AI would have to be overly complex. All the AI would have to do for a generic attack is look at the player rankings in technology and in number of ships. The computer can plug in the ratio and if the ratio is sufficiently in his favor then he would start attacking that player indefinitely (as long as they are at war) until the ratio wasn't in his favor anymore.

The same method could be used for computer players that want to bully players into a subjugation or tariff agreement. They merely need to look at what empires border them. Then do a check on those empires that border them for their ranking in various things (ie. ships and tech) and then send some nasty diplomatic ultimatum to those who ratio is extremely low and if the ultimatum is ignored, then they default to war.

Warshed November 27th, 2005 04:31 PM

Re: Increasing AI difficulty
 
I think the first Master of Orion did this ratio idea in order to gauge where, how often, and when to attack another empire. The AI would just do a ratio check each turn on the other empires and if the number of their ships were sufficiently low as compared to them, then they would start diplomatic threats and/or start warring.

Fyron November 27th, 2005 04:35 PM

Re: Increasing AI difficulty
 
If only programming AI was so simple...

Grandpa Kim November 27th, 2005 05:21 PM

Re: Increasing AI difficulty
 
Quote:

Imperator Fyron said:
If only programming AI was so simple...

It's not the difficulty, it's the will.

All the data is there. It's just a matter of gathering it and using it appropriately. Someone in these very forums (perhaps even you Fyron) said it: Not enough work has been done to perfect AI opponents in general in the software industry.

Xrati November 27th, 2005 08:23 PM

Re: Increasing AI difficulty
 
Remember that these people do this for a living. The people here who create mods and graphics do this for fun. If I were programming AI I would try to incorporate a random event to check for conditions that would activate a suicide attack. Like Fryon said. Programming AI is not that easy. You can’t have AI files in size that rival your game files.

Urendi Maleldil November 27th, 2005 08:24 PM

Re: Increasing AI difficulty
 
It's too bad there's no way to script the AI so they attack suicidally with obsolete ships. If they got rid of their ships through combat, it would save them on maintenance, and it would free up resources to build all those new ships they've been designing.

Fyron November 27th, 2005 08:30 PM

Re: Increasing AI difficulty
 
*cough* SE5 *cough*

Xrati November 27th, 2005 08:58 PM

Re: Increasing AI difficulty
 
Was that a sniffle or a sneeze? [img]/threads/images/Graemlins/Target.gif[/img]


All times are GMT -4. The time now is 05:31 PM.

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