Results 1 to 12 of 12

Thread: AI question

  1. #1

    Default AI question

    Is not news that many people want a stronger AI to have something more challenging and all that but, is it my impression or i might be mistaken but shouldnt the AI start with the upgrade of cities?. It doesnt matter how intelligent you make a game if in the ends it doesnt have that much power to show it. When u get to the later stages of the game u just feels u can take any army even being outnumbered.
    I think the AI should have this because unless this is addressed we will be having the same discussion about how easy the game is and eventually how BORING it has become.
    The object of war is not to die for your country but to make the other bastard die for his.

    ...George Patton

    History repeats itself because CA wasnt listening the first time (or any other)

  2. #2

    Default Re: AI question

    Giving the AI factions extra buildings through the campaign script is a good and easy way of helping the AI out. I do it a lot when modding. I first make all the factions a lot poorer in the strat file and then add stuff in the campaign script for all the AI factions. Works well.
    It's not a map.

  3. #3
    Cynic Senior Member sapi's Avatar
    Join Date
    Oct 2004
    Location
    Brisbane
    Posts
    4,970

    Default Re: AI question

    I'd have to disagree.

    For a modder, that's a good solution; but a dev should focus on fixing the problem (the way the campaign AI spends money and its inability to save) rather than the symptoms (low level cities).

    It's not a bad idea, but imo it's not the right one for the devs to focus on.
    From wise men, O Lord, protect us -anon
    The death of one man is a tragedy; the death of millions, a statistic -Stalin
    We can categorically state that we have not released man-eating badgers into the area -UK military spokesman Major Mike Shearer

  4. #4
    Masticator of Oreos Member Foz's Avatar
    Join Date
    Dec 2006
    Posts
    968

    Default Re: AI question

    Quote Originally Posted by sapi
    I'd have to disagree.

    For a modder, that's a good solution; but a dev should focus on fixing the problem (the way the campaign AI spends money and its inability to save) rather than the symptoms (low level cities).

    It's not a bad idea, but imo it's not the right one for the devs to focus on.
    I agree. If it's possible for a human to play the game well, then it is largely possible to make AI play the game on the same level. After all your decisions are based on something, and in a game like this that something is largely tangible - some surefire method you follow, or some particular way you react to a given situation. These reactions and decisions determine what and how you build, recruit, and in general how you go about successfully playing the game. The idea, then, is not to help the AI by giving it freebies, but to actually make it play more like a human by determining how players make the decisions they do. In the end this all boils down to mathematics. Somehow, when I have to decide what to build, I arrive at a clear choice by weighing different factors and ultimately deciding the relative importance of each possible choice using the information I have. So in theory the AI can mimic this by applying a formula that takes factors, weights them, and uses them to determine an importance value for each option. The whole thing sounds easy I know... but it's really not. Human thought is REALLY complex stuff! In the end though, I'd much rather have developers spending time simulating player logic than assigning the AI arbitrary perks to help it along. Those perks are simple enough to add at any given point, and if it falls on the members of the modding community to do that, I'd still much rather that than having the community try to invent AI decision-making logic. It seems only natural for devs to work hardest on the things that the community will not be able to change at all, and the things they can do that the community largely cannot...


    See my Sig+ below! (Don't see it? Get info here)

  5. #5
    dudes what's shakin' Member Katana's Avatar
    Join Date
    Aug 2004
    Posts
    97

    Default Re: AI question

    Quote Originally Posted by Foz
    Somehow, when I have to decide what to build, I arrive at a clear choice by weighing different factors and ultimately deciding the relative importance of each possible choice using the information I have. So in theory the AI can mimic this by applying a formula that takes factors, weights them, and uses them to determine an importance value for each option.
    indeed, assuming the values are weighted correctly, the ai would have perfect information and hence be able to make perfectly rational choices, and wax the average player.

  6. #6

    Default Re: AI question

    Quote Originally Posted by Katana
    indeed, assuming the values are weighted correctly, the ai would have perfect information and hence be able to make perfectly rational choices, and wax the average player.
    Depends on what's deemed "rational".

    I think what you'd do is set certain goals for the computer, the way a player does. A player builds a building because "Hey, I need to plan for my order situation when this city gets big" or "Hey, I want to build Janissary Musketeers here". So you set up those goals dependent on a myriad of factors: income, military situation, who your generals are, what faction you are, and go from there...

    Excuse me while I wax vaguely on into the night...

  7. #7
    Cynic Senior Member sapi's Avatar
    Join Date
    Oct 2004
    Location
    Brisbane
    Posts
    4,970

    Default Re: AI question

    I've said this before, but I think the major problem with the AI is not a lack of planning but an inability to plan.

    A human, while saving to create, say, janissary musketeers, would put off other construction and recruitment tasks in order to raise sufficient money.

    The AI always seems to find something to spend its cash on, and thus only lives from turn to turn.
    From wise men, O Lord, protect us -anon
    The death of one man is a tragedy; the death of millions, a statistic -Stalin
    We can categorically state that we have not released man-eating badgers into the area -UK military spokesman Major Mike Shearer

  8. #8
    Masticator of Oreos Member Foz's Avatar
    Join Date
    Dec 2006
    Posts
    968

    Default Re: AI question

    Quote Originally Posted by sapi
    I've said this before, but I think the major problem with the AI is not a lack of planning but an inability to plan.

    A human, while saving to create, say, janissary musketeers, would put off other construction and recruitment tasks in order to raise sufficient money.

    The AI always seems to find something to spend its cash on, and thus only lives from turn to turn.
    I don't remember where I saw it, but I think there's a slider in the game somewhere that controls the AI's disposition toward spending vs. saving. It defaults to 100% spend. I haven't really played with it much, but it's entirely possible that its default position is what prevents the AI from ever having the cash it would need to make really great buildings or plan for the future. In fact I don't think I've ever heard ANYONE talk about that particular slider... so it should probably be something we try to tinker with extensively ASAP, since it's quite likely in my estimation that it will have a very noticeable impact on AI behavior. Whether that translates into better development and planning, or will just make the AI sit on piles of cash, though, is hard to say without trying it.


    See my Sig+ below! (Don't see it? Get info here)

  9. #9
    Guest Gaius Terentius Varro's Avatar
    Join Date
    Sep 2006
    Location
    Spamming Thunder Braves
    Posts
    349

    Default Re: AI question

    That's because the slider only works if you allow the AI to manage YOUR cities

  10. #10
    Cynic Senior Member sapi's Avatar
    Join Date
    Oct 2004
    Location
    Brisbane
    Posts
    4,970

    Default Re: AI question

    Correct

    It's in the faction management section of the UI
    From wise men, O Lord, protect us -anon
    The death of one man is a tragedy; the death of millions, a statistic -Stalin
    We can categorically state that we have not released man-eating badgers into the area -UK military spokesman Major Mike Shearer

  11. #11

    Default Re: AI question

    It's not a bad idea, but imo it's not the right one for the devs to focus on.
    I agree it's not what you want CA to be working on. As a modding technique to compensate for AI problems though, especially at game start, it works very well.
    It's not a map.

  12. #12
    has a Senior Member HoreTore's Avatar
    Join Date
    Jan 2005
    Location
    Norway
    Posts
    12,014

    Default Re: AI question

    AI bonuses are the way to go to get a harder game IMO.

    The AI can only match the human brain IN THEORY. For the very complex games of today, a perfected AI isn't an option in reality. In games like Red Alert 1, it could be perfected. In this game, it can, but it would take years to create such an AI. It just isn't an option.

    Take another game, like Civ4, for example. It's extremely hard at the higher settings. Bump the difficulty up one level, and you'll lose even if you don't get a challenge at all at the level below. However, the AI as such isn't very different from the one in this game, although a little better. The reason the game is harder, is because of extreme AI bonuses. Sure, they send good attacks, but the reason they are good, is because they can afford huge armies because of their bonuses. If they didn't have those bonuses, the game would have been as easy as this game. It doesn't specialize, and it doesn't concentrate.

    In this game, I would welcome AI battle bonuses. Give their units +30% or so attack and defense + a morale bonus, and you'll have your challenge.
    Still maintain that crying on the pitch should warrant a 3 match ban

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO