Results 1 to 16 of 16

Thread: AI using guard mode at inopportune moments

  1. #1
    Member Member TWFanatic's Avatar
    Join Date
    Aug 2007
    Location
    On the Forums
    Posts
    1,022

    Default AI using guard mode at inopportune moments

    Is there any way to make the AI stop using guard mode? This is why I ask:



    It is really quite annoying to have enemy formations perpendicular to mine.

    I’ve heard that the formations file controls this. If that is so, what area do I need to edit?

    Thanks in advance.
    It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
    Ego is the anesthetic for the pain of stupidity.-me
    It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
    ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
    Click here for my Phalanx/Aquilifer mod

  2. #2
    Member Member stupac's Avatar
    Join Date
    Jan 2007
    Location
    This place called 'rooms,' there's a whole chain of them.
    Posts
    287

    Default Re: AI using guard mode at inopportune moments

    Are you using any mini-mod formation files? I have this problem all the time and I've used several formation minimods, such as Darths and Sinhuts(sp?). So if you aren't, it must be hard coded or something. On larger battles it doesn't seem to make as much difference, I usually try to approach the AI head on, unless I'm trying to exploit there guard mode.
    Colder than a gut-shot bitch wolf dog with nine suckin' pups pulling a #4 trap up a hill in the dead of winter in the middle of a snowstorm with a mouth full of porcupine quills.

    My videos

  3. #3
    Member Member TWFanatic's Avatar
    Join Date
    Aug 2007
    Location
    On the Forums
    Posts
    1,022

    Default Re: AI using guard mode at inopportune moments

    The answer to your question is yes, but I get the problem with the vanilla formation files too.
    It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
    Ego is the anesthetic for the pain of stupidity.-me
    It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
    ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
    Click here for my Phalanx/Aquilifer mod

  4. #4
    Whatever Member konny's Avatar
    Join Date
    Oct 2007
    Location
    Germania Inferior
    Posts
    1,787

    Default AW: AI using guard mode at inopportune moments

    I had this very much with Sinuhet's files, but not with Darth's. I think it is triggered by the default-melee-stance (or what is it called), that Sinuhet uses very much and Darth not at all.

    Disclaimer: my posts are to be considered my private opinion and not offical statements by the EB Team

  5. #5
    Member Member TWFanatic's Avatar
    Join Date
    Aug 2007
    Location
    On the Forums
    Posts
    1,022

    Default Re: AI using guard mode at inopportune moments

    Thanks konny, I'll try Darth then.

    EDIT: Hey! I use Darth.
    Last edited by TWFanatic; 07-25-2008 at 16:01.
    It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
    Ego is the anesthetic for the pain of stupidity.-me
    It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
    ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
    Click here for my Phalanx/Aquilifer mod

  6. #6
    The Aspiring God Of War Member Lysander13's Avatar
    Join Date
    Nov 2006
    Location
    Leading the assault against the Gods at Mount Olympos itself.
    Posts
    373

    Default Re: AI using guard mode at inopportune moments

    The code for guard mode is prevalent in all formations. EB's, Darth's, Sinuhet's and going back to Vanilla Formations. The problem isn't with any of those formations themselves, even vanilla formations for that matter. None of them handle it any better than the other. Because it isn't a formations problem, IMO. The problem is that the player has the significant advantage of when to toggle guard mode on and off during the course of battle at will. Where as the AI, it's painfully apparant, does not have the capability of being as selective. So when the defend flag in the formations is toggled, so to speak, units that are called upon to use guard mode stay stuck in it because the AI cannot discern when it should rid itself of it. That is, until the formation toggles again to attack or attack/defend. Which usually will not happen unless the player disengages, is routed or of course the AI is routed. Removing all instances of guard mode from the code for the AI is not much better either. Particularly in the case of phalanx and heavy spearmen units, where they clearly benefit from it's use. Especially in the front lines or when attempting to hold the center. It can even benefit from it in trying to hold a flank if it get's into position quick enough. That is until it's obvious they should clearly get out of it. I once played around a lot with this and if IIRC, noticed some really strange things, particularly with spearmen and pikemen by removing all instances of guard mode from the formations. Especially with front line units who are the first to engage in melee. Guard mode is great for the player. The AI unfortunately doesn't get the same benefit from it as the player in the same fashion. As it is a "linear thinker" by design, no matter the obsticles or drubbing it's taking and doesn't enjoy the luxury of being as creative as the player with it. Formations won't fix this and not using it at all in the code hampers the AI even further. If there is such a thing. At least in my opinion anway.

  7. #7
    Member Member TWFanatic's Avatar
    Join Date
    Aug 2007
    Location
    On the Forums
    Posts
    1,022

    Default Re: AI using guard mode at inopportune moments

    Interesting post Lysander, thanks for the info.

    As a three-year multiplayer veteran, I have to disagree about guard mode: non-Macedonian phalanx (units without the phalanx special ability) fight considerably worse with guard mode on in almost all circumstances. I would rather just remove guard mode altogether as an option for the AI (except with Macedonian phalanxes) if possible. How might one go about this?
    It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
    Ego is the anesthetic for the pain of stupidity.-me
    It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
    ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
    Click here for my Phalanx/Aquilifer mod

  8. #8

    Default Re: AI using guard mode at inopportune moments

    DarthFormations is utterly amazing. I wholly reccomend it for anyone.

  9. #9
    Whatever Member konny's Avatar
    Join Date
    Oct 2007
    Location
    Germania Inferior
    Posts
    1,787

    Default AW: Re: AI using guard mode at inopportune moments

    Quote Originally Posted by TWFanatic View Post
    Thanks konny, I'll try Darth then.

    EDIT: Hey! I use Darth.
    Oh? I had the same problem when changing from EB formations to Sinuhet's: nearly all AI units were in guard mode. The problem disappeared when changing from that to Darth's formation.

    Disclaimer: my posts are to be considered my private opinion and not offical statements by the EB Team

  10. #10

    Default Re: AW: Re: AI using guard mode at inopportune moments

    Quote Originally Posted by konny View Post
    Oh? I had the same problem when changing from EB formations to Sinuhet's: nearly all AI units were in guard mode. The problem disappeared when changing from that to Darth's formation.
    I would honestly avoid Sinuhet's formations, I just find they don't qork as well as Darth's. This isn't to say that they're bad, just that Darth's are so much better.

  11. #11
    The Aspiring God Of War Member Lysander13's Avatar
    Join Date
    Nov 2006
    Location
    Leading the assault against the Gods at Mount Olympos itself.
    Posts
    373

    Default Re: AI using guard mode at inopportune moments

    Quote Originally Posted by Lysander13 View Post
    The code for guard mode is prevalent in all formations.
    Pardon me for qouting myself. I do so only to retract the above comment. As it is completely false. Konny and TWF got me curious about this again as it's been awhile since i really played around with this and i posted really out of memory as oppose to fact. So i played around with it a bit last night. First of all, the code for guard mode is not prevalent in all formations...ie...EB, Darth, Sinuhet, & Vanilla. As a matter of fact here's the actual breakdown of how many times guard mode is called for in the code in the various formations.

    Sinuhet Formations: 174
    Darth Formations: 38
    EB Formations: 5
    Vanilla Formations: 0

    Obviously, this is a big difference and by definition Konny is absolutely correct. Sinuhet does call for it more. A few things to note here are that the Sinuhet file is significantly bigger than the other 3. Especially EB's and Vanilla's. So there are more fomations and oppurtunities to call for guard mode.....here's the thing though. In messing around and running a few tests last night. The AI still has the ability to call for guard mode, whether the code is in the formation or not, when the defend flag is toggled in the formation set. Which is why i remembered it happening in all formations and from faulty memory claimed the code was prevalent in all them. Which of course from looking at the above numbers is absolutely incorrect. The question for me here is, especially since i use Sinuhet Formations...How much better off will the AI be if one doesn't call for guard mode at all or very little in the formation file and leave it totally to the AI? Really, i'm just talking about Sinuhet Formations here since the other 3 use it very little if at all. Darth Formations uses it only for the Greek and Makedonian Formations for the most part by the way, with phalanx units featuring heavily.

    This may require a bit of testing....Gah!! Testing formations is so annoying.....

  12. #12
    Whatever Member konny's Avatar
    Join Date
    Oct 2007
    Location
    Germania Inferior
    Posts
    1,787

    Default AW: AI using guard mode at inopportune moments

    I found that Sinuhet's file did the AI better on small scale defensive battles because it tended to keep its formation much better. When holding a line of three or four units against an enemy of three or four units, guard mode isn't the worst to toggle on. But that becomes a serious problem in large scale battles because having twenty units on the field on either side requires more movement, and will lead more often to flanking situations, even if the player, like me, in general avoids to much flanking against the poor AI.

    Disclaimer: my posts are to be considered my private opinion and not offical statements by the EB Team

  13. #13
    Member Member TWFanatic's Avatar
    Join Date
    Aug 2007
    Location
    On the Forums
    Posts
    1,022

    Default Re: AI using guard mode at inopportune moments

    Interesting finds Lysander.

    Darth Formations uses it only for the Greek and Makedonian Formations for the most part
    Would it be possible to remove guard mode from all units except for Macedonian phalanxes?
    It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
    Ego is the anesthetic for the pain of stupidity.-me
    It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
    ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
    Click here for my Phalanx/Aquilifer mod

  14. #14
    Member Member Woreczko's Avatar
    Join Date
    May 2004
    Location
    deep province in Masovia
    Posts
    121

    Default Re: AI using guard mode at inopportune moments

    Actually macedonian phalanxes do better without the guard mode. In phalanx they will keep formation anyway, and with guard off they kill faster. Guard mode is best used, when you want to hold the line as long as possible with inferior troops.

  15. #15
    Whatever Member konny's Avatar
    Join Date
    Oct 2007
    Location
    Germania Inferior
    Posts
    1,787

    Default AW: Re: AI using guard mode at inopportune moments

    Quote Originally Posted by TWFanatic View Post
    Would it be possible to remove guard mode from all units except for Macedonian phalanxes?
    I think this is triggered by the "default_melee_state defend". When you remove it from all units save the long pike phalanx, you should have it. As far as I know, what is not much in modding the formations file, triggering any default_melee_state will disable the others for the AI. That would be "default_melee_state engage_at_will" would disable guard mode.

    Disclaimer: my posts are to be considered my private opinion and not offical statements by the EB Team

  16. #16
    Member Member TWFanatic's Avatar
    Join Date
    Aug 2007
    Location
    On the Forums
    Posts
    1,022

    Default Re: AI using guard mode at inopportune moments

    Thanx, I'll try that Konny.
    It would be a violation of my code as a gentleman to engage in a battle of wits with an unarmed person.-Veeblefester
    Ego is the anesthetic for the pain of stupidity.-me
    It is better to keep your mouth shut and be thought of as a fool than to open it and remove all doubt.-Sir Winston Churchill
    ΔΟΣ ΜΟΙ ΠΑ ΣΤΩ ΚΑΙ ΤΑΝ ΓΑΝ ΚΙΝΑΣΩ--Give me a place to stand and I will move the earth.-Archimedes on his work with levers
    Click here for my Phalanx/Aquilifer mod

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