Results 1 to 7 of 7

Thread: How to reduce the number of command stars for AI generals?

  1. #1

    Default How to reduce the number of command stars for AI generals?

    Iímplaying a mod right now where all of the AI faction generals have 8or 9 command stars right from the start. I

    would like to lower thosenumbers as much as possible. Should I look in the export descrcharacter traits file? If so,

    Iíve already tried, but I couldnítanything that looked promising. If anyone has any ideas or pointers,I would be most

    appreciative. Thanks!

    Roland searched the continent for the man who'd done him in
    He found him in Mombasa in a barroom drinking gin
    Roland aimed his Thompson gun. He didn't say a word
    But he blew Van Owen's body from there to Johannesburg
    - Warren Zevon - Roland the Headless Thompson Gunner - 1978

  2. #2

    Default Re: How to reduce the number of command stars for AI generals?

    Search for 'Effect Command' in export_descr_ancillaries.txt and export_descr_character_traits.txt. Then check the triggers for the traits and ancillaries that grant command. If you're sure these Command levels are only for AI generals, you can also try searching the likely conditions for AI factions such as CharacterIsLocal, FactionIsLocal, I_LocalFaction, I_IsFactionAIControlled, etc.

  3. #3

    Default Re: How to reduce the number of command stars for AI generals?

    Thanks Callistonian, but I see nothing about affect or affects command in either file. I do, however, see plenty of affects this or that in the export_descr_character_traits file. I haven't sorted through the entire very long list yet, but I will look through more carefully when I have more time. So thank you for that.

    I should emphasize, these AI command stars are not acquired throughout the gameplay and life of the AI generals. These generals all start the game with 8 or 9 stars. It is the modders way, I believe, to try to make the game more difficult.
    Roland searched the continent for the man who'd done him in
    He found him in Mombasa in a barroom drinking gin
    Roland aimed his Thompson gun. He didn't say a word
    But he blew Van Owen's body from there to Johannesburg
    - Warren Zevon - Roland the Headless Thompson Gunner - 1978

  4. #4

    Default Re: How to reduce the number of command stars for AI generals?

    You must spell it correctly: "Effect Command". "Affect" is a verb or a facial expression, and isn't a reserve word in either file. I can almost guarantee that "Effect Command" will return results in both files of just about any mod. Try using a space or a tab between the words. If the mod is using EOP, all bets are off, they could be setting the command attribute directly in any number of Lua files.

    As an aside, it's strange to me that any mod would opt to use the command attribute as an AI bonus since that attribute is next to meaningless in Medieval II, at least compared to RTW. For one thing, all M2 units have much higher morale which means battles are determined primarily by melee attack/defend stats rather than morale effects, and for another thing almost all AI armies are led by captains - both are features which, at least in my opinion, were broken when CA built M2 on RTW's engine.

  5. #5

    Default Re: How to reduce the number of command stars for AI generals?

    Thank you for the grammar pointers. I did see both the noun and the verb:

    Lots of Affects:

    Trigger GovernTaxCityExtortionate
    WhenToTest CharacterTurnEnd


    Condition GovernorTaxLevel = tax_extortionate
    and SettlementBuildingExists >= wooden_pallisade
    and SettlementBuildingExists > market
    and CharacterIsLocal
    and TimeInRegion > 4
    ; and Trait Wealth < 9
    ; and FactionLeaderTrait CentralisedPower <= 1


    Affects Wealth 3 Chance 100
    Affects Earn 3 Chance 100
    Affects TreasuryCost 3 Chance 100
    Affects TaxEffect 3 Chance 100
    Affects Hundreds 3 Chance 100

    but yes, with the proper Notepad search, I now see plenty of Effect Command too:

    Line 1251: Effect Command 1
    Line 1262: Effect Command 1
    Line 1273: Effect Command 1
    Line 1285: Effect Command 1
    Line 1297: Effect Command 2
    Line 1310: Effect Command 2
    Line 1323: Effect Command 2
    Line 1335: ; Effect Command 2
    Line 1365: Effect Command 1
    Line 1379: Effect Command 2
    Line 1400: Effect Command 3
    Line 1440: Effect Command 1
    Line 1456: Effect Command 1
    Line 1468: Effect Command 3
    Line 1483: Effect Command 1
    Line 1498: Effect Command 1
    Line 1512: Effect Command 1
    Line 1524: Effect Command 1
    Line 1538: Effect Command 1
    Line 2679: Effect Command 1
    Line 2708: Effect Command 1
    Line 2884: Effect Command 1
    Line 4471: Effect Command -3
    Line 6089: Effect Command 2
    Line 6388: Effect Command 1
    Line 6669: Effect Command 1
    Line 6680: Effect Command 1
    Line 6766: Effect Command 1
    Line 6830: Effect Command 1
    Line 6862: Effect Command 1
    Line 8326: Effect Command -1
    Line 8421: Effect Command -1
    Line 8701: Effect Command -2
    Line 8712: Effect Command 2
    Line 9028: Effect Command 1
    Line 9344: Effect Command 1
    Line 9354: Effect Command 2
    Line 9367: Effect Command 3
    Line 9522: Effect Command 1
    Line 9534: Effect Command 2
    Line 9548: Effect Command 3
    Line 9639: Effect Command 1
    Line 9669: Effect Command -1
    Line 9737: Effect Command -1
    Line 9746: Effect Command -2
    Line 9758: Effect Command 1
    Line 9779: Effect Command 1
    Line 9804: Effect Command -1
    Line 9842: Effect Command 1
    Line 9919: Effect Command 2
    Line 9935: Effect Command 1
    Line 9952: Effect Command 2
    Line 9969: Effect Command 1
    Line 10447: Effect Command 1
    Line 10456: Effect Command 2
    Line 10465: Effect Command 3
    Line 10604: Effect Command 1
    Line 10613: Effect Command 2
    Line 10622: Effect Command 3
    Line 10790: Effect Command -4
    Line 10805: Effect Command -1
    Line 12739: Effect Command 1
    Line 13265: Effect Command 1
    Line 13275: Effect Command 1
    Line 13569: Effect Command 1
    Line 13577: Effect Command 2
    Line 13586: Effect Command 3
    Line 13596: Effect Command 4
    Line 13608: Effect Command 5
    Line 13623: Effect Command -1
    Line 13630: Effect Command -2
    Line 13639: Effect Command -3
    Line 13651: Effect Command -5
    Line 13750: Effect Command 1
    Line 13783: Effect Command -1
    Line 14001: Effect Command -1
    Line 14014: Effect Command -1
    Line 15948: Effect Command 1
    Line 15958: Effect Command 1
    Line 15968: Effect Command 2
    Line 15983: Effect Command 1
    Line 15990: Effect Command 2
    Line 15997: Effect Command 3
    Line 16004: Effect Command 4
    Line 16019: Effect Command 1
    Line 16034: Effect Command -1
    Line 16043: Effect Command -2
    Line 16052: Effect Command -3
    Line 16063: Effect Command -5
    Line 16078: Effect Command 1
    Line 16085: Effect Command 1
    Line 16095: Effect Command 1
    Line 16112: Effect Command 1
    Line 16122: Effect Command 1
    Line 16174: Effect Command -1
    Line 16183: Effect Command -3
    Line 16621: Effect Command -1
    Line 16727: Effect Command -1
    Line 16734: Effect Command -2
    Line 16743: Effect Command -3
    Line 17039: Effect Command -1
    Line 17048: Effect Command -2
    Line 18016: Effect Command -1
    Line 18025: Effect Command -1
    Line 18035: Effect Command -2
    Line 18046: Effect Command -3
    Line 18084: Effect Command -1
    Line 18106: Effect Command 1
    Line 18114: Effect Command 1
    Line 18123: Effect Command 1
    Line 18479: Effect Command -1
    Line 18488: Effect Command -2
    Line 18500: Effect Command -3
    Line 18518: Effect Command 1
    Line 18527: Effect Command 1
    Line 18536: Effect Command -1
    Line 18586: Effect Command 1
    Line 18596: Effect Command 2
    Line 18661: Effect Command -1
    Line 18733: Effect Command -2
    Line 18741: Effect Command -4
    Line 18749: Effect Command -6
    Line 19162: Effect Command -1
    Line 19177: Effect Command -1
    Line 21826: Effect Command 1
    Line 21838: Effect Command 2
    Line 21850: Effect Command 3
    Line 21881: Effect Command 1
    Line 21893: Effect Command 2
    Line 21905: Effect Command 3
    Line 21940: Effect Command 1
    Line 21953: Effect Command 2
    Line 21966: Effect Command 3
    Line 21999: Effect Command 1
    Line 22011: Effect Command 2
    Line 22023: Effect Command 3
    Line 22056: Effect Command 1
    Line 22068: Effect Command 2
    Line 22080: Effect Command 3
    Line 22767: Effect Command 3
    Line 22897: Effect Command -1
    Line 22905: Effect Command -2
    Line 22965: Effect Command -1
    Line 22976: Effect Command -2
    Line 22987: Effect Command -3
    Line 22997: Effect Command -5
    Line 23112: Effect Command -2
    Line 23271: Effect Command -1
    Line 23281: ; Effect Command 1
    Line 23357: Effect Command -1
    Line 23369: Effect Command -1
    Line 23383: Effect Command -2
    Line 23397: Effect Command -2
    Line 23884: Effect Command -4
    Line 23896: Effect Command -3
    Line 23908: Effect Command -2
    Line 23920: Effect Command -1
    Line 24464: Effect Command -3
    Line 24480: Effect Command -3
    Line 24496: Effect Command -3
    Line 24512: Effect Command -3
    Line 25932: Effect Command -2

    According to Leeekaaa, the main author of the mod who kindly responded to my inquiry, in Russian, the English translation of which gets me:

    In the setup, select 0% amplification of the generals through the trailers. This is more than enough.
    Other free bonuses to the command are still in the annihas of the dynasties.

    Well, of course I have looked carefully in the Bulat_Steel_Set-up.exe, if that i indeed what he is referring to, but I see nothing that has anything to do with generals. I think I can find the other bonuses in the dynasties, but they probably not what I really want.

    I understand what you say about morale, and I have already lowered the absurdly high mental_stats in the edu to about Stainless Steel or SHHIP levels. Bulat Steel had them so high that units would never route regardless of player tactics, so the battle simply devolved to whichever side had the more powerful units. However, I still had to set the Battle AI to Easy in order to achieve a victory against an evenly matched force. I assume that this may perhaps be due all of the 10-star AI generals (though I could be wrong). Playing on Easy Battle Difficulty worked - I was able to defeat these 10-star generals with evenly matched forces, but then when the AI had no 10-star generals in command, and merely a captain, they routed at the drop of a hat. So setting Battle AI to easy is not the preferred situation either. I was hoping that getting ride of most of the stars for the AI generals might make playing on Medium Battle Difficulty feasible.
    Last edited by Kilgore Trout; June 17, 2024 at 02:57 AM.
    Roland searched the continent for the man who'd done him in
    He found him in Mombasa in a barroom drinking gin
    Roland aimed his Thompson gun. He didn't say a word
    But he blew Van Owen's body from there to Johannesburg
    - Warren Zevon - Roland the Headless Thompson Gunner - 1978

  6. #6

    Default Re: How to reduce the number of command stars for AI generals?

    Traits and ancillaries have "Effect" for attributes. Triggers have "Affects" for traits and ancillaries. You would first find which traits/ancillaries have "Effect Command" and then you can approach it from either direction: reducing the command effects of the traits/ancillaries or editing the triggers that grant these traits. If you opt for the latter route, you should also check descr_strat and campaign_script to see if any traits/ancillaries are added in those files.

    I can't help with a custom launcher for the specific mod, which seems to be what Leeekaaa is referring to. If the mod is using a launcher that renames or moves data files, you might be editing the wrong copy of export_descr_character_traits, etc. You should test to be sure any of your edits are taking effect.

    From what I recall, the easy difficulty settings add maluses for the AI, medium does nothing, and hard and very_hard add bonuses. This is, of course, only referring to the hard coded effects of the difficulty settings, not any script-induced effects a modder may have added. I don't recall exactly what the hard coded difficulty effects are. For the strategy map, it's things like population growth and public order and for the battle map it's things like unit morale. Jojo or Serious Potato are probably the best people to ask about this if you really want to know.

    Quote Originally Posted by Kilgore Trout
    I understand what you say about morale, and I have already lowered the absurdly high mental_stats in the edu to about Stainless Steel or SHHIP levels. Bulat Steel had them so high that units would never route regardless of player tactics, so the battle simply devolved to whichever side had the more powerful units.
    I don't know how people can enjoy playing the game like that, but it sure is popular in the modding community. I mean sure, setting absurdly high morale, armor, etc. gives you more time to appreciate the man-to-man combat animations, but it also very nearly removes micromanagement from the game as well as a bunch of interesting mechanics like general command stars, general abilities, unit frighten_infantry, frighten_mounted, and lock_morale attributes, etc. In my opinion, the first and most important factor that determines the outcome of battles should be which side has the better morale. The side with inferior morale should need to enjoy a clear quantitative or qualitative advantage to pull a win. But that's just like... my opinion, man.

  7. #7

    Default Re: How to reduce the number of command stars for AI generals?

    Thank you, Callistonian. I may look into this further in the future, but for now I have switched from Bulat Steel to SHHIP instead. Aside from the fact that SHHIP is lacking the Germanicu5 ReallyBadAI Hardcore Addon, which Bulat Steel does include, I think I prefer the SHHIP mod. Also, Bulat Steel has a new edition which I will download shortly which I think includes the set-up files that Leeekaaa mentioned to me concerning the lowering of AI generals command stars. So no more worries about Bulat Steel command stars for the time being either way. Thanks again for your help.
    Last edited by Kilgore Trout; June 30, 2024 at 04:36 AM.
    Roland searched the continent for the man who'd done him in
    He found him in Mombasa in a barroom drinking gin
    Roland aimed his Thompson gun. He didn't say a word
    But he blew Van Owen's body from there to Johannesburg
    - Warren Zevon - Roland the Headless Thompson Gunner - 1978

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •