Results 1 to 11 of 11

Thread: Bugged trait - Can't find the issue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    is not a senior Member Meneldil's Avatar
    Join Date
    Aug 2004
    Location
    France
    Posts
    3,074

    Default Bugged trait - Can't find the issue

    I'm trying to make a different 'factionleader' trait for each faction. Although it seems quite easy, I for some reason can't do that without getting a CTD when right-clicking on a faction character.

    I tried with the Byzantine faction leader. Here's the trait, as in export_descr_character_traits :

    Trait :
    Code:
    ;------------------------------------------
    Trait Byzantineleader
        Characters family
    
        Level Basileus
            Description Basileus_desc
            EffectsDescription Basileus_effects_desc
            Threshold  1 
    
            Effect Influence  2 
            Effect Command  1 
            Effect PersonalSecurity  3 
    ;------------------------------------------
    Trigger :
    Code:
    ;------------------------------------------
    Trigger Byzantineleader
        WhenToTest BecomesFactionLeader
    
        Condition FactionType sassanids
    
        Affects Byzantineleader  1  Chance  100 
    ;------------------------------------------
    I'm absolutely lost at what was going on. I just deleted all the vanilla traits, both in traits files and descr_strat. I copied the 'factionleader' traits and renamed everything 'Byzantineleader' or 'Basileus', created entries in VnV_enums and corresponding descriptions. I tried to delete or to change the 'Condition FactionType sassanids', but with no effect. The only thing that could cause the issues is that I deleted the anti-trait factionheir.
    The trait is correctly validated by the traits and ancilliaries validator.

  2. #2
    Assistant Mod Mod Member GiantMonkeyMan's Avatar
    Join Date
    May 2005
    Location
    plymouth - scrubbing Beirut's toilet with a cat...
    Posts
    886

    Default Re: Bugged trait - Can't find the issue

    has the guy still got the old faction leader trait in descr_strat?... also the faction heir/leader triggers have to work together... perhaps make a new faction heir trait as well unless you can't be bothered but from a quick glance that looks fine....

  3. #3
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: Bugged trait - Can't find the issue

    Try differentiating the trigger name from the trait name, maybe this causes the problems.

  4. #4
    EB Traiter Member Malrubius's Avatar
    Join Date
    Jan 2005
    Location
    On a tree-covered mountain in Anniston, Alabama, USA
    Posts
    2,633

    Default Re: Bugged trait - Can't find the issue

    the VnVs enums file (actually, all enums files) are ignored by RTW. You need to edit export_VnVs.txt in your Data\text folder with the correct entries. The validator does not work with this Unicode file, so it doesn't check for valid entries in export_VnVs.txt, but it does generate a sample enums file for all non-hidden traits, which must have corresponding entries in export_VnVs, so you just need to make sure those entries exist.

    Code:
    {Basileus}  Basileus
    
    {Basileus_desc}
    This dude is the basileus!
    
    {Basileus_effects_desc}
    +1 Influence
    The giveaway is that it CTD's when you pull up the general's list of traits. That means the entry in export_VnVs.txt is bad.
    Last edited by Malrubius; 12-12-2005 at 17:01.

    Ah! the Generals! they are numerous, but not good for much (especially if they're Languorous)!
    -- Aristophanes, if he played EB

  5. #5
    is not a senior Member Meneldil's Avatar
    Join Date
    Aug 2004
    Location
    France
    Posts
    3,074

    Default Re : Bugged trait - Can't find the issue

    Well, I found the issue. Apparently, I had to give it an 'antitrait heir'. If I delete it, it CTD's, but it work fine with the antitrait (even if there's no trigger to activate it).

    Now, I'm facing another problem. I've spent 1 hour wondering why this trait wouldn't work.

    Trait :
    Code:
    ;------------------------------------------
    Trait Jorsalfar
        Characters family
    
        Level Jorsalfar
            Description Jorsalfar_desc
            EffectsDescription Jorsalfar_effects_desc
    	Epithet Jorsalfar_epithet_desc
            Threshold  1 
    
            Effect Influence  2
            Effect Management  2
    ;------------------------------------------
    Trigger :
    Code:
    ;------------------------------------------
    Trigger Jerusalem_Captured_Viking
        WhenToTest CharacterTurnEnd
    
        Condition EndedInSettlement
              and RemainingMPPercentage = 100
              and SettlementName Jerusalem
       	  and CultureType hun
     
    Affects Jorsalfar 1 Chance 100 
    
    ;------------------------------------------
    It has the good entries in export_VnVs (including the epithet one). Basically, the character should get this train when he ends his turn in Jerusalem, with his full MP. But, whatever the hell I do, the trait just *won't* work when there's a condition 'and SettlementName Jerusalem'. I tried to make a WhenToTest GeneralCaptureSettlement - Condition SettlementName Jerusalem' trigger, it didn't work either.

    Now, I'm not totally stupid, and I double, and even triple checked the settlement's name. I even tried with the settlement in game name ('al-Quds aš-Šarīf'. It caused a fatal error because of unrecognized letters), with the province tag (Judea), and with the province in game name (also Judea).

    I know the settlementname condition works with the anciliaries in BI/RTW, but does it work aswell with traits ?

    For now, I'll leave it like that, as I don't want to spend a whole day finding the issue, but I just see no reason this trait wouldn't work.

  6. #6
    is not a senior Member Meneldil's Avatar
    Join Date
    Aug 2004
    Location
    France
    Posts
    3,074

    Default Re : Bugged trait - Can't find the issue

    Ok, after reading all the topics related to traits, anciliaries and scripts, I finally found what was going on.

    The SettlementName condition definitely looks for the display name (here, 'al-Quds aš-Šarīf'), not for the tag (in my case 'Jerusalem'). Since using the 'al-Quds aš-Šarīf' name in the trait file create a fatal error, I changed the display name to 'al-Quds as-Sarif', and changed the condition to
    SettlemmentName al-Quds_as-Sarif

    It didnt work, so I changed the display name to 'Jerusalem', and the condition to settlementname Jerusalem, and it worked fine.

    It might be an old news to experienced traiters/scripters, but I haven't seen any reference to that in any topic.
    Edit : I should have looked better - https://forums.totalwar.org/vb/showthread.php?t=43121
    Last edited by Meneldil; 12-13-2005 at 15:11.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO