Hello!
I get CTDs (with an almost empty log, seen at the end of this post) after modifying some files. The purpose was to add a character to the campaign map, whom is Guan Ping. Here's what I did :
- I've create 6 TGA files for the character portrait. Everything is good and properly name.
- I go to descr_strat, I remove Guan Ping from the character record and relative. I had him on the map (149,132) near Guan Yu with a light cav and 2 spearmen units.
- What I did is copy the line of Guan Yu and mod what needed to be mod :
Code:
character J-0202-GuanYu, named character, male, age 32, x 146, y 132, portrait A448, label GuanYu_1, hero_ability The_Flower_of_Chivalry, battle_model GuanYu_generaltraits GuanYu 1 , JbAAAA0100 1 , Lz-0202-0 1 , Jn1001 6 , Jn2000 6 , Jn3000 8 , Jn4001 1 , Jn5000 9 , JnA1000 3 , JnA2000 3 , JnA3000 3 , JnA4000 3 , JnA5000 3 , JnA6000 2 , JnA7000 7 , JnA8000 9 , JnA9000 2 , Jnxg2000 3 , G2220JnShu-A 1 , G2210JnShu-A 1 , GuanYu1100 1 , GuanYu1200 1 , GuanYu1300 1 , C3070JnBJ-A 1 , C3100JnPX-A 1 , C3160JnAY-A 1 , Jn-catholic 4
ancillaries 1dao-102
army
unit JiangJun_GuanYu exp 3 armour 0 weapon_lvl 0
unit tujiang exp 1 armour 0 weapon_lvl 0
unit ZYhan_light_cav exp 1 armour 0 weapon_lvl 0
unit ZYhan_medium_sword exp 1 armour 0 weapon_lvl 0
unit ZYhan_light_spear exp 2 armour 0 weapon_lvl 0
unit ZYhan_light_cross exp 2 armour 0 weapon_lvl 0
character J-0213-GuanPing, named character, male, age 16, x 149, y 132, portrait A448o
traits JbAAAA0100 1 , Lz-0213-0 1 , Jn1001 1 , Jn2000 4 , Jn3000 7 , Jn4000 7 , Jn5000 7 , JnA1000 3 , JnA2000 2 , JnA3000 2 , JnA4000 1 , JnA5000 2 , JnA6000 1 , JnA7000 7 , JnA8000 7 , JnA9000 4 , Jnxg2000 3 , A1040JnQJ-A 1 , C3080JnQJ-A 1 , Jn-catholic 4
ancillaries 1dao-102o
army
unit JiangJun_BaShu_Aa_GuanPing exp 1 armour 0 weapon_lvl 0
unit ZYhan_light_cav exp 1 armour 0 weapon_lvl 0
unit ZYhan_light_spear exp 1 armour 0 weapon_lvl 0
unit ZYhan_light_spear exp 2 armour 0 weapon_lvl 0
- Then I create an ancillary for Guan Ping. I call it 1dao-102o.
Code:
Ancillary 1dao-102o Type Standard
Transferable 1
Image 1dao-102o.tga
ExcludedAncillaries 1dao-101, 1dao-102, 1dao-103, 1dao-104
Description 1dao-102o_desc
EffectsDescription 1dao-102o_effects_desc
Effect BodyguardValour 1
Effect HitPoints 1
Effect LocalPopularity 2
Code:
{1dao-102o}Young Dragon{1dao-102o_desc}A high quality halberd commissioned and offered by Guan Yu to his adopted son. This legendary weapon has seen several fights including the battle of Changban, Chibi and Jiang Ling.\n
{1dao-102o_effects_desc}Hit Points +1\nLocal Popularity +2\nExperience of General’s Bodyguards +1
- Then I removed all triggers concerning the coming of age of Guan Ping, like these :
Code:
Trigger Cn-0213-GuanPing-2 WhenToTest CharacterComesOfAge
Condition FatherTrait Lz-0202-0 > 0
and I_TurnNumber > 32
and I_TurnNumber < 40
Affects A1090JnLJ-A 2000 Chance 100
Affects B2170JnZC-A 1000 Chance 100
Affects LzAAAA1000 1000 Chance 100
So now... I'm just not sure what to do...
Code:
10:55:58.835 [system.rpt] [always] CPU: SSE210:55:58.835 [system.rpt] [always] ==== system log start, build date: Sep 5 2014 version development ===
10:55:58.837 [system.io] [always] mounted pack packs/data_0.pack
10:55:58.838 [system.io] [always] mounted pack packs/data_1.pack
10:55:58.838 [system.io] [always] mounted pack packs/data_2.pack
10:55:58.839 [system.io] [always] mounted pack packs/data_3.pack
10:55:58.840 [system.io] [always] mounted pack packs/data_4.pack
10:55:58.840 [system.io] [always] mounted pack packs/localized.pack
10:56:03.787 [system.rpt] [error] Uh oh. This isn't good. No idea why, but exiting now. Sorry pal.
EDIT : I've find how to have a detailed log (i though I had already set the preferences for this). Here it is : Attachment 358735
EDIT 2 : *SIGH* After doing it all again from scratch, I've come to conclusion that the problem is the ancillary. Not sure why. Maybe the mod already have the max ancillary the game can use?
So here's what I've put in EDA and cause my CTD for unknown reason.
Code:
Ancillary 1dao-666 Type Standard
Transferable 1
Image 1dao-666.tga
ExcludedAncillaries 1dao-101, 1dao-102, 1dao-103, 1dao-104
Description 1dao-666_desc
EffectsDescription 1dao-666_effects_desc
Effect BodyguardValour 1
Effect HitPoints 1
Effect LocalPopularity 2
Code:
;-1dao-666-----------------------------------------Trigger trigger_1dao-666_101
WhenToTest PostBattle
Condition IsGeneral
and GeneralFoughtInCombat
and Trait ZhanDou1000 < 2
and Trait A1010JnQD-A = 0
and not I_WorldwideAncillaryExists 1dao-666
and not FactionType france
AcquireAncillary 1dao-666 Chance 5
;------------------------------------------
Trigger trigger_1dao-666_102
WhenToTest PostBattle
Condition IsGeneral
and GeneralFoughtInCombat
and Trait ZhanDou1000 < 2
and Trait A1010JnQD-A = 1
and not I_WorldwideAncillaryExists 1dao-666
and not FactionType france
AcquireAncillary 1dao-666 Chance 60
;------------------------------------------
Trigger trigger_1dao-666_103
WhenToTest PostBattle
Condition IsGeneral
and GeneralFoughtInCombat
and Trait ZhanDou1000 < 2
and Trait A1010JnQD-A = 2
and not I_WorldwideAncillaryExists 1dao-666
and not FactionType france
AcquireAncillary 1dao-666 Chance 80
;------------------------------------------
Trigger trigger_1dao-666_104
WhenToTest PostBattle
Condition IsGeneral
and GeneralFoughtInCombat
and Trait ZhanDou1000 < 2
and Trait A1010JnQD-A = 3
and not I_WorldwideAncillaryExists 1dao-666
and not FactionType france
AcquireAncillary 1dao-666 Chance 100
;------------------------------------------
Trigger trigger_1dao-666_201
WhenToTest PostBattle
Condition IsGeneral
and not I_WorldwideAncillaryExists 1dao-666
and FactionType france
AcquireAncillary 1dao-666 Chance 100
;------------------------------------------
Trigger trigger_1dao-666_301
WhenToTest CharacterTurnEnd
Condition IsGeneral
and not IsFactionLeader
and not I_WorldwideAncillaryExists 1dao-666
and FactionType france
AcquireAncillary 1dao-666 Chance 30
;------------------------------------------
Trigger trigger_1dao-666_302
WhenToTest CharacterTurnEnd
Condition IsGeneral
and IsFactionLeader
and not I_WorldwideAncillaryExists 1dao-666
and FactionType france
AcquireAncillary 1dao-666 Chance 100