Results 1 to 18 of 18

Thread: How Do I Exclude Certain Units From CPU Opponents Recruitment?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Libertus
    Join Date
    Jan 2008
    Location
    UK
    Posts
    72

    Icon5 How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Is there a way to stop the CPU opponent recruiting certain units? For example, if I hate playing against Elephants, is there a way to mod some text file somewhere and delete lines referring to any elephant unit so that in-game, they will no longer be available for recruitment?

  2. #2

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    No, there is no simple way to achieve this, because of how the AI's recruitment system is programmed. See http://www.twcenter.net/forums/showthread.php?t=104934.

    A somewhat-painful but equivalent way is: create a modfolder and just edit the EDU so that the elephant units can only be recruited by either yourself, or nobody. Or, just make those units 10x more expensive to prevent the AI from selecting them for recruitment.

  3. #3
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Very simple way, create a script that sets an event at the beginning of the local player's turn and then use that event to limit recruitment in EDB.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Even simpler; just remove them from descr_mercenaries and edb, job done.

  5. #5

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by Taiji View Post
    Even simpler; just remove them from descr_mercenaries and edb, job done.
    Hi, master Taiji, Fi I do this form the said files will it be removed from custom battles option. As I'm thinking there is a limit to units per faction. I'm wanting to swap rather than remove units as to keep under the 500 units thing in EDU.Please advise.

  6. #6
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by Lord Ragnar View Post
    Hi, master Taiji, Fi I do this form the said files will it be removed from custom battles option.
    No. What shows up for custom battles is determined by the 'era' lines for those units in the EDU.

    Quote Originally Posted by Lord Ragnar View Post
    As I'm thinking there is a limit to units per faction.
    There's a limit of 500 units per faction only because the EDU is limited that way.

    Quote Originally Posted by Lord Ragnar View Post
    I'm wanting to swap rather than remove units as to keep under the 500 units thing in EDU.Please advise.
    Simplest way to swap units is to change the names of the files to match the names of the files they are to be swapped with. Then replace the old files with the new. Then change the stats and unit description. Done.

  7. #7

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by Taiji View Post
    No. What shows up for custom battles is determined by the 'era' lines for those units in the EDU.



    There's a limit of 500 units per faction only because the EDU is limited that way.



    Simplest way to swap units is to change the names of the files to match the names of the files they are to be swapped with. Then replace the old files with the new. Then change the stats and unit description. Done.
    Thanks Master Taiji. Iv'e say removed a unit from said EDU replaced with new unit in EDU & EDB. However on replacing the sixth unit the game crashed.Q. have still only got 500 in EDU,but is the era lines or custom battles have unit number limits. I've tried on the sixth replacement with 8 different type of new unit styles.So can you max out the custom_battles era files.Please advise.Respect

  8. #8
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Assuming you aren't exceeding the EDU limit then you're doing something else wrong when you do that 6th unit. Try checking your log, it's the first place to look.

  9. #9

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by Taiji View Post
    Assuming you aren't exceeding the EDU limit then you're doing something else wrong when you do that 6th unit. Try checking your log, it's the first place to look.
    Thanks Master Taiji. Game runs fine then I remove ballesta things(sorry forgot what they called) from EDU and EDB. Then placed a unit in the empty place. The game ctd, then I tried it from scratch with the merc seige units(rockets say) same thing. And that is after searching the CS and desc_strat files,merc_text files. So why do the removed units still show up in the custom battle options, uuuuuuuuuuuuuuuuuuuuuurrrrrrrrrrrJust a thourght,dose the Modeldb have a limit,as I havn't removed the deleted units specs,I just added the new units specs and increased the number at the top.

  10. #10
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Did you go through the animation files for the right projectiles for them?

  11. #11

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by irishron View Post
    Did you go through the animation files for the right projectiles for them?
    Ok,Sorry Master Irishron & Master Taiji. clear questions. Q is there a limit of number of units details in the Modelbattle db file? Q is there a limit of unit cards that can be used in the options on the custom battle section ie.choose all eras, choose faction, shows 120 card slots per faction,(not all filled depending on faction) Is this a limit 120? Q If units were a clean case of swapped units from mod 'A' to mod 'B' and that both units are still present on the card option in the CB options. however this would make it 121 unit cards in the CB options, would this CTD the game? If so,do i have to remove eras options from units of the faction in the EDU to lower the level of option cards in CB to stop ctd? Pleased advise

  12. #12
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    This is more Taiji's expertise than mine.

    There is no limit on modeldb entries. Some have over a thousnd.

    The last time I tried adding/swapping a unit was adding magonels to my mod and finding all files in the Crusades campaign. I had to add the projectile entries and the animation pack to finally to get it to work. Siege equipment dances to its own drummer.

  13. #13

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by irishron View Post
    This is more Taiji's expertise than mine.

    There is no limit on modeldb entries. Some have over a thousnd.

    The last time I tried adding/swapping a unit was adding magonels to my mod and finding all files in the Crusades campaign. I had to add the projectile entries and the animation pack to finally to get it to work. Siege equipment dances to its own drummer.
    As ever Master Irishron,I'm in awe of your wisdom. You were on the right track waaaaayy back,I swapped units on said mod in order of weapons, and when i came to missile units the mod ctd on all three add ons. Soo I've got it up and running without them added. However the file from DLV NORSE has the all the scripts etc for them all in,the ui cards set up etc. Just need to find out about the animation bit. Thank you again Master Irishron & Master Taiji for you very,very,very much imput on my problem. I always thourght that all "Masters of modding" followed the same file scripts and protocol to use on the Total War Games as to allow mere mortals like me to swap units from mod to mod. That will teach me to try and understand modding.

  14. #14
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    The log says what?
    Last edited by Taiji; May 29, 2011 at 09:53 AM.

  15. #15

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by Taiji View Post
    The log says what?
    As said in other reply.Thank you for all your help Master Taiji. I will try and understand why some mod units use a different scripting. Do you advise on what to look for as a learning program, Kind Sir

  16. #16

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by Taiji View Post
    The log says what?
    Dear Master Taiji, Please forgive me for asking about "Norse roster" units been placed on an SS mod. I was unaware of the "!!!!!!!!!!!!" between these to mod Masters. I checked on the DLV thread for a clue as to the missile unit problem and read about the "not seeing eye to eye" with the two mods. I love to play DLV_bb and SS 6.4 and respect both and all Masters in there gift for modding. Its just a shame for mere mortals like me.

  17. #17
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    As long as you aren't sharing the result with anyone it's OK to do what you like with other people's work.

  18. #18

    Default Re: How Do I Exclude Certain Units From CPU Opponents Recruitment?

    Quote Originally Posted by Taiji View Post
    As long as you aren't sharing the result with anyone it's OK to do what you like with other people's work.
    Would not dream of it!! Master Taiji. Now then,back on track. I changed in the modeldb file the bit for the weapons bit,for the SS Norse archers bit. And in the EDU the (shhhushh) "Veindemenn" now have the SS Norse archer specs. Works great .as in the game starts. I tried to check via the custom battle but that dont work forgot that. I will have to go and fight somebody asap. Respect Master Taiji. Or just wait for them to turn up in the next SS update(hey,its nearly xmas,good will an all that)

Posting Permissions

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