Results 1 to 8 of 8

Thread: How to change Population and Religion of a Region through ESF Editor

  1. #1

    Default How to change Population and Religion of a Region through ESF Editor

    Alright so, this is a tutorial on how to do the things said above. So first of all, open up ESF Editor.

    It'll look like that.
    Then you open up "save_games\Your Save Name.empire.save".
    Then CAMPAIGN_SAVE_GAME
    Then CAMPAIGN_ENV
    And then CAMPAIGN_MODEL.


    Your screen should look like this.
    Rest of the Tutorial is down below.
    Alright, so now that we are in CAMPAIGN_MODEL, lets continue.
    So now, you want to go to WORLD.
    Okay now you have multiple tabs up, go to REGION_MANAGER, and then REGIONS_ARRAY.


    Alright, all of the regions in the game appear in here. Feel free to pick what ever region you want.
    For this tutorial, I'll choose Florida.
    Okay, you can easily find your region by just clicking on the top region (Which is Naples) and press the first letter of your factions name. So for example, I'll press "e" for England. It'll go to Egypt, then you keep on pressing "e" until you find your region.
    Alright, so once you found your region, you click on (My Example. Differs for other regions)
    Florida | REGIONS_ARRAY and then Florida | REGION.
    Before you go changing the population of the region you pick, I would recommend going on Empire and checking how much population you have in the region and write it down.
    For Example:



    (Remember to look at the pictures)
    Now, that you are in POPULATION, click on that click on REGION_FACTORS.
    Under System.Byte[], there should be numbers. (The second line in shorter terms).
    That is your population.


    As said in the picture, change it to what ever you want. I'll change my population to 2000. Congratulations, you successfully changed your population. (BTW, change it to a reasonable population. Don't change it to like 120 million, you'll lose all of it. Be reasonable).
    Okay now to change region religion.
    Now that you are under REGION_FACTORS, plus that then plus RELIGION_BREAKDOWN.
    Under that, it shows all of the religions in the game. I know that Florida is a Protestant region (Even though I'm playing as Great Britain and I want it Protestant, I'll change it for tutorial sake).
    Now, if you click on the religions, it'll say a number under the name. 1= 100% .084= 8.4%. You get what I mean. Now you can change the religion. For tutorial sake, I'll change Florida to Catholic.
    You click on it and change it to 1 for 100% Catholicism in Florida.


    Now, you are done. All you have left to do it save.
    Now, open up your game and see the result.


    If you have any questions, post in the comments. Have a great day!
    ESF Editor Download Link: HERE
    Last edited by TotalWarBuff; February 02, 2013 at 09:54 PM.

  2. #2

    Default Re: How to change Population and Religion of a Region through ESF Editor

    Any questions, post bellow please! I'll try to answer them.
    Last edited by TotalWarBuff; February 02, 2013 at 09:43 PM.

  3. #3

    Default Re: How to change Population and Religion of a Region through ESF Editor

    I'm sorry I'm late to play this game
    my question:
    and how to spawn town/port in the region???
    Such as Prussia, Brandenburg. their cities are Kosin-settin-and Wismar.
    Thanks before,and sorry for my bad english.

  4. #4

    Default Re: How to change Population and Religion of a Region through ESF Editor

    I'm sorry, I do not know how to do that. I actually don't even know if that is possible. Sorry about that and have a great day!
    John 3:16: For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
    My YouTube Channel: http://www.youtube.com/user/TotalWarAuthority

  5. #5

    Default Re: How to change Population and Religion of a Region through ESF Editor

    I played as France and changed region France's Catholic pop to 0 and Protestant pop to 1 (so 100% protestant), but it crashes when I try to load the saved game. I tried doing it all over again from step 1 but still CTD when I try to load. Any advice?

  6. #6

    Default Re: How to change Population and Religion of a Region through ESF Editor

    I started up a Courland campaign, but when i was going to build a church, it was a catholic church,
    so how do i change the state religion so it will be protestant churches ?
    My 6 2nd rates routed in horror from 1 brig + 1 5th rate on auto-resolve....

  7. #7
    Al Adil's Avatar Foederatus
    Join Date
    Feb 2014
    Location
    Gaza Strip
    Posts
    33

    Default Re: How to change Population and Religion of a Region through ESF Editor

    is there a way to add a new religion to the campaign?
    for example, Shia Islam for safavid empire?

  8. #8
    wangrin's Avatar Unguibus et Rostro
    Patrician Artifex

    Join Date
    Feb 2005
    Location
    France
    Posts
    4,397

    Default Re: How to change Population and Religion of a Region through ESF Editor

    It is possible to add a religion, but the problem is we don't have find how to make new religious agent able to convert.

    Adding a new religion means you have :

    • to create a new religion ;
    • to create new religious buildings for the related building chain ;
    • to create a new religious agent (missionary) for the new religion ;

    To do so, you will have :
    • to modify db tables ;
    • to modify startpos.esf ;
    • to create icons (optional) ;
    • to create portaits for agent (optional) ;
    • to create new models for agent and campaign buildings (optional) ;

    Tools :
    • ESF Editor (latest version)
    • Graphic creation software (paint.Net, Photoshop, Gimp, etc.)
    • 3d creation software (MilkShape, etc.)
    • model converter (KE converter (for units only), Ultimate Unwrap 3D)


    This is not a tutorial, only a guideline as I didn't work on this since... years.

    STEP 1 : creating a new religion

    First, work on DB tables :
    • religions : list religions ID and name ;
      Add a row for your new religion
      Religion ID : rel_shia
      Religion Name : shia

    • religion_conversion_mods : define conversion rate modifier between religions ;
      You will have to add row for each existing religion : rel_shia vs rel_sikh, rel_shia vs rel_orthodox, etc.

    • diplomatic_relations_religion : define diplomatic penalties linked to religions ;
      You will have to add a row for each existing religion : rel_shia vs rel_sikh, rel_shia vs rel_orthodox, etc.

    • effects : list effects
      You will have to create a new effects linked to shia religion :
      • happy_religion_shia
      • conversion_shia


      These effects are linked to a .tga icon and to a priority.

    • effect_bonus_value_religion_junction : define religion effect ;
      You will have to link conversion_shia effect to religion (rel_shia).

    • effect_bonus_value_population_class_and_religion_junction : define religion effect depending of population classes ;
      You will have to create row(s) for each population classes (low/middle/upper) to define religion effects.
      If you compare other entries, you will only have to add "happy_religion_shia" effects, but I suppose it is possible to add other existing effects.

    Second, work on startpos to add the religion to a region and a faction :
    1. 2.

    1.faction Safavids
    2.region Persia

    If you add Shia religion, you will have to add an entry in region Religion Breakdown for Shia and for ALL regions.


    « Le courage, c’est de ne pas subir la loi du mensonge triomphant qui passe, et de ne pas faire écho de notre âme, de notre bouche et de nos mains aux applaudissements imbéciles et aux huées fanatiques.. » Jean JAURES

Posting Permissions

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