Results 1 to 14 of 14

Thread: faction_standings problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Kolwen's Avatar Artifex
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    1,217

    Default faction_standings problem

    I want to make all factions with good relationships, but not byzantium (they are the bad guys). It works only for some factions and I don't know why.
    IE: hungary have "perfect" relation with france, scotland, england, milan and hre, but only acceptable with byzantium, denmark, moors and egypt. What is wrong in my code?


    descr_strat.txt ->
    Spoiler Alert, click show to read: 

    faction_standings england, 0.9 france, scotland, milan, hre, hungary, denmark, moors, egypt
    faction_standings england, -1.0 byzantium
    faction_standings scotland, 0.9 france, england, milan, hre, hungary, denmark, moors, egypt
    faction_standings scotland, -1.0 byzantium
    faction_standings france, 0.9 scotland, england, milan, hre, hungary, denmark, moors, egypt
    faction_standings france, -1.0 byzantium
    faction_standings milan, 0.9 france, scotland, england, hre, hungary, denmark, moors, egypt
    faction_standings milan, -1.0 byzantium
    faction_standings hre, 0.9 france, scotland, england, milan, hungary, denmark, moors, egypt
    faction_standings hre, -1.0 byzantium
    faction_standings hungary, 0.9 france, scotland, england, milan, hre, denmark, moors, egypt
    faction_standings hungary, -1.0 byzantium
    faction_standings denmark, 0.9 france, scotland, england, milan, hre, hungary, moors, egypt
    faction_standings denmark, -1.0 byzantium
    faction_standings moors, 0.9 france, scotland, england, milan, hre, hungary, denmark, egypt
    faction_standings moors, -1.0 byzantium
    faction_standings egypt, 0.9 france, scotland, england, milan, hre, hungary, denmark, moors
    faction_standings egypt, -1.0 byzantium
    faction_standings byzantium, -1.0 france, scotland, england, milan, hre, hungary, denmark, moors, egypt
    Last edited by Kolwen; January 05, 2011 at 06:43 PM.

  2. #2

    Default Re: faction_standings problem

    It's done both ways i think:-
    Code:
    faction_standings england, 1.0 france
    faction_standings france, 1.0 england

  3. #3
    Kolwen's Avatar Artifex
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    1,217

    Default Re: faction_standings problem

    This is from vanilla M2TW Kingdoms descr_strat.txt file:
    In some cases (IE: milan-venice) it is not the same in both ways :\

    Spoiler Alert, click show to read: 
    faction_standings england, -0.2 france, scotland
    faction_standings england, -1.0 slave
    faction_standings scotland, -0.2 england
    faction_standings scotland, 0.2 france
    faction_standings scotland, -1.0 slave
    faction_standings france, -0.2 england
    faction_standings france, 0.2 scotland
    faction_standings france, -1.0 slave
    faction_standings venice, -0.2 byzantium
    faction_standings venice, -0.45 milan, hre
    faction_standings venice, -1.0 slave
    faction_standings milan, -0.4 venice, hre
    faction_standings milan, -1.0 slave
    faction_standings hre, -0.2 poland
    faction_standings hre, -0.45 venice, milan
    faction_standings hre, -1.0 slave
    faction_standings poland, -0.2 russia, hre
    faction_standings poland, 0.2 hungary
    faction_standings poland, -1.0 slave
    faction_standings hungary, -0.2 byzantium
    faction_standings hungary, 0.2 poland
    faction_standings hungary, -1.0 slave
    faction_standings spain, 0.2 portugal
    faction_standings spain, -0.85 moors
    faction_standings spain, -1.0 slave
    faction_standings sicily, -0.2 moors
    faction_standings sicily, -0.45 byzantium
    faction_standings sicily, -1.0 slave
    faction_standings denmark, -1.0 slave
    faction_standings portugal, 0.2 spain
    faction_standings portugal, -0.85 moors
    faction_standings portugal, -1.0 slave
    faction_standings papal_states, -0.45 hre
    faction_standings papal_states, 0.2 england, portugal, poland, hungary
    faction_standings papal_states, -1.0 slave
    faction_standings moors, -0.2 sicily
    faction_standings moors, -0.85 spain, portugal
    faction_standings moors, -1.0 slave
    faction_standings byzantium, -0.2 hungary, venice
    faction_standings byzantium, -0.45 sicily
    faction_standings byzantium, -0.85 turks
    faction_standings byzantium, -1.0 slave
    faction_standings turks, -0.65 egypt
    faction_standings turks, -0.8 byzantium
    faction_standings egypt, -0.6 turks
    faction_standings egypt, -0.6 slave

  4. #4

    Default Re: faction_standings problem

    Thats probably a typo on behalf of the vanilla coder. I think the number of factions you can have on one line has a limit, try a new line for every faction relationship and it will probably work.

  5. #5
    Kolwen's Avatar Artifex
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    1,217

    Default Re: faction_standings problem

    I tried it and the result is the same.
    What I want to do is avoid wars between factions of the same religion by improving their relations (byzantium is the only one with different religion)
    I also want to improve the relations with the pope (egypt) to avoid excomulgation.
    Is there anything better that could I do?

  6. #6

    Default Re: faction_standings problem

    You could edit the file known as descr_faction_standing.txt

  7. #7
    Kolwen's Avatar Artifex
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    1,217

    Default Re: faction_standings problem

    How can make factions with same religion increasing their relationships each turn? And decreasing their relations if they have different religion?
    My skills at scripting are really bad
    I have been lurking around the forum but I can't find anyhing like that.

    PS: Maybe something like this?

    Spoiler Alert, click show to read: 
    Trigger 0048_P_Assassin_Caught_Attacking_Pope
    WhenToTest AssassinCaughtAttackingPope

    FactionStanding factions { egypt } -1.0

    ; Make the papal states dislike other religions


    Can I add more factions in addition to egypt? Separated by "," or different lines?

    PS2: I found this error in the log:

    Code:
    17:27:17.671 [script.err] [error] Script Error in mods/The_Sundering/data/world/maps/campaign/imperial_campaign/descr_strat.txt, at line 769, column 49
    problem with faction_standings, probably an incorrect faction string
    Any idea about what is this?
    Last edited by Kolwen; January 07, 2011 at 10:32 AM.

  8. #8

    Default Re: faction_standings problem

    The error all depends on what's at line 769 in descr_strat...

    I've pulled this from my Akthross mod
    Code:
    ;------------------------------------------
    Trigger 0158_Normalise_Cultist_catholic
        WhenToTest FactionTurnStart
        Condition FactionReligion heretic
        FactionStanding exclude_factions { } -1.0
    ;------------------------------------------
    If you wanted the relations to improve instead of get worse, you'd make the nagative a positive. All it takes is a bit of study and you'll get the idea.

  9. #9
    Kolwen's Avatar Artifex
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    1,217

    Default Re: faction_standings problem

    Thank you!
    Just one more thing...
    Anyone knows how to avoid the wars between factions of the same religion? Improving their relationships is not enough

  10. #10

    Default Re: faction_standings problem

    Quote Originally Posted by Kolwen View Post
    Thank you!
    Just one more thing...
    Anyone knows how to avoid the wars between factions of the same religion? Improving their relationships is not enough
    For that you have to design separate ai labels for them which are used in the descr_campaign_ai_db.xml file which is something typical.

  11. #11
    Kolwen's Avatar Artifex
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    1,217

    Default Re: faction_standings problem

    How should it looks like? I have not much idea about modifying that file

    PS: Do you know if this could work?
    Theorically this avoid war if you have good faction standings.
    I've also improved the faction standings if you have the same religion

    Code:
            <decision_entry>
            <!--
            IF GOOD STANDINGS, REDUCE INVADE PRIORITY
            -->
            <min_entry faction_standing="0.1"/>
            <max_entry faction_standing="1.0"/>
            <faction_attitude invade_priority="-250" continue="true"/>
            </decision_entry>
    Last edited by Kolwen; January 08, 2011 at 07:13 AM.

  12. #12

    Default Re: faction_standings problem

    That looks like it would work, you could break it down more 0.1-0.5 -250 0.6-1.0 -500
    But be aware that all the other factors in the label mean that they could and most likely would still go to war. You have to really go to town on the label to get anywhere.

  13. #13
    Kolwen's Avatar Artifex
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    1,217

    Default Re: faction_standings problem

    does it work too if I apply this decision_entry to slave faction instead of those faction standings?

  14. #14
    Bela's Avatar Ducenarius
    Join Date
    May 2009
    Location
    The land of the crazy folk
    Posts
    947

    Default Re: faction_standings problem

    Or you can add a short script into campaign_script for the factions you want. If they declare war on each other, you can quickly change their relations back to peace or even to allied.
    "No Rest until the Blood of Greenskins flows like Dark Ale upon the Earth!"

    +++ Josef Bugman +++




Posting Permissions

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