Page 1 of 2 12 LastLast
Results 1 to 20 of 22

Thread: problem adding a new ancillary

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default problem adding a new ancillary

    I'm trying to add a new ancillary, just in order to understand what is the mechanics (and in order to collaborate in a mod's development)
    Tried to add Bob Dylan as an ancillary to Alfonso (king of Spain)
    I'm totally new tot his type of modding, but i've tried... and i failed.
    This is what i've done:
    added in export_descr_ancillaries.txt
    Code:
    ;------------------------------------------
    Ancillary bob_dylan
        Type Entertain
        Trasferable 0
        Image entertainment_artist.tga
        Unique
        Description bob_dylan_desc
        EffectsDescription bob_dylan_effects_desc
        Effect TroopMorale 2
        Effect LocalPopularity 2
        Effect Influence 1
    and
    Code:
    ;------------------------------------------
    Trigger bob_dylan_vnv_trigger
        WhenToTest CharacterTurnEnd
        Condition EndedInSettlement
              and SettlementBuildingExists >= tavern
              and IsGeneral
    
        AcquireAncillary bob_dylan chance  5
    added in export_descr_ancillary_enums.txt
    Code:
    bob_dylan
    bob_dylan_desc
    bob_dylan_effects_desc
    added in text\export_ancillaries.txt
    Code:
    {bob_dylan}Bob Dylan
    {bob_dylan_desc}The famous songwriter Bob Dylan. A poet, a musician, also an actor: the Bob Dylan's talent haven't a limit.
    {bob_dylan_effects_desc}+2 Troop Morale, +2 Local Popularity, +1 Influence
    added in world\maps\campaign\imperial_campaign\descr_strat.txt
    Code:
    character    Alfonso el Valiente, named character, male, leader, age 40, x 78, y 90 
    traits Factionleader 1 , LoyaltyStarter 1 , GoodCommander 1 , Energetic 1 , Intelligent 1 , ReligionStarter 1 
    ancillaries bard , bob_dylan
    I also deleted export_ancillaries.txt.strings.bin in order to permit the game to recreate it.

    Result
    When i started a new campaing as Spanish, nothing happens.

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: problem adding a new ancillary

    Ancillary bob_dylan
    Type Entertain
    Transferable 0
    Image entertainment_artist.tga
    Unique
    Description bob_dylan_desc
    EffectsDescription bob_dylan_effects_desc
    Effect TroopMorale 2
    Effect LocalPopularity 2
    Effect Influence 1










  3. #3

    Default Re: problem adding a new ancillary

    Thank you! I corrected that but remains the same problem:
    When i start a new great campaign, chose the Spanish, and see the king Alfonso's ancillaries, there is only the bard...

  4. #4

    Default Re: problem adding a new ancillary

    Tubia
    Take out the space between the bard and the comma, so reads ;

    ancillaries bard, bob_dylan

    To err is human, but to really foul things up you need a computer.
    Paul Ehrlich

  5. #5

    Default Re: problem adding a new ancillary

    Thank you.
    Fixed that but neither with this correction it works.
    I tried also with the english factionleader, but no success.

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: problem adding a new ancillary

    try and put bob_dylan as the first ancillary.










  7. #7

    Default Re: problem adding a new ancillary

    I've putted bob_dylan as the first:
    Code:
    ;===============================================================
    ;== ANCILLARY DATA STARTS HERE ==
    ;===============================================================
    
    Ancillary bob_dylan
        Type Entertain
        Transferable 0
        Image entertainment_artist.tga
        Unique
        Description bob_dylan_desc
        EffectsDescription bob_dylan_effects_desc
        Effect TroopMorale 2
        Effect LocalPopularity 2
        Effect Influence 1
    Nothing happens. I've also tried putting a ;------- between the title and the ancillary but nothing change (and i think the ;----- is just an esthetic matter)
    I've also tried to invert the order of the ancillaries in Alfonso so:
    Code:
    ancillaries bob_dylan, bard
    the ancillary "bard" disappear ingame
    Code:
    ancillaries bob_dylan , bard
    the ancillary "bard" disappear ingame

    I really don't understand.
    Feeling a bit stupid..
    Maybe i should just give it up.

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: problem adding a new ancillary

    Here comes my usual question: are you using the file_first command?
    Another suggestion: change your error log to error reporting. The default is trace and is very difficult to read.
    Underneath the entries for your medieval2.preference.cfg (or mod cfg):

    Code:
    [log] 
    level = * error
    
    [io]
    file_first = true
    You will have to make the file read-only as the game constantly re-writes the entries. (And deletes the custom created ones).










  9. #9

    Default Re: problem adding a new ancillary

    Tubia
    As your adding in the ancillary via descr_stat, try commenting out the trigger, as it will not be needed for this test.

    Then give character two known ancillaries eg
    ancillaries bard, tutor

    Check that both appear, as this will point out whether the issue is with bob or the line itself.

    To err is human, but to really foul things up you need a computer.
    Paul Ehrlich

  10. #10

    Default Re: problem adding a new ancillary

    Quark
    Done them both.
    I commented out the trigger and then gave to Alfonso these ancillaries:
    Code:
    ancillaries tutor, bard
    And all works.
    So it seems to be a bob_dylan's problem...

    gigantus
    Added the lines to my medieval2.preference.cfg

    Thank you for the assistance )))
    I'm away from a pc 'til sunday so..
    See you sunday!
    (hope to resolve this thing)

    Best Regards

  11. #11
    Gampie's Avatar Tiro
    Join Date
    Oct 2006
    Location
    Flanders
    Posts
    254

    Default Re: problem adding a new ancillary

    Hmm... what are you doing wrong? I just did all the steps you did and it works perfectly:



    I operated from a mymod subfolder.

    Do you have a valid image for the ancillary? 33x41 pixels, 24-bits tga
    Have you deleted map.rwm after you edited descr_strat.txt?

  12. #12
    TheFirstONeill's Avatar Father of Thera
    Join Date
    May 2007
    Location
    Knutsford Cheshire, England
    Posts
    16,172

    Default Re: problem adding a new ancillary




    Nice portraits, where did you source them ?

    cheers
    Jason

    House of Wilpuri :By the Patronage of Elrond: Patron of Caki : Aduellist : Borissomeone
    Proud Creator of Thera, Legacy of the Great Torment: Opifex :

  13. #13
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: problem adding a new ancillary

    Any luck Tubie?


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  14. #14
    Lord Condormanius's Avatar Artifex
    Join Date
    Dec 2006
    Location
    Derby, CT U.S.A.
    Posts
    6,439

    Default Re: problem adding a new ancillary

    Bob Dylan rules. I didn't realize he was around back then. Good job, folks, for making me aware.
    "There is a difference between what is wrong and what is evil. Evil is committed when clarity is taken away from what is clearly wrong, allowing wrong to be seen as less wrong, excusable, right, or an obligatory commandment of the Lord God Almighty.

    Evil is bad sold as good, wrong sold as right, injustice sold as justice. Like the coat of a virus, a thin veil of right can disguise enormous wrong and confer an ability to infect others."
    -John G. Hartung

  15. #15
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: problem adding a new ancillary

    He's pretty old, after all.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  16. #16

    Default Re: problem adding a new ancillary

    Nothing.
    I deleted the map.rwm but nothing changes.
    I also modified the image path in:
    Code:
        Image entertainment_bard.tga
    I use, to modify every file, the windows notepad application (the default application for .txt files).
    Sorry for my absence, but i'm having some health's troubles.
    I'm happy that Gampie makes it works. It makes me hope for a solution
    Thank you for all the support : ))

    Best Regards

  17. #17

    Default Re: problem adding a new ancillary

    Tubia
    Another thought - to elimate whether its a graphic issue, just copy&paste, then rename an existing image, say mentor, and see if bob then appears. That way we will know if the issue is with the text (which looks fine from you posts) or the image you are using.

    To err is human, but to really foul things up you need a computer.
    Paul Ehrlich

  18. #18

    Default Re: problem adding a new ancillary

    I created data\ui\ancillaries
    and added in bob_dylan.tga (a copy of a broken sword's ancillary).
    Neither this is the problem.
    For a moment i tought that the problem was that i haven't got the data\ui\ancillaries folder but... It was a fruitless hope

  19. #19

    Default Re: problem adding a new ancillary

    Ok i got the problem:
    Code:
    12:55:13.046 [script.err] [error] Script Error in data/export_descr_ancillaries.txt, at line 8, column 11
    Could'n find ancillary name string <bob_dylan>.
    12:55:13.046 [script.err] [error] Script Error in data/export_descr_ancillaries.txt, at line 13, column 17
    Could'n find ancillary description string <bob_dylan_desc>.
    But in my export_ancillaries.txt there is {bob_dylan} and {bob_dylan_desc}.
    Now we know the problem.

    Regards

  20. #20
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: problem adding a new ancillary

    Got the entry in this file?: data\export_descr_ancillary_enums.txt










Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •