First off I would like to say that I absolutely love this mod. I've played all the classical/roman era mods available since RTW and I feel like this is the one with the vision that I like most. With that being said, I do have one thing that I like to add into pretty much every mod... a warrior trait.
Welp, I've never had any issues with adding this trait until now, and I'd usually be able to solve the crash problems on my own with the log report, but it crashes with an Unspecified Error message, and isn't giving me a report. I did figure out that it must be the EDCT file because the game runs fine when I put the original file back in, but then crashes again when I put the modded version in. The trait I'm adding is very simple and is intended to give some of the AI factions a chance to gain some ubber-bad-ass generals, and also to give me an occasional warrior general (when they don't die trying to get the trait).
I'll put the code I have below. I apologize for the lack of a log report, but like I said, it isn't giving me one. The game only crashes when I have the modded version of the EDCT in the directory, but not if I have the vnv file modded. Those are the only two files that I messed with.
Specifics: game crashes when I start a new campaign, unspecified error, no log, runs fine with vnv file modded but not EDCT file modded
CODE:
;------------------------------------------
Trait Warrior
Characters family
NoGoingBackLevel 3
Level Warrior
Description Warrior_desc
EffectsDescription Warrior_effects_desc
Epithet Warrior_epithet_desc
Threshold 1
Effect TroopMorale 1
Effect Authority 1
Effect HitPoints 2
Effect LocalPopularity 1
Effect BodyguardValour 1
Effect PersonalSecurity 1
Level MightyWarrior
Description MightyWarrior_desc
EffectsDescription MightyWarrior_effects_desc
Epithet MightyWarrior_epithet_desc
Threshold 3
Effect TroopMorale 2
Effect Authority 2
Effect HitPoints 4
Effect LocalPopularity 2
Effect BodyguardValour 2
Effect PersonalSecurity 2
Effect Loyalty -2
Level LegendaryWarrior
Description LegendaryWarrior_desc
EffectsDescription LegendaryWarrior_effects_desc
Epithet LegendaryWarrior_epithet_desc
Threshold 9
Effect TroopMorale 4
Effect Authority 4
Effect HitPoints 12
Effect LocalPopularity 6
Effect BodyguardValour 4
Effect PersonalSecurity 6
Effect Loyalty -6
;------------------------------------------
;------------------------------------------
Trigger battle6
WhenToTest PostBattle
Condition GeneralNumKillsInBattle > 13
and GeneralHPLostRatioinBattle > 0.3
Affects Warrior 1 Chance 40
;------------------------------------------
Trigger battle7
WhenToTest PostBattle
Condition GeneralNumKillsInBattle > 21
and GeneralHPLostRatioinBattle > 0.4
Affects Warrior 2 Chance 45
;------------------------------------------
Trigger battle8
WhenToTest PostBattle
Condition GeneralNumKillsInBattle > 34
and GeneralHPLostRatioinBattle > 0.5
Affects Warrior 3 Chance 50
;------------------------------------------
VNV CODE:
¬---------------
{Warrior_desc}This man is widely known to be a fierce warrior on the battlefield.
{Warrior_effects_desc}+1 Morale for all troops on the battlefield, +2 to general's hitpoints, +1 Authority, +1 to popularity (improves public order), +1 to bodyguard valour, +1 to personal security (improves the chances of foiling assassination attempts)
{Warrior_epithet_desc}the Warrior
{Warrior}Warrior
{MightyWarrior_desc}This man has proven his might in battle. He is now a well renowned warrior known across the land.
{MightyWarrior_effects_desc}+2 Morale for all troops on the battlefield, +4 to general's hitpoints, +2 Authority, +2 to popularity (improves public order), +2 to bodyguard valour, +2 to personal security (improves the chances of foiling assassination attempts), -2 Loyalty
{MightyWarrior_epithet_desc}the Mighty Warrior
{MightyWarrior}Mighty Warrior
{LegendaryWarrior_desc}This man is undefeated in combat, feared by his enemies, and a complete badass! The people consider him a living legend and he is loved by all. If he is not ruler by now...
{LegendaryWarrior_effects_desc}+4 Morale for all troops on the battlefield, +12 to general's hitpoints, +4 Authority, +6 to popularity (improves public order), +4 to bodyguard valour, +6 to personal security (improves the chances of foiling assassination attempts), -6 Loyalty
{LegendaryWarrior_epithet_desc}the Invincible
{LegendaryWarrior}Legendary Warrior
¬---------------
XML CODE:
<traits>
<!--Section 0.0 - Warrior Traits-->
<trait id="Warrior">
<name>Warrior</name>
<desc><p>This man is widely known to be a fierce warrior on the battlefield.</p></desc>
<effects><p>+1 Morale for all troops on the battlefield, +2 to general's hitpoints, +1 Authority, +1 to popularity (improves public order), +1 to bodyguard valour, +1 to personal security (improves the chances of foiling assassination attempts)</p></effects>
<epithet>the Warrior</epithet>
</trait>
<trait id="MightyWarrior">
<name>Mighty Warrior</name>
<desc><p>This man has proven his might in battle. He is now a well renowned warrior known across the land.</p></desc>
<effects><p>+2 Morale for all troops on the battlefield, +4 to general's hitpoints, +2 Authority, +2 to popularity (improves public order), +2 to bodyguard valour, +2 to personal security (improves the chances of foiling assassination attempts), -2 Loyalty</p></effects>
<epithet>the Mighty Warrior</epithet>
</trait>
<trait id="LegendaryWarrior">
<name>Legendary Warrior</name>
<desc><p>This man is undefeated in combat, feared by his enemies, and a complete badass! The people consider him a living legend and he is loved by all. If he is not ruler by now...</p></desc>
<effects><p>+4 Morale for all troops on the battlefield, +12 to general's hitpoints, +4 Authority, +6 to popularity (improves public order), +4 to bodyguard valour, +6 to personal security (improves the chances of foiling assassination attempts), -6 Loyalty</p></effects>
<epithet>the Invincible</epithet>
</trait>
<!--Section 1.0 - Primary Traits-->
Thank you again for the great MOD, all your hard work is appreciated. Oh and thanks in advance to anyone who can offer me some guidance.
My best,
Turtle