Results 1 to 15 of 15

Thread: Provincial campaign descriptions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Provincial campaign descriptions

    Where to put them? Not faction descriptions for provincial campaigns, but for the provincial campaigns themselves.

    - Putting
    {PROV_CAMP_TITLE} Blah
    into campaign_descriptions.txt only sets the title in the list

    - Changing description.txt in the campaign directory has no effect.

    - There is more than one, so changing NO_DESCRIPTION in menu_english.txt is not an option.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  2. #2
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Provincial campaign descriptions

    Which description text are you referring to? The one when you select it from the provincial select screen and text appears in the box to the right?

    I know the provincial campaign I worked on for M2 changed the description.txt file, but then that's for M2(was my understanding though that it was legacy code from Rome). The problem I've been having isn't the description itself but the name above the description box on the right hand side of the selection screen. Odd.

    It's possible modifying one of these lines in the menu_english might work(looking at M2, but they seem to be in Rome as well):
    Code:
    {UI_PROVINCIAL_CAMPAIGN_DESCRIPTION}Campaign Description
    {UI_PROVINCIAL_CAMPAIGN_SELECT}Select Campaign
    {UI_PROVINCIAL_CAMPAIGN_SELECT_FACTION}Select a faction
    {UI_PROVINCIAL_CAMPAIGN_SELECT_TOOLTIP}Select custom campaign
    {UI_PROVINCIAL_CAMPAIGN_TITLE}Custom Campaigns
    Either appending the name of the campaign(based on folder or what it's called in the descr_strat) after "PROVINCIAL_CAMPAIGN" or perhaps in place of it. For example:
    Code:
    {UI_PROVINCIAL_CAMPAIGN_MY_CAMPAIGN_DESCRIPTION}Campaign Description
    {UI_PROVINCIAL_CAMPAIGN_MY_CAMPAIGN_SELECT}Select Campaign
    {UI_PROVINCIAL_CAMPAIGN_MY_CAMPAIGN_SELECT_FACTION}Select a faction
    {UI_PROVINCIAL_CAMPAIGN_MY_CAMPAIGN_SELECT_TOOLTIP}Select custom campaign
    {UI_PROVINCIAL_CAMPAIGN_MY_CAMPAIGN_TITLE}Custom Campaigns
    
    or
    
    {UI_MY_CAMPAIGN_DESCRIPTION}Campaign Description
    {UI_MY_CAMPAIGN_SELECT}Select Campaign
    {UI_MY_CAMPAIGN_SELECT_FACTION}Select a faction
    {UI_MY_CAMPAIGN_SELECT_TOOLTIP}Select custom campaign
    {UI_MY_CAMPAIGN_TITLE}Custom Campaigns
    Lastly consider specifying the string in "expanded.txt". Like:

    Code:
    {MY_CAMPAIGN}My Campaign
    {MY_CAMPAIGN_DESCR}Here's my desc
    {MY_CAMPAIGN_DESC}Here's my desc
    {MY_CAMPAIGN_DESCRIPTION}Here's my desc
    Last edited by Augustus Lucifer; April 24, 2009 at 09:56 PM.

  3. #3
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Provincial campaign descriptions

    Never mind. Moving provincial campaign folders into campaign\custom got the game to read descriptions from descriptions.txt
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  4. #4
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Provincial campaign descriptions

    Quote Originally Posted by HouseOfHam View Post
    Never mind. Moving provincial campaign folders into campaign\custom got the game to read descriptions from descriptions.txt
    Okay. And I found out how the text above the description is determined. It's based on whatever text is in the descr_strat line for the Provincial Campaign. So you can set that line to "Monkey" and it will read Monkey, but everything else will have no description since there's no Monkey_X strings. It has no impact on the game files, it's purely a string line.

    Which begs the question if it's possible to include string references with spaces in them. And if so what would they look like within the string.

  5. #5
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Provincial campaign descriptions

    Which bring me to the next question. Have you gotten the I_MapName condition to work?
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  6. #6
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Provincial campaign descriptions

    Quote Originally Posted by HouseOfHam View Post
    Which bring me to the next question. Have you gotten the I_MapName condition to work?
    I haven't used it personally. It doesn't make sense to use it in a script, because scripts are local to the campaign. It rather would be used in a file in the data folder, like Ancillaries, Traits, Advice, or etc. It's used in the vanilla advice with this syntax:

    Code:
    and not I_MapName data/world/maps/campaign/norman_prologue/descr_strat.txt
    Should work with path to the descr_strat in the three above files.

    Code:
    and I_MapName data/world/maps/campaign/custom/RTR-TIC/descr_strat.txt
    Or whatever.

  7. #7
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Provincial campaign descriptions

    I'm trying to use it in export_descr_advice.txt. There is a set of triggers for each campaign that should start the appropriate script... except I can't get them to work, even though that's exactly what I tried.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  8. #8
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Provincial campaign descriptions

    UHHHHHH!!!! I'll be damned! I've been trying it with

    Code:
              and I_MapName FOE/Data/world/maps/campaign/custom/the_iberian_conflict/descr_strat.txt
    and it would not work, even though that's exactly what the path is, but I finally tried it with

    Code:
              and I_MapName FOE/data/world/maps/campaign/custom/the_iberian_conflict/descr_strat.txt
    and it finally worked! They probably have a hard-coded format string somewhere in the exe that looks like %s/data/world/maps/campaign/%s so it must be exactly as they have it or it won't work.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  9. #9
    MasterOfNone's Avatar RTW Modder 2004-2015
    Join Date
    May 2005
    Location
    England
    Posts
    16,707

    Default Re: Provincial campaign descriptions

    You, see that's what happens when you make a big d out of everything

    Could one of you explain exactly what this does, btw - sounds like it may be of use. Thanks.
    "One of the most sophisticated Total War mods ever developed..."
    The Fourth Age: Total War - The Dominion of Men

  10. #10
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Provincial campaign descriptions

    Quote Originally Posted by HouseOfHam View Post
    UHHHHHH!!!! I'll be damned! I've been trying it with

    Code:
              and I_MapName FOE/Data/world/maps/campaign/custom/the_iberian_conflict/descr_strat.txt
    and it would not work, even though that's exactly what the path is, but I finally tried it with

    Code:
              and I_MapName FOE/data/world/maps/campaign/custom/the_iberian_conflict/descr_strat.txt
    and it finally worked! They probably have a hard-coded format string somewhere in the exe that looks like %s/data/world/maps/campaign/%s so it must be exactly as they have it or it won't work.
    Probably. The game is known to use UNIX path tendencies for a variety of things. I'm not sure if this is an instance of it or not, but capitalization plays a factor in paths on a website as well.

    @ MoN:

    Pretty much what he said. I'm not familiar with the limitations of the Rome background campaign script or the docudemons, though. In M2 at least you could do something like:
    Code:
    monitor_event FactionTurnStart FactionIsLocal
    
    if I_MapName etc/etc/etc1
    set_event_counter Map_1 1
    set_event_counter Map_2 0
    set_event_counter Map_3 0
    end_if
    
    if I_MapName etc/etc/etc2
    set_event_counter Map_1 0
    set_event_counter Map_2 1
    set_event_counter Map_3 0
    end_if
    
    if I_MapName etc/etc/etc3
    set_event_counter Map_1 0
    set_event_counter Map_2 0
    set_event_counter Map_3 1
    end_if
    
    terminate_monitor
    end_monitor
    And then use those event counters in most of the files from the data folder. Not sure if Rome has event counters or not, if they are accepted in the advice file, or if a monitor like that is possible. As such the I_MapName command being used directly in files is a good half-step. The downside with that compared to the above method is event counters(at least in M2) also work in the EDB, Mercenaries file, etc.

  11. #11
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Provincial campaign descriptions

    Quote Originally Posted by Augustus Lucifer View Post
    Probably. The game is known to use UNIX path tendencies for a variety of things. I'm not sure if this is an instance of it or not, but capitalization plays a factor in paths on a website as well.
    This isn't about using UNIX-like paths. It's more of a problem with CA hard-coding strings in their code, then using a case-sensitive strcmp on them.

    Quote Originally Posted by Augustus Lucifer View Post
    In M2 at least you could do something like: ...
    And then use those event counters in most of the files from the data folder. Not sure if Rome has event counters or not, if they are accepted in the advice file, or if a monitor like that is possible. As such the I_MapName command being used directly in files is a good half-step. The downside with that compared to the above method is event counters(at least in M2) also work in the EDB, Mercenaries file, etc.
    Event counters are not supported in RTW. The only places you can use docudemon_conditions, other than in a script, are in export_descr_advice, export_descr_character_traits, and export_descr_ancillaries triggers.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  12. #12
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Provincial campaign descriptions

    It's for making triggers that only apply to a specific provincial campaign. In my case, the TIC provincial campaign starts on a different date than the main FOE campaign, so it needs a different 4tpy script. The I_MapName condition tells me which campaign it is, so I can then start the appropriate script.

    Spoiler Alert, click show to read: 

    Code:
    ;=============================
    ;== RTR VII Advice Threads ===
    ;=============================
    
    ;------------------------------------------
    AdviceThread BackgroundScriptThread
        GameArea Campaign
    
        Item BackgroundScriptItem1
            Uninhibitable
            Verbosity  0
            Threshold  1
            MaxRepeats  0
            RepeatInterval  1
            Attitude Normal
            Presentation Default
            Title BackgroundScriptTitle1
            On_display scripts\show_me\background_script.txt
            Text BackgroundScriptText1
    
    ;------------------------------------------
    AdviceThread TICBackgroundScriptThread
        GameArea Campaign
    
        Item TICBackgroundScriptItem1
            Uninhibitable
            Verbosity  0
            Threshold  1
            MaxRepeats  0
            RepeatInterval  1
            Attitude Normal
            Presentation Default
            Title TICBackgroundScriptTitle1
            On_display scripts\show_me\tic_background_script.txt
            Text TICBackgroundScriptText1
    
    
    ;;; Triggers
    
    ;-- FOE Imperial Campaign --
    Trigger background_script_trigger_1
        WhenToTest ButtonPressed
    
        Condition ButtonPressed faction_button
              and I_MapName FOE/data/world/maps/campaign/barbarian_invasion/descr_strat.txt
    
        AdviceThread BackgroundScriptThread  1
    
    ;------------------------------------------
    Trigger background_script_trigger_2
        WhenToTest ButtonPressed
    
        Condition ButtonPressed construction_button
              and I_MapName FOE/data/world/maps/campaign/barbarian_invasion/descr_strat.txt
    
        AdviceThread BackgroundScriptThread  1
    
    ;------------------------------------------
    Trigger background_script_trigger_3
        WhenToTest ButtonPressed
    
        Condition ButtonPressed recruitment_button
              and I_MapName FOE/data/world/maps/campaign/barbarian_invasion/descr_strat.txt
    
        AdviceThread BackgroundScriptThread  1
    
    ;------------------------------------------
    Trigger background_script_trigger_4
        WhenToTest SettlementSelected
    
        Condition I_MapName FOE/data/world/maps/campaign/barbarian_invasion/descr_strat.txt
    
        AdviceThread BackgroundScriptThread  1
    
    ;------------------------------------------
    
    ;-- TIC Provincial Campaign --
    Trigger TIC_background_script_trigger_1
        WhenToTest ButtonPressed
    
        Condition ButtonPressed faction_button
              and I_MapName FOE/data/world/maps/campaign/custom/the_iberian_conflict/descr_strat.txt
    
        AdviceThread TICBackgroundScriptThread  1
    
    ;------------------------------------------
    Trigger TIC_background_script_trigger_2
        WhenToTest ButtonPressed
    
        Condition ButtonPressed construction_button
              and I_MapName FOE/data/world/maps/campaign/custom/the_iberian_conflict/descr_strat.txt
    
        AdviceThread TICBackgroundScriptThread  1
    
    ;------------------------------------------
    Trigger TIC_background_script_trigger_3
        WhenToTest ButtonPressed
    
        Condition ButtonPressed recruitment_button
              and I_MapName FOE/data/world/maps/campaign/custom/the_iberian_conflict/descr_strat.txt
    
        AdviceThread TICBackgroundScriptThread  1
    
    ;------------------------------------------
    Trigger TIC_background_script_trigger_4
        WhenToTest SettlementSelected
    
        Condition I_MapName FOE/data/world/maps/campaign/custom/the_iberian_conflict/descr_strat.txt
    
        AdviceThread TICBackgroundScriptThread  1
    
    ;------------------------------------------


    It can also be used in a similar manner to make campaign-specific traits and ancillaries.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  13. #13
    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,681
    Blog Entries
    35

    Default Re: Provincial campaign descriptions

    Slightly off topic: since the coming of version 1.5 all the tutorials for provincial campaigns go bust because they rely on Alpaca's kit (which uses the mt2w.lnt from version 1.3). Could someone point the way on how to make\obtain an updated mt2w.lnt file and the corresponding graphics and text files?










  14. #14
    Ramashan's Avatar Artifex
    Join Date
    Apr 2007
    Location
    Los Angeles, CA
    Posts
    4,981

    Default Re: Provincial campaign descriptions

    Are you asking this regarding RTW? I don't think M2TW files do anything at all for RTW
    Under the Patronage of Lord Condormanius

  15. #15
    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,681
    Blog Entries
    35

    Default Re: Provincial campaign descriptions

    My apologies, got here through an external search (Google) and didn't realize this was a RTW forum, not a Med2 one.










Posting Permissions

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