Results 1 to 9 of 9

Thread: Limit for # of recruit_pool's in 1 building?

Hybrid View

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

    Default Limit for # of recruit_pool's in 1 building?

    I tried to search for this issue with no success.

    Is there a number of "recruit_pool" lines a building can have in export_descr_buildings? I ask because I'm adding a large list of existing units to certain buildings and get a crash when starting a campaign. I can add 32 recruit_pool lines to 1 building but no more. I can even add to some buildings that have more then 32 recruit_pool lines without a crash but I can't add 32 more. There should be no error in the text since any 32 lines work. Sadly I need to add over 300 lines.

    Also, I can add the 32 lines to many buildings so I don't think there is a total line limit.

    With further testing, looks like the amount of factions attached to each unit makes a difference. I can add more then 32 lines if I reduce the amount of factions that can recruit it. I still hit a wall when I add the 300+ lines to more then 3 buildings (upgrades too).
    Last edited by Remonster6x; May 12, 2012 at 12:21 AM.

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,679
    Blog Entries
    35

    Default Re: Limit for # of recruit_pool's in 1 building?

    I know TATW3 has upto 200 lines of recruit_pool entries in one building, so I wonder if the error might lie somewhere else. 256 is one of those magical numbers that might provide a boundary...










  3. #3

    Default Re: Limit for # of recruit_pool's in 1 building?

    Thanks for the info. +rep. I'm adding to SS6.4 so I think I can only add about 100 more lines. I wonder if the amount of factions attached to the unit adds to that number. Will do some more testing.

  4. #4
    Byg's Avatar Read The Manual
    Patrician

    Join Date
    Nov 2005
    Posts
    4,569

    Default Re: Limit for # of recruit_pool's in 1 building?

    I have virtually all units coming out of a single building without a problem and I have multiple entries per unit, so probably well over 500.

    NEW BGR V 20150324! . . . . . . . .. . . .BGRIV_E

  5. #5

    Default Re: Limit for # of recruit_pool's in 1 building?

    I'm at a loss. I'm trying to allow my troops to be replenished in any city but only built in the selected one. Part of the recruit_pool for denmark looks like (from Historical Units Region Buildings sub mod for SS):

    Spoiler Alert, click show to read: 
    recruit_pool "EE Spear Militia" 0 0.11 2 0 requires factions { norway, denmark, } and hidden_resource russia or hidden_resource kievan_rus or hidden_resource bulgaria or hidden_resource poland or hidden_resource hungary or hidden_resource serbia or hidden_resource georgia
    recruit_pool "EE Peasant Archers" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource russia or hidden_resource kievan_rus or hidden_resource bulgaria or hidden_resource poland or hidden_resource hungary or hidden_resource serbia or hidden_resource georgia

    recruit_pool "Steppe Nobles" 0 0.08 1 0 requires factions { norway, denmark, } and hidden_resource cumans
    recruit_pool "Steppe Nobles" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource kievan_rus or hidden_resource georgia or hidden_resource bulgaria or hidden_resource hungary

    recruit_pool "Dismounted Steppe Nobles" 0 0.066 1 0 requires factions { norway, denmark, } and hidden_resource cumans
    recruit_pool "Dismounted Steppe Nobles" 0 0.033 1 0 requires factions { norway, denmark, } and hidden_resource kievan_rus or hidden_resource georgia or hidden_resource bulgaria or hidden_resource hungary

    recruit_pool "Nomad Tribal Cavalry" 0 0.16 2 0 requires factions { norway, denmark, } and hidden_resource cumans
    recruit_pool "Nomad Tribal Cavalry" 0 0.11 1 0 requires factions { norway, denmark, } and hidden_resource bulgaria or hidden_resource kievan_rus
    recruit_pool "Nomad Tribal Cavalry" 0 0.066 1 0 requires factions { norway, denmark, } and hidden_resource hungary or hidden_resource georgia

    recruit_pool "Nomad Archers" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource hungary or hidden_resource georgia
    recruit_pool "Nomad Archers" 0 0.066 1 0 requires factions { norway, denmark, } and hidden_resource bulgaria or hidden_resource kievan_rus
    recruit_pool "Nomad Archers" 0 0.16 2 0 requires factions { norway, denmark, } and hidden_resource cumans
    recruit_pool "Nomad Spearmen" 0 0.11 1 0 requires factions { norway, denmark, } and hidden_resource cumans

    recruit_pool "Chude Militia" 0 0.11 2 0 requires factions { norway, denmark, } and hidden_resource russia
    recruit_pool "Vlach Axemen" 0 0.08 1 0 requires factions { norway, denmark, } and hidden_resource bulgaria
    recruit_pool "Vlach Archers" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource bulgaria
    recruit_pool "Vlach Axemen" 0 0.066 1 0 requires factions { norway, denmark, } and hidden_resource serbia or hidden_resource hungary
    recruit_pool "Vlach Archers" 0 0.033 1 0 requires factions { norway, denmark, } and hidden_resource serbia or hidden_resource hungary
    recruit_pool "Slavic Javelinmen" 0 0.08 2 0 requires factions { norway, denmark, } and hidden_resource russia or hidden_resource kievan_rus or hidden_resource serbia or hidden_resource bulgaria
    recruit_pool "Slavic Javelinmen" 0 0.066 1 0 requires factions { norway, denmark, } and hidden_resource poland

    recruit_pool "Magyar Cavalry" 0 0.066 1 0 requires factions { norway, denmark, } and hidden_resource hungary
    recruit_pool "Magyar Archers" 0 0.066 1 0 requires factions { norway, denmark, } and hidden_resource hungary

    recruit_pool "Boyars" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource kievan_rus or hidden_resource russia
    recruit_pool "Dismounted Boyars" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource kievan_rus or hidden_resource russia
    recruit_pool "Boyars" 0 0.033 1 0 requires factions { norway, denmark, } and hidden_resource bulgaria
    recruit_pool "Dismounted Boyars" 0 0.033 1 0 requires factions { norway, denmark, } and hidden_resource bulgaria

    recruit_pool "Lithuanian Skirmishers" 0 0.08 2 0 requires factions { norway, denmark, } and hidden_resource lithuania
    recruit_pool "Lithuanian Skirmishers" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource poland
    recruit_pool "L Cavalry Militia" 0 0.08 2 0 requires factions { norway, denmark, } and hidden_resource lithuania or hidden_resource poland
    recruit_pool "Baltic Spearmen" 0 0.08 2 0 requires factions { norway, denmark, } and hidden_resource lithuania
    recruit_pool "Baltic Archers" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource lithuania
    recruit_pool "Baltic Spearmen" 0 0.066 1 0 requires factions { norway, denmark, } and hidden_resource poland
    recruit_pool "Baltic Archers" 0 0.033 1 0 requires factions { norway, denmark, } and hidden_resource poland
    recruit_pool "Lithuanian Axemen" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource lithuania or hidden_resource poland
    recruit_pool "Lithuanian Noble Sons" 0 0.033 1 0 requires factions { norway, denmark, } and hidden_resource lithuania or hidden_resource poland
    recruit_pool "Noble Sons Cavalry" 0 0.033 1 0 requires factions { norway, denmark, } and hidden_resource lithuania or hidden_resource poland

    recruit_pool "Highland Skrimishers" 0 0.16 2 0 requires factions { norway, denmark, } and hidden_resource scotland
    recruit_pool "Highland Nobles" 0 0.08 1 0 requires factions { norway, denmark, } and hidden_resource scotland
    recruit_pool "Highland Spearmen" 0 0.11 1 0 requires factions { norway, denmark, } and hidden_resource scotland
    recruit_pool "Galloglaich Mercs" 0 0.11 1 0 requires factions { norway, denmark, } and hidden_resource scotland or hidden_resource ireland
    recruit_pool "Irish Kerns" 0 0.16 3 0 requires factions { norway, denmark, } and hidden_resource scotland or hidden_resource ireland
    recruit_pool "Welsh Spearmen" 0 0.11 2 0 requires factions { norway, denmark, } and hidden_resource wales
    recruit_pool "Welsh Longbowmen" 0 0.08 1 0 requires factions { norway, denmark, } and hidden_resource wales

    recruit_pool "Javelinmen" 0 0.11 2 0 requires factions { norway, denmark, } and hidden_resource spain or hidden_resource portugal or hidden_resource aragon
    recruit_pool "Jinetes" 0 0.08 1 0 requires factions { norway, denmark, } and hidden_resource spain or hidden_resource portugal or hidden_resource aragon
    recruit_pool "Andalusian Infantry" 0 0.05 1 0 requires factions { norway, denmark, } and hidden_resource andalusia
    recruit_pool "Andalusian Cavalry" 0 0.033 1 0 requires factions { norway, denmark, } and hidden_resource andalusia
    recruit_pool "ME Peasant Crossbowmen" 0 0.11 2 0 requires factions { norway, denmark, } and hidden_resource andalusia


    I'm guessing to allow these units to be retrained in other towns I need to add to a building:

    Spoiler Alert, click show to read: 
    recruit_pool "EE Spear Militia" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource russia and not hidden_resource kievan_rus and not hidden_resource bulgaria and not hidden_resource poland and not hidden_resource hungary and not hidden_resource serbia and not hidden_resource georgia
    recruit_pool "EE Peasant Archers" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource russia and not hidden_resource kievan_rus and not hidden_resource bulgaria and not hidden_resource poland and not hidden_resource hungary and not hidden_resource serbia and not hidden_resource georgia
    recruit_pool "Steppe Nobles" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource cumans and not hidden_resource kievan_rus and not hidden_resource georgia and not hidden_resource bulgaria and not hidden_resource hungary

    recruit_pool "Dismounted Steppe Nobles" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource kievan_rus and not hidden_resource georgia and not hidden_resource bulgaria and not hidden_resource hungary and not hidden_resource cumans
    recruit_pool "Nomad Tribal Cavalry" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource cumans and not hidden_resource bulgaria and not hidden_resource kievan_rus
    recruit_pool "Nomad Archers" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource hungary and not hidden_resource georgia and not hidden_resource bulgaria and not hidden_resource kievan_rus and not hidden_resource cumans
    recruit_pool "Nomad Spearmen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource cumans
    recruit_pool "Chude Militia" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource russia

    recruit_pool "Vlach Axemen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource bulgaria and not hidden_resource serbia and not hidden_resource hungary
    recruit_pool "Vlach Archers" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource bulgaria and not hidden_resource serbia and not hidden_resource hungary
    recruit_pool "Slavic Javelinmen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource russia and not hidden_resource kievan_rus and not hidden_resource serbia and not hidden_resource bulgaria and not hidden_resource poland
    recruit_pool "Magyar Cavalry" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource hungary

    recruit_pool "Magyar Archers" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource hungary
    recruit_pool "Boyars" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource kievan_rus and not hidden_resource russia and not hidden_resource bulgaria
    recruit_pool "Dismounted Boyars" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource kievan_rus and not hidden_resource russia and not hidden_resource bulgaria
    recruit_pool "Lithuanian Skirmishers" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource lithuania and not hidden_resource poland

    recruit_pool "L Cavalry Militia" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource lithuania and not hidden_resource poland
    recruit_pool "Baltic Spearmen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource lithuania and not hidden_resource poland
    recruit_pool "Baltic Archers" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource lithuania and not hidden_resource poland

    recruit_pool "Lithuanian Axemen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource lithuania and not hidden_resource poland
    recruit_pool "Lithuanian Noble Sons" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource lithuania and not hidden_resource poland
    recruit_pool "Noble Sons Cavalry" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource lithuania and not hidden_resource poland

    recruit_pool "Highland Skrimishers" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource scotland
    recruit_pool "Highland Nobles" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource scotland
    recruit_pool "Highland Spearmen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource scotland

    recruit_pool "Galloglaich Mercs" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource scotland and not hidden_resource ireland
    recruit_pool "Irish Kerns" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource scotland and not hidden_resource ireland
    recruit_pool "Welsh Spearmen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource wales
    recruit_pool "Welsh Longbowmen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource wales

    recruit_pool "Javelinmen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource spain and not hidden_resource portugal and not hidden_resource aragon
    recruit_pool "Jinetes" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource spain and not hidden_resource portugal and not hidden_resource aragon
    recruit_pool "Andalusian Infantry" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource andalusia
    recruit_pool "Andalusian Cavalry" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource andalusia
    recruit_pool "ME Peasant Crossbowmen" 0 0.03 0 0 requires factions { denmark, } and not hidden_resource andalusia


    I can add any combination of these lines but only about 20 total. If I try to add them all, I get a CTD when loading a saved game or starting a new one. What am I doing wrong? I also found if I split them up between 3 different buildings I can load the game but I get a crash somewhere while playing. Could be 2 turns into it, could be 60 turns into it. The system log "Medieval 2: Total War encountered an unspecified error and will now exit."

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,679
    Blog Entries
    35

    Default Re: Limit for # of recruit_pool's in 1 building?

    Should be possible to have more lines. Have you tried using the EDB checker? And if you only want to replenish units then the max units available figure should be below 1 - see the brittania campaign how that is done. Usually you restrict the normal recruiting with hiddenresources and have the replenishment line valid for every settlement.










  7. #7
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: Limit for # of recruit_pool's in 1 building?

    Quote Originally Posted by Gigantus View Post
    And if you only want to replenish units then the max units available figure should be below 1 - see the brittania campaign how that is done.
    Something like this...

    Code:
    recruit_pool "ME Peasant Crossbowmen" 0 0.111 0.999 0 requires factions { norway, denmark, }

  8. #8

    Default Re: Limit for # of recruit_pool's in 1 building?

    That's exactly what I was missing. I'll give it a try. Thanks for the help.

  9. #9

    Default Re: Limit for # of recruit_pool's in 1 building?

    Still having issues but I think I found the problem. If I enter in a unit below 1 max unit, even if it is 0, that unit will count in the recruit pool and I must be over the allowed amount in the recruit pool causing a CTD. I'm unsure what the max for the recruitment pool for different types of units is or if there is a max at all but it seems to be the issue.

Tags for this Thread

Posting Permissions

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