![]() |
Re: SUGGESTION: AI troop building algorithm
Quote:
How good it is is debatable, though. And testable, so feel free to do a test game and report your findings. [ May 09, 2004, 21:36: Message edited by: Arralen ] |
Re: SUGGESTION: AI troop building algorithm
How about something to discourage the building of units that don't go well together? Like if the comp has 60% of his already built + will be built forces (measured by gold + resource value, not unit numbers, so one knight will be "more" than 2 militia) as units without missile weapons (exclude javelins and other such minor missiles)and with less than, say, 13 prot, it will feel less compelled to make Archers, Comp bowmen, slingers (excluding Mictlan warriors with slings) and Longbowmen. Maybe have it roll a 3 sided dice, and if it lands on 1, proceed with archer building, if not, abort. Having 60% or more of your army being units with 13 or greater prot makes the three dice roll apply when the comp wants to make crossbowmen and other artillery types.
A way to improve location might be to might be by giving forts that are closest to an enemy province (not indep) that borders on your province a higher priority when building. This will be measured in "provinces away," so a fort that's two provinces away from an enemy will have a higher priority than one that's three provinces away. The capital might be exempt from this rule since there are cap exclusive units. Maybe this can just work with unit Groups. Edit: There might also be an impact on troop building depending on the neighbor and his force's composition. If the AI "sees" enemy forces with many hoplites, it will bump down light infantry, and missile units production and train more heavy infantry, heavy cavalry, and artillery/crossbow type units. If it sees tramplers with morale lower than 11 and no berserking, it will build more missile units. But always bump up production in units that are as big as or bigger than the enemy's tramplers. Is that realistic? Edit: This also makes it possible to reform the difficulty system, where instead of cheating on pretender points (that's the current AI difficulty setting, no?) we can enable more AI features at harder levels and disabling AI features at easier ones so it actually plays smarter/dumber. For example, an impossible AI might know not to mix Knights with Crossbows and orders non-combat commanders to flee instantly, or give assassins optimal assassination equipment whilte an easy AI wouldn't care about unit mixes in combat and wouldn't equip assassins with good equipment. Edit: thought of something else. You could also factor in spell to troops synergy (I believe that's the right word for worky-togetherness). If the AI utilizes an army of light infants, it could be less inclined to cast flying shards, while friendly high prot units and hostile low prot units encourage it. It will not summon Air Elems when facing enemies composed of units bigger than the elems themselves. If it's got abysian or other heat resistant units, it will bump up desirability for heat spells. [ May 10, 2004, 03:18: Message edited by: HotNifeThruButr ] |
Re: SUGGESTION: AI troop building algorithm
From what I recall of the GalCiv AI (I was a beta on the OS/2 implementation - not that that means much of my understanding and programming skills), I believe that the basic module could be moved from game to game - Stardock's first Windows game was ... The Corporate Machine (? - seems odd, but then I recall some problems with the originally proposed name for the game) - a biz empire game - and the same core AI from GalCiv was moved to it. Anyway, I'm wondering aloud if it might be possible to license and adapt that AI. ... Could be too messy and too expensive, but then again, Brad Wardell (GalCiv head programmer) is a nice guy (tm) and it might be possible/not-too-expensive.
That said, the conVersion work involved could be gross - much as I liked the game, the feature set was spartan compared to that of Dominions II and it's possible that there are just too many options for the AI to cope. However, the AI was quite good at what it did. Brad had said that it was possible to put in a nearly "perfect" game player (economically) but that it made a very boring opponent. They had to add some stuff to spice up its antics. And on top of that were the "skins" - a couple of which were actually adapted from the play styles of some of the players. For those that have played the game, "Martzian" (sp?-been too long) AI was from one of the betas. |
Re: SUGGESTION: AI troop building algorithm
GalCiv is automatically the one to mention in any conversation about AI. But even Brad said it was years to get it converted to Windows. Id hate to think what it would take for windows, linux, mac-X, solaris. Some of Brads talking-papers on the subject might help.
Plugin AIs are great but any plugin has to have something to plug into with the right connections. It could be swappable modules, or importing player game saves (Brads method), or player scriptable (my personal favorite). But if I want to say </font><blockquote><font size="1" face="sans-serif, arial, verdana">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">IF ArmyA<100 and ArmyA(LI)>50 then buy HI </pre><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">then there needs to be labels for storing army and troop info. It needs to have been written or re-written to have lots and lots of grabbable labels. But if its linear. Going thru each nation one at a time and just spending their resources.. then I can suggest that "Buy LI, LI, LI, LI" might be better as "Buy LI, LI, HI, Calvary". Of course I should test it first. Anyone should be able to play a game as an AI. Only buying or building by the formula with no extra.. well OK, I couldnt do that. Not for more than a dozen turns or so. But SOMEONE might be able to. [ May 10, 2004, 19:08: Message edited by: Gandalf Parker ] |
Re: SUGGESTION: AI troop building algorithm
Galactic Civilizations? I bought that game and thought it was a waste of 30 bucks. Didn't give it much of a chance though.
|
Re: SUGGESTION: AI troop building algorithm
It is a good game with a good AI.
But I still recommend HoMM3. Awesome AI. Not as many units/spells like in Dom2, but still lot of different units/spells. Also in Doms2, the majority of the units are 'useless', just like the spells. Quantity <<< Quality. |
Re: SUGGESTION: AI troop building algorithm
Quote:
|
Re: SUGGESTION: AI troop building algorithm
Quote:
|
Re: SUGGESTION: AI troop building algorithm
That is true...you were right, this was my example. pI am never using LI for example, but maybe it is useful as well, just not for the AI.]
|
Re: SUGGESTION: AI troop building algorithm
Quote:
http://www.politik-intern.de/bilder/...1/screeny1.png [ May 28, 2004, 15:26: Message edited by: Arralen ] |
All times are GMT -4. The time now is 08:34 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.