Results 1 to 5 of 5

Thread: how do I modify the "Distance to capitol thing

Hybrid View

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

    Default how do I modify the "Distance to capitol thing

    I am trying to reduce the distance to capitol penalty.

    I found this line in descr_settlement_mechanics.xml

    Code:
    <factor name="SOF_DISTANCE_TO_CAPITAL">
             <pip_modifier value="0.5"/>
             <castle_modifier value="0.4"/>
             <city_modifier value="0.5"/>
             <pip_min value="0"/>
             <pip_max value="16"/>
          </factor>
    but I have no idea what to do

    how do I reduce the public order penalty


    "Do you know, my son, with what little understanding the world is ruled?"Pope Julius III
    Want to add your own mercenaries? Read my Tutorial

  2. #2

    Default Re: how do I modify the "Distance to capitol thing

    This is one of the few pips in the settlement_mechanics file i have not got around to testing. It only affects settlements, obviously. As i stated in another thread every pip in this file refers to a value from another file, such as the EDB, descr_regions. The pip itself is nothing more than a percentage value of the actual value taken from this other file. Using castle or city_modifier simply modifies the pip value further. (in your example the city modifier value is 0.5, so it is 50% of the value of the pip, which itself is 50% of the value from another file - it does get confusing if you think on it for to long lol). As for the actual distance that is being measured, i can't say. I believe some of the values are hardcoded and are not found in other files (like BOOM, no idea where that is measured). So its possible this value can not be edited, but the settlement_mechanics file can modify it indirectly. The distance could be the value in the descr_character file
    From descr_character.
    Code:
     
    starting_action_points 140 ; default value for all characters and pathfinding calculations
    My guess is increasing the pip will increase the distance before order issues come into effect, decreasing the pip will shorten the distance.

    From my tests with other values in this file, thats the best i got for you at this stage. Hope it helps.
    ...longbows, in skilled hands, could reach further than trebuchets...

  3. #3
    Vegas_Bear's Avatar Biarchus
    Join Date
    Sep 2005
    Location
    Las Vegas, NV
    Posts
    605

    Default Re: how do I modify the "Distance to capitol thing

    To reduce the distance penalty reduce the # in red

    <pip_modifier value="0.5"/>

    Try 0.25, that will half what you have now.

    <castle_modifier value="0.4"/> <--This further reduces it in castles, if lowered.
    <city_modifier value="0.5"/> <--This further reduces it in cities, if lowered.

    More info here -

    http://www.twcenter.net/forums/showt...NCE_TO_CAPITAL

    and

    http://www.twcenter.net/forums/showt...NCE_TO_CAPITAL

    and

    http://www.twcenter.net/forums/showt...NCE_TO_CAPITAL

    Hope these help, Vegas_Bear

  4. #4
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,233

    Default Re: how do I modify the "Distance to capitol thing

    Quote Originally Posted by Vegas_Bear View Post
    To reduce the distance penalty reduce the # in red

    <pip_modifier value="0.5"/>

    Try 0.25, that will half what you have now.

    <castle_modifier value="0.4"/> <--This further reduces it in castles, if lowered.
    <city_modifier value="0.5"/> <--This further reduces it in cities, if lowered.

    More info here -

    http://www.twcenter.net/forums/showt...NCE_TO_CAPITAL

    and

    http://www.twcenter.net/forums/showt...NCE_TO_CAPITAL

    and

    http://www.twcenter.net/forums/showt...NCE_TO_CAPITAL

    Hope these help, Vegas_Bear

    Agreed. I have used the same way.
    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

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

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

    Default Re: how do I modify the "Distance to capitol thing

    Quote Originally Posted by Tsarsies View Post
    This is one of the few pips in the settlement_mechanics file i have not got around to testing. It only affects settlements, obviously. As i stated in another thread every pip in this file refers to a value from another file, such as the EDB, descr_regions. The pip itself is nothing more than a percentage value of the actual value taken from this other file. Using castle or city_modifier simply modifies the pip value further. (in your example the city modifier value is 0.5, so it is 50% of the value of the pip, which itself is 50% of the value from another file - it does get confusing if you think on it for to long lol). As for the actual distance that is being measured, i can't say. I believe some of the values are hardcoded and are not found in other files (like BOOM, no idea where that is measured). So its possible this value can not be edited, but the settlement_mechanics file can modify it indirectly. The distance could be the value in the descr_character file
    From descr_character.
    Code:
     
    starting_action_points 140 ; default value for all characters and pathfinding calculations
    My guess is increasing the pip will increase the distance before order issues come into effect, decreasing the pip will shorten the distance.

    From my tests with other values in this file, thats the best i got for you at this stage. Hope it helps.
    You really should write a tutorial on that file. I mean you've done it piecemeal in a few topics already.

Posting Permissions

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