Results 1 to 10 of 10

Thread: How hard is modding just AI?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default How hard is modding just AI?

    RTW2 has been getting me in the mood for TW and the engine looks amazing on the new Teutoborg walkthru. However, the game has gotten downright stupid in terms of AI (battlefield, strategy map, and diplomacy) over the last few games.

    How hard is it to mod AI for these things in the previous games? I long ago figured out that if I simply scripted faction specific AI sequences I could create a mathematically driven AI that is FAR better than the garbage AI CA likes to put out.

    Basically, I program the computer to weigh opportunities to take things important to a faction (setup a faction wishlist), create a running score in terms of desire to do something (+s) and costs/risks to do it (-s) to drive AI action. Funny thing, I can program it in Excel formulas using tables/arrays of commands based on state of the world, faction desires, etc. I just don't know what CA uses for AI (assuming there is more than 10 lines of behavioral scripting other than "Attack Player without regard").

    I've also never understood the lack of a basic Battle AI - on defense, plant spears up front, have archers on skirmish in thin line up front, let them fall back behind spears. Swords in mid reserve, cavalry on flanks. Such a basic position yet the AI doesn't quite get the concept, choosing worthless formations that break morale and lose 3-4x casualties.

  2. #2
    In the shadows... Member Vuk's Avatar
    Join Date
    Jul 2006
    Location
    R.I.P. TosaInu In the shadows...
    Posts
    5,992

    Default Re: How hard is modding just AI?

    It is a lot more complicated than that mate.
    Hammer, anvil, forge and fire, chase away The Hoofed Liar. Roof and doorway, block and beam, chase The Trickster from our dreams.
    Vigilance is our shield, that protects us from our squalid past. Knowledge is our weapon, with which we carve a path to an enlightened future.

    Everything you need to know about Kadagar_AV:
    Quote Originally Posted by Kadagar_AV View Post
    In a racial conflict I'd have no problem popping off some negroes.

  3. #3

    Default Re: How hard is modding just AI?

    Quote Originally Posted by Vuk View Post
    It is a lot more complicated than that mate.
    What a shame.

    I was unaware of all of that history Lemur.

    That really sucks, given they put zero effort into it, I wonder why they are hardcoding the AI.

  4. #4
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Default Re: How hard is modding just AI?

    Quote Originally Posted by dracop View Post
    given they put zero effort into it
    Well, that doesn't seem entirely fair. If they actually put "zero" effort into the AI armies would not move, soldiers would not attack, the campaign map would be static, etc.

    It's one thing to say that you believe the AI needs a whole lot of improving; quite another to claim it doesn't exist.

  5. #5
    Senior Member Senior Member ReluctantSamurai's Avatar
    Join Date
    Feb 2008
    Location
    USA
    Posts
    2,483

    Default Re: How hard is modding just AI?

    Part of the problem, as I understand it, is that the AI has difficulty dealing with the complex campaign map. Now I haven't played STW2 as of yet, so I can't speak to recent developments. I do know that in the original RTW, something as simple as a counting algorithm was sorely needed to meet AI-led factions needs. It was so sad to see the AI creating huge naval fleets for a particular faction when that faction's cities were falling one-by-one for lack of ground troops.

    The battlefield AI has also left much to be desired but I'm sure it's not an easy thing to program an AI to understand how to use all the myriad of troop types now available in TW games. In that respect, no AI will ever be able to compete with MP gaming......at least not yet
    High Plains Drifter

  6. #6
    Strategist and Storyteller Senior Member Myth's Avatar
    Join Date
    Apr 2010
    Posts
    3,921

    Default Re: How hard is modding just AI?

    Quote Originally Posted by ReluctantSamurai View Post
    Part of the problem, as I understand it, is that the AI has difficulty dealing with the complex campaign map. Now I haven't played STW2 as of yet, so I can't speak to recent developments. I do know that in the original RTW, something as simple as a counting algorithm was sorely needed to meet AI-led factions needs. It was so sad to see the AI creating huge naval fleets for a particular faction when that faction's cities were falling one-by-one for lack of ground troops.

    The battlefield AI has also left much to be desired but I'm sure it's not an easy thing to program an AI to understand how to use all the myriad of troop types now available in TW games. In that respect, no AI will ever be able to compete with MP gaming......at least not yet
    The AI is much better in Shogun II. It can make amphibious landings, it uses massed fleets correctly, it marches stacks side-by-side and so on. It does still sometimes leave a good general alone whilst leading a stack with a newbie, but the game abounds in ninjas and geisha anyway so you don't see many generals surviving for more than 5 turns.
    The art of war, then, is governed by five constant
    factors, to be taken into account in one's deliberations,
    when seeking to determine the conditions obtaining in the field.

    These are: (1) The Moral Law; (2) Heaven; (3) Earth;
    (4) The Commander; (5) Method and discipline.
    Sun Tzu, "The Art of War"
    Like totalwar.org on Facebook!

  7. #7
    Nobody expects the Senior Member Lemur's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin Death Trip
    Posts
    15,754

    Default Re: How hard is modding just AI?

    Quote Originally Posted by dracop View Post
    How hard is it to mod AI for these things in the previous games?
    Hmm, CA's line on this has always been that the AI of TW games is hardcoded. So modders can play with setups and conditions that bring out the behavior they're looking for, but supposedly modding the AI itself is a non-starter.

    I seem to recall that this was the source of the big tiff between DarthMod and CA; didn't he claim to improve the AI, CA said "Nuh-uh," and he took his toys and went home?

    Please feel free to correct and clarify everything I'm saying ...

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