I've been working on a personal mod, launched through a BI.exe mod switch, and I've come across an odd problem with a custom faction ('boii'), one that seems to be pretty rare. The faction does not show up in the campaign menu selection screen even though 1) all of the symbols and icons are in the right places 2) there are only 20 factions listed as playable, and 3) the new faction works in custom battles.
When I attempt to start the campaign with any other faction I get a KTM and the following error:
'Script error in [mod name]\data\world\maps\campaign\barbarian_invasion\descr.txt at line 2569, column 12: faction boii not listed in playable/nonplayable header'
This is strange as they are listed:
Code:
campaign imperial_campaign
playable
romans_julii
romans_brutii
romans_scipii
boii
egypt
seleucid
carthage
parthia
gauls
germans
britons
greek_cities
macedon
pontus
armenia
dacia
numidia
scythia
spain
thrace
end
unlockable
end
nonplayable
slave
end
I really don't understand why they don't show up at all on the campaign menu, however, as every other faction (except for rebels, obviously) is there.
What's even more strange is that line 2569 is blank (so no 'column 12') and this the relevant faction information from line 2570 onwards:
Code:
faction boii, religious smith
denari 7000
settlement
{
level large_town
region Boihaemum
year_founded 0
population 4000
plan_set default_set
faction_creator boii
building
{
type core_building governors_villa
}
building
{
type defenses wooden_wall
}
building
{
type barracks muster_field
}
building
{
type equestrian stables
}
building
{
type hinterland_farms farms
}
building
{
type missiles practice_field
}
}
character Amminos, named character, leader, age 52, , x 111, y 113
traits GoodCommander 2 , Intelligent 2 , Austere 1 , PublicFaith 1
ancillaries bard, civilized_slave
army
unit barb chieftain cavalry early gaul exp 2 armour 0 weapon_lvl 0
unit warband sword gaul exp 1 armour 1 weapon_lvl 1
unit warband sword gaul exp 1 armour 1 weapon_lvl 1
unit barb naked fanatics gauls exp 1 armour 0 weapon_lvl 0
unit barb cavalry gaul exp 1 armour 0 weapon_lvl 0
unit barb cavalry gaul exp 1 armour 0 weapon_lvl 0
character Eporedorix, named character, heir, age 20, , x 110, y 112
traits NaturalMilitarySkill 2 , Intelligent 1 , Energetic 1 , Drink 1
ancillaries beastmaster
army
unit barb chieftain cavalry early gaul exp 2 armour 0 weapon_lvl 0
character_record Bolgios, male, command 0, influence 0, management 0, subterfuge 0, age 14, alive, never_a_leader
character_record Barita, female, command 0, influence 0, management 0, subterfuge 0, age 52, alive, never_a_leader
relative Amminos, Barita, Eporedorix, Bolgios, end
relative Eporedorix, end
To eliminate some likely problems:
1) The coordinates x 111, y 113 are for Lovosice and should be fine.
2) This faction replaces romans_senate but I have purged all relevant references to the senate faction (ie, there is no senate tab and no senate offices button as romans_julli - the other two roman factions are now modded greek factions). If I comment out boii and their faction details in descr_strat.txt, the game runs fine so it doesn't seem like a problem with the senate or senate faction slot itself unless I have missed something. I can even play them in custom battles just fine, with all of the units, textures, names, ui, etc that I added for them.
3) The faction is essentially a clone of gauls - names, units, buildings, ui etc - to get it into the game so it shouldn't be a missing unit, building, or name (and the error doesn't suggest that). The units should be fine, they're all correctly associated in the EDU.
4) The descr_sm_factions.txt is correct as far as I can work out (with some placeholder data) but this is presumably where descr_strat.txt should be drawing from:
Code:
faction boii
culture barbarian
symbol models_strat/symbol_alemanni.CAS
rebel_symbol models_strat/symbol_barb_rebel.CAS
primary_colour red 56, green 80, blue 90
secondary_colour red 166, green 20, blue 23
loading_logo loading_screen/symbols/symbol128_alemanni.tga
standard_index 3
logo_index 232
small_logo_index 244
triumph_value 5
intro_movie fmv/intros/barbarian_intro_640x480_bars.wmv
victory_movie fmv/victory/barbarian_outro_320x240.wmv
defeat_movie fmv/lose/gauls_eliminated.wmv
death_movie fmv/death/death_gaul_snow_320x240.wmv
custom_battle_availability yes
can_sap no
prefers_naval_invasions no
If anyone has any ideas, I'd love to hear them, it seems like a really unusual error. This is the first error I've had making my personal mod that I haven't been to resolve.