Results 1 to 2 of 2

Thread: Let's fix damn resistance to foreign occupation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Let's fix damn resistance to foreign occupation

    I'll start. Here's result of exporting .empire_save, one turn after taking Venice (which shockingly turned out to have resistance 13 to Austrians, not 30 ...):

    Spoiler Alert, click show to read: 

    <rec type='REGION'>
    <s>venice</s>
    <rec type='POPULATION'>
    <rec type='REGION_FACTORS'>
    <flt_ary>0.299999982118607 0.199999988079071 -0.449999988079071 -0.349999994039535 0.0 0.0 0.0</flt_ary>
    <ary type='POPULATION CLASSES'>
    <rec type='POPULATION CLASSES'>
    <rec type='POPULATION_CLASS'>
    <s>upper</s>
    <i4_ary>2 -4 0 0 2 0 0 0 0 0 -12</i4_ary>
    <i4_ary>5 2 1 0 4 0</i4_ary>
    <i>4</i>
    <i>-16</i>
    <i>12</i>
    <i>0</i>
    <i>0</i>
    <u>0</u>
    <u>0</u>
    <u>7</u>
    <i>0</i>
    <i>-12</i>
    </rec>
    </rec>
    <rec type='POPULATION CLASSES'>
    <rec type='POPULATION_CLASS'>
    <s>lower</s>
    <i4_ary>-2 -4 0 0 4 0 1 0 0 0 -12</i4_ary>
    <i4_ary>5 2 1 1 4 0</i4_ary>
    <i>5</i>
    <i>-18</i>
    <i>13</i>
    <i>0</i>
    <i>0</i>
    <u>0</u>
    <u>0</u>
    <u>7</u>
    <i>0</i>
    <i>-12</i>
    </rec>
    </rec>
    <rec type='POPULATION CLASSES'>
    <rec type='POPULATION_CLASS'>
    <s>middle</s>
    <i4_ary>1 -4 0 0 4 0 3 0 0 0 0</i4_ary>
    <i4_ary>2 2 2 0 2 0</i4_ary>
    <i>8</i>
    <i>-4</i>
    <i>8</i>
    <i>0</i>
    <i>0</i>
    <u>0</u>
    <u>0</u>
    <u>7</u>
    <i>0</i>
    <i>-12</i>
    </rec>
    </rec>
    </ary>...


    All these -12 can mean only one thing - resistance to foreign occupation.

    Here's Bosnia, taken one turn before:
    Spoiler Alert, click show to read: 

    <rec type='REGION'>
    <s>bosnia</s>
    <rec type='POPULATION'>
    <rec type='REGION_FACTORS'>
    <flt_ary>0.299999982118607 0.199999988079071 0.0 -0.0499999970197678 0.0 0.0 0.0</flt_ary>
    <ary type='POPULATION CLASSES'>
    <rec type='POPULATION CLASSES'>
    <rec type='POPULATION_CLASS'>
    <s>upper</s>
    <i4_ary>2 0 -3 0 0 0 0 0 0 0 -11</i4_ary>
    <i4_ary>5 1 1 4 1 0</i4_ary>
    <i>2</i>
    <i>-14</i>
    <i>12</i>
    <i>78</i>
    <i>0</i>
    <u>0</u>
    <u>0</u>
    <u>10</u>
    <i>0</i>
    <i>-11</i>
    </rec>
    </rec>
    <rec type='POPULATION CLASSES'>
    <rec type='POPULATION_CLASS'>
    <s>lower</s>
    <i4_ary>-2 0 -3 0 2 0 1 0 0 0 -11</i4_ary>
    <i4_ary>5 1 1 5 1 0</i4_ary>
    <i>3</i>
    <i>-16</i>
    <i>13</i>
    <i>72</i>
    <i>0</i>
    <u>0</u>
    <u>0</u>
    <u>10</u>
    <i>0</i>
    <i>-11</i>
    </rec>
    </rec>
    <rec type='POPULATION CLASSES'>
    <rec type='POPULATION_CLASS'>
    <s>middle</s>
    <i4_ary>0 0 0 0 0 0 0 0 0 0 0</i4_ary>
    <i4_ary>0 0 0 0 0 0</i4_ary>
    <i>0</i>
    <i>0</i>
    <i>0</i>
    <i>0</i>
    <i>0</i>
    <u>0</u>
    <u>0</u>
    <u>7</u>
    <i>0</i>
    <i>-11</i>
    </rec>
    </rec>
    </ary>



    -11 just as expected. It's interesting how for Bosnia (taken from one absolute monarchy
    by another absolute monarchy) - middle class has zeroes (except for that last -11),
    while for Venice, there's a lot of leftovers in middle class section.

    What do we do next?

  2. #2
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Let's fix damn resistance to foreign occupation

    Annotation time. Am I on the right track here?
    It all comes from .empire_save after a few turns as austria.

    Spoiler Alert, click show to read: 

    <rec type='REGION'>

    <!-- region name -->
    <s>bosnia</s>

    <rec type='POPULATION'>
    <rec type='REGION_FACTORS'>

    <!--
    population growth factors:

    • subsistence agriculture
    • agriculture
    • taxes
    • devastation by armies
    • ?
    • ?
    • ?

    -->
    <flt_ary>0.299999982118607 0.199999988079071 0.0 -0.0499999970197678 0.0 0.0 0.0</flt_ary>

    <ary type='POPULATION CLASSES'>
    <rec type='POPULATION CLASSES'>
    <rec type='POPULATION_CLASS'>

    <!-- class name -->
    <s>upper</s>

    <!-- happiness effects:

    • government type
    • taxes
    • religion
    • ?
    • entertainment and culture
    • ?
    • ?
    • ?
    • ?
    • ?
    • foreign occupation

    -->
    <i4_ary>2 0 -3 0 0 0 0 0 0 0 -11</i4_ary>

    <!--
    repression effects:

    • government type
    • government buildings
    • ?
    • ?
    • garrison
    • ?

    -->
    <i4_ary>5 1 1 4 1 0</i4_ary>

    <!-- sum of positive happiness effects -->
    <i>2</i>

    <!-- sum of negative happiness effects -->
    <i>-14</i>

    <!-- sum of repression -->
    <i>12</i>

    <-- WTF are all these ? -->
    <i>78</i>
    <i>0</i>
    <u>0</u>
    <u>0</u>
    <u>10</u>
    <i>0</i>

    <!-- resistance to foreign occupation-->
    <i>-11</i>
    </rec>
    </rec>

    ... <!-- the same for lower and middle class-->


    <u>652825</u> <!-- current population -->
    <u>787500</u> <!-- is one of these maximum population ??? -->
    <u>750000</u>
    <!-- net population growth -->
    <flt>0.449999988079071</flt>

    <!-- ??? -->
    <u>1</u>
    <no/>
    <i>0</i>
    <i>205</i>
    <u>2164260608</u>

    <!-- various religions -->
    <ary type='RELIGION_BREAKDOWN'>
    ...
    <rec type='RELIGION_BREAKDOWN'>
    <s>rel_islamic</s>
    <flt>0.300000011920929</flt>
    </rec>
    ...
    </ary>

    <!-- something to do with population ? -->
    <u>600000</u>
    <u>750000</u>
    <u>600000</u>

    <!-- no idea ... -->
    <i>250</i>
    </rec>

    <!-- skipping a lot of stuff, slots etc. -->

    <-- what is this ? -->
    <u>905471248</u>

    <!-- continent -->
    <s>europe</s>
    <-- rebels type -->
    <s>slavic_rebels</s>
    <-- rebels label -->
    <s>Bosnian Rebels</s>

    <!-- subculture -->
    <s>sc_european_east</s>

    <-- current recruitment ? -->
    <rec type='REGION_RECRUITMENT_MANAGER'>
    <ary type='REGION_RECRUITMENT_ITEM_ARRAY'>
    </ary>
    <no/>
    <i>1781866408</i>
    </rec>
    <no/>

    <!-- what is that? bin1 means booleans array -->
    <u4_ary>0 0 0 0 0 0 0 0</u4_ary>
    <u4_ary>0 0 0 0 0 0 0 0</u4_ary>
    <u4_ary>0 0 0 0 0 0 0 0</u4_ary>
    <u4_ary>178 529 704 90 441 440 441 266</u4_ary>
    <bin1>00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 01</bin1>
    <i4_ary></i4_ary>

    <!-- skipping more -->

    <!-- help ??? -->
    <u>10</u>
    <u>1198604520</u>
    <rec type='CAMPAIGN_LOCALISATION'>
    <s>regions_onscreen_bosnia</s>
    </rec>

    <!-- help again ? -->
    <flt>-0.00132703932467848</flt>
    </rec>

Posting Permissions

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