It eventually works (when you have both buildings), but not initially:
=== EDB entry for archers - works ===
building barracks_of_marksmen
{
levels barracks_of_marksmen_1 barracks_of_marksmen_2 barracks_of_marksmen_3 barracks_of_marksmen_4
{
barracks_of_marksmen_1 requires factions { eastern_european, southern_european, england, greek, }
{
capability
{
recruit_pool "free company archers" 1 0.1 1 0 requires factions { southern_european, slave, } and not factions { hungary, kalmar_union, } and building_present_min_level smith smith_1
....
}
material wooden
construction 5
cost 6000
settlement_min village
upgrades
{
barracks_of_marksmen_2
}
}
=== EDB entry for infantry - doesn't work ===
building barracks
{
levels barracks_1 barracks_2 barracks_3 barracks_4 barracks_5
{
barracks_1 requires factions { southern_european, russia, greek, england, }
{
capability
{
recruit_pool "free company" 1 0.1 1 0 requires factions { southern_european, slave, } and not factions { hungary, kalmar_union, } and building_present_min_level smith smith_1
....
}
material wooden
construction 4
cost 5800
settlement_min village
upgrades
{
barracks_2
}