Here's one I haven't seen before.

So I've finished altering the RTR (or ExRM, in this case) EDB to use only one building for unit recruitment. Units may require an additional building, but now only the barracks tree allows recruitment of them. So I copied all of the units from the other build trees to separate text files in Notepad++, then did a lot of complicated copy/pasting to organize them and some more to put them back into the EDB. End result: the practice field tree and stables trees have nothing under their capabilities, and all of the units are in the barracks tree. (Originally, all mounted units were recruited via the stables tree and ranged units via the practice field tree, dependent on the presence of a barracks of level X or higher.)

The game worked prior to making the change to the EDB, and I just double-checked and it still works if I revert the change. However, with the change, I get a CTD after the campaign loading bar finishes filling up (the one after the campaign selection screen).

There were a couple of typos in the EDB, but those caused CTDs with errors earlier and I fixed them.

Any idea what causes a typo at that stage? I didn't change any of the other recruitment conditions, just the building requirements. As a result, no city should now have any more or less units capable of being recruited there.

Here's a sample of the recruitment code. It's from Sarmatia, which is the shortest one.
Code:
;----SCYTHIAN----

building barracks_scythia
{
    levels auxilia_phase1 auxilia_phase2 auxilia_phase3
    {

        auxilia_phase1 requires factions { scythia, slave, }
        {
            capability
            {
                recruit "sarmatian archer"  0  requires factions { scythia, } and hidden_resource aor_scyth
        recruit "sarmatian horse archer"  0  requires factions { scythia, } and hidden_resource aor_scyth
                law_bonus bonus 1 requires factions { scythia, slave, }
            }
            construction  4
            cost  2000
           settlement_min village
            upgrades
            {
                auxilia_phase2
            }
        }
        auxilia_phase2 requires factions { scythia, slave, }
        {
            capability
            {
        recruit "sarmatian horse archer"  0  requires factions { scythia, } and hidden_resource aor_scyth
                recruit "sarmatian archer"  0  requires factions { scythia, } and hidden_resource aor_scyth
;AOR
                recruit "aor german warband"  0  requires factions { scythia, } and hidden_resource aor_germ and not hidden_resource baltic_coast
                recruit "aor illyria spearmen"  0  requires factions { scythia, } and hidden_resource aor_illyr
                recruit "aor eastern spearmen"  0  requires factions { scythia, } and hidden_resource aor_asia
                recruit "aor eastern spearmen"  0  requires factions { scythia, } and hidden_resource aor_pers
                recruit "aor egypt spearmen"  0  requires factions { scythia, } and hidden_resource aor_egypt
                recruit "german clubmen"  0  requires factions { scythia, } and hidden_resource baltic_coast
                recruit "aor hills spearmen"  0  requires factions { scythia, } and hidden_resource aor_hill
                recruit "aor india spearmen"  0  requires factions { scythia, } and hidden_resource aor_indi
                recruit "colonial hoplite militia"  0  requires factions { scythia, } and hidden_resource aor_mil or hidden_resource aor_phok or hidden_resource unit_sinope
                recruit "Marsi Spearmen"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_marsi
                recruit "aor etrurian spearmen"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_etruria
                recruit "aor spain spearmen"  0  requires factions { scythia, } and hidden_resource aor_iber
                recruit "Samnite Light Infantry"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_samnite or hidden_resource unit_rome
        recruit "slave briton warband"     0  requires factions { scythia, } and hidden_resource aor_brit
        recruit "slave briton swordsmen"   0  requires factions { scythia, } and hidden_resource aor_brit
;MU
                recruit "aor german lightcav"  0  requires factions { scythia, } and hidden_resource aor_germ
                recruit "aor thrace light cavalry"  0  requires factions { scythia, } and hidden_resource aor_dacia
;RU
                recruit "slave briton slinger" 0  requires factions { scythia, } and hidden_resource aor_brit
                recruit "aor sarmatia skirmisher"  0  requires factions { scythia, } and hidden_resource aor_scyth
                recruit "aor hills skirmisher"  0  requires factions { scythia, } and hidden_resource aor_hill
;
                trade_base_income_bonus bonus 2 requires factions { scythia, }
            }
            construction  12
            cost  3000
           settlement_min village
            upgrades
            {
                auxilia_phase3
            }
        }
        auxilia_phase3 requires factions { scythia, slave, }
        {
            capability
            {
                recruit "sarmatian archer"  0  requires factions { scythia, }
                recruit "sarmatian horse archer"  0  requires factions { scythia, }
                recruit "sarmatian noble cavalry"  0  requires factions { scythia, }
                recruit "sarmatian heavy cavalry"  0  requires factions { scythia, }
;AOR
                recruit "aor german warband"  0  requires factions { scythia, } and hidden_resource aor_germ and not hidden_resource baltic_coast
                recruit "aor illyria spearmen"  0  requires factions { scythia, } and hidden_resource aor_illyr
                recruit "aor eastern spearmen"  0  requires factions { scythia, } and hidden_resource aor_asia
                recruit "aor eastern spearmen"  0  requires factions { scythia, } and hidden_resource aor_pers
                recruit "aor egypt spearmen"  0  requires factions { scythia, } and hidden_resource aor_egypt
                recruit "aor punic spearmen"  0  requires factions { scythia, } and hidden_resource aor_punic
                recruit "aor galatia swordsmen"  0  requires factions { scythia, } and hidden_resource aor_galat
                recruit "german clubmen"  0  requires factions { scythia, } and hidden_resource baltic_coast
                recruit "colonial heavy hoplite militia"  0  requires factions { scythia, } and hidden_resource aor_mil or hidden_resource aor_phok or hidden_resource unit_sinope
                recruit "phocaean nobles"  0  requires factions { scythia, } and hidden_resource aor_phok
                recruit "milesian nobles"  0  requires factions { scythia, } and hidden_resource aor_mil
                recruit "colonial hoplite militia"  0  requires factions { scythia, } and hidden_resource aor_mil or hidden_resource aor_phok or hidden_resource unit_sinope
                recruit "aor hills spearmen"  0  requires factions { scythia, } and hidden_resource aor_hill
                recruit "aor hills swordsmen"  0  requires factions { scythia, } and hidden_resource aor_hill
                recruit "aor thrace infantry"  0  requires factions { scythia, } and hidden_resource aor_dacia
                recruit "aor india spearmen"  0  requires factions { scythia, } and hidden_resource aor_indi
                recruit "aor italy hastati"  0  requires factions { scythia, } and marian_reforms and hidden_resource aor_italy
                recruit "aor marsi swordsmen"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_marsi
                recruit "Marsi Spearmen"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_marsi
;         recruit "aor etrurian infantry"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_etruria
                recruit "aor etrurian spearmen"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_etruria
        recruit "Samnite Heavy Infantry"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_samnite or hidden_resource unit_rome
                recruit "Samnite Light Infantry"  0  requires factions { scythia, } and not marian_reforms and hidden_resource unit_samnite or hidden_resource unit_rome
                recruit "aor spain infantry"  0  requires factions { scythia, } and hidden_resource aor_iber
                recruit "aor spain spearmen"  0  requires factions { scythia, } and hidden_resource aor_iber
                recruit "aor thrace infantry"  0  requires factions { scythia, } and hidden_resource aor_dacia        
        recruit "slave briton warband"     0  requires factions { scythia, } and hidden_resource aor_brit
        recruit "slave briton swordsmen"   0  requires factions { scythia, } and hidden_resource aor_brit
;MU
                recruit "aor german lightcav"  0  requires factions { scythia, } and hidden_resource aor_germ
                recruit "aor thrace light cavalry"  0  requires factions { scythia, } and hidden_resource aor_dacia
                recruit "barb chieftain cavalry scythian"  0  requires factions { scythia, }
        recruit "barb chariot heavy slave" 0  requires factions { scythia, } and hidden_resource aor_brit
                recruit "aor thrace heavy cavalry"  0  requires factions { scythia, } and hidden_resource aor_dacia
;RU
                recruit "slave briton slinger" 0  requires factions { scythia, } and hidden_resource aor_brit
                recruit "aor sarmatia skirmisher"  0  requires factions { scythia, } and hidden_resource aor_scyth
                recruit "aor hills skirmisher"  0  requires factions { scythia, } and hidden_resource aor_hill
                recruit "aor hills slinger"  0  requires factions { scythia, } and hidden_resource aor_hill
                recruit "aor sarmatia archer"  0  requires factions { scythia, } and hidden_resource aor_scyth
                recruit "aor thrace slinger"  0  requires factions { scythia, } and hidden_resource aor_dacia
;
                trade_base_income_bonus bonus 3 requires factions { scythia, }
            }
            construction  20
            cost  4000
           settlement_min town
            upgrades
            {
            }
        }
    }
    plugins
    {
    }
}