PDA

View Full Version : CTD with traits... Why?



SSJVegetaTrunks
09-10-2007, 23:39
For Inca: Total War, I am testing our "Intelligence" trait. I made the faction leader of the Brutii start with one of the levels of the traits, too. However, any time I go to the leader's trait screen, or I get to the end of the turn where I get a new character (since that's when they get the trait), it crashes to the desktop. I hope I'm using -show_err right, because it isn't working correctly. No error message at all. Any idea what could be wrong?

Squid
09-11-2007, 00:29
Sounds like two different errors, the first, when you look at the leaders character screen, is caused by a missing/mistyped entry in export_VnVs.txt. The second sounds like you have two triggers with the same name, this will cause an errorless CTD when they trigger. Both of these issues are covered in the trait/ancillary guide (https://forums.totalwar.org/vb/showthread.php?goto=newpost&t=91312).

SSJVegetaTrunks
09-11-2007, 02:11
Thank you very much.

SSJVegetaTrunks
09-11-2007, 22:33
Gah, it's still not working. The trait line was created by another member of Inca, I found a few problems, and fixed them, but now I'm getting CTDs. I'll just copy the code, please tell me what I did wrong.


;------------------------------------------
Trait Smartness
Characters family

Level Monkey_Brains
Description Monkey_Brains_desc
EffectsDescription Monkey_Brains_effects_desc
Threshold 1

Level Dumb
Description Dumb_desc
EffectsDescription Dumb_effects_desc
Threshold 2

Level Slow_Understander
Description Slow_Understander_desc
EffectsDescription Slow_Understander_effects_desc
Threshold 3

Level Average_Brain_Capacity
Description Average_Brain_Capacity
EffectsDescription Average_Brain_Capacity_effects_desc
Threshold 4

Level Smart
Description Smart_desc
EffectsDescription Smart_effects_desc
Threshold 5

Level Very_Smart
Description Very_Smart_desc
EffectsDescription Very_Smart_effects_desc
Threshold 6

Level The_Genius
Description The_Genius_desc
EffectsDescription The_Genius_effects_desc
Threshold 7


;------------------------------------------
Trigger smartness1
WhenToTest CharacterComesOfAge

Affects Smartness 1 chance 100
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50

;------------------------------------------
Trigger smartness2
WhenToTest OfferedForAdoption

Affects Smartness 1 chance 100
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50

;------------------------------------------
Trigger smartness3
WhenToTest LesserGeneralOfferedForAdoption

Affects Smartness 1 chance 100
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50

;------------------------------------------
Trigger smartness4
WhenToTest OfferedForMarriage

Affects Smartness 1 chance 100
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50
Affects Smartness 1 chance 50


{Monkey_Brains} Monkey Brains

{Monkey_Brains_desc}
The monkeys living in the Amazon jungle would like to point out their brain capacity is superior than this man's skull contents.

{Monkey_Brains_effects_desc}


¬--------------------

{Dumb} Dumb

{Dumb_desc}
This man has a hard time understanding even the most simple things.

{Dumb_effects_desc}


¬--------------------

{Slow_Understander} Slow Understander

{Slow_Understander_desc}
This man understands most things, it only takes a little more time.

{Slow_Understander_effects_desc}


¬--------------------

{Average_Brain_Capacity} Average Brain Capacity

{Average_Brain_Capacity_desc}
You can call this man dumb nor smart.

{Average_Brain_Capacity_effects_desc}


¬--------------------

{Smart} Smart

{Smart_desc}
This man's IQ allows him to learn and understand things faster then most people.

{Smart_effects_desc}


¬--------------------

{Very_Smart} Very_Smart

{Very_Smart_desc}
This man has superior brains.

{Very_Smart_effects_desc}


¬--------------------

{The_Genius} The_Genius

{The_Genius_desc}
If the god of wisdom has a son, it's probably this man.

{The_Genius_desc}

I have no idea what's wrong. I attempted to rename the traits and everything, but it still isn't working correctly. Also, does the Trait Validator in the Scripitorium work correctly? It keeps saying that AssassinCatcher is the last trait.

Atilius
09-12-2007, 00:11
;------------------------------------------
Level The_Genius
Description The_Genius_desc
EffectsDescription The_Genius_effects_desc
Threshold 7

¬--------------------

{The_Genius} The_Genius

{The_Genius_desc}
If the god of wisdom has a son, it's probably this man.

{The_Genius_desc}

SSJVegetaTrunks
09-12-2007, 02:52
Gah! How did I miss that? Thank you very much!

However, Squid said there were two problems... I'll fix that and test it, hopefully that will fix all of it.

EDIT: No change... Here's one of the lines in descr_strat, just in case I messed it up here instead.


traits GoodCommander 1 , NaturalMilitarySkill 1 , GoodAttacker 1 , PoliticsSkill 2 , Intelligent 1 , Smartness 3