+ Reply to Thread
Page 1 of 6 1 2 3 ... LastLast
Results 1 to 20 of 114

Thread: Gotikiller's Pop Splitter 5.5 (Updated by Dietmar1982 27 May 08)

  1. #1
    Number 38732 Dietmar1982's Avatar
    Hearts of Iron 2: ArmageddonDivine WindHearts of Iron IIIHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionVictoria: RevolutionsEuropa Universalis: RomeSemper FiVictoria 2
    Victoria II: A House DividedRome: Vae Victis

    Join Date
    Jan 2005
    Location
    "Lorteřen"
    Posts
    722

    Gotikiller's Pop Splitter 5.5 (Updated by Dietmar1982 27 May 08)

    Downloads can be found at the bottom of this post.

    Features:
    • choose what kind of POPs to split
    • select which country to split
    • deselect provinces from a specified country
    • select one or more provinces POP splitting
    • Automatic POP splitting function, selecting the latest savegame for splitting.
    • Define the size of the POPs to be split, and the ratio they are split

    How to use:
    Manual included in download

    Old Posts
    Quote Originally Posted by Dietmar1982
    How to use:
    This is an example on how the configuration file could look.

    Code:
    # Please list the country tags of the countries whose pops you want to be split below:
    # REMOVE: Write the province ID you don't want split
    # TYPE: aristocrats, officers, clergymen, capitalists, clerks, craftsmen, soldiers, farmers, labourers, slaves
    # No start and end tags in the same line
    # Tag: <COUNTRY REMOVE="" TYPE=""></COUNTRY>
    # Tag: <PROVINCE TYPE=""></PROVINCE>
    # Tag: GAMEDIR
    
    GAMEDIR = D:\Spil\VIP-R
    <COUNTRY TYPE="clerks craftsmen farmers labourers slaves">
    AUS # Austria
    </COUNTRY>
    
    <COUNTRY REMOVE = "" TYPE="clerks craftsmen farmers labourers slaves">
    ENG # United Kingdom
    GER # Germany
    </COUNTRY>
    
    <COUNTRY REMOVE = "843" TYPE="clerks craftsmen farmers labourers slaves">
    ITA # Italy
    </COUNTRY>
    
    <COUNTRY>
    POR # Portugal
    </COUNTRY>
    
    <COUNTRY REMOVE = "451">
    RUS # Russia
    SWE # Sweden
    </COUNTRY>
    
    <PROVINCE TYPE="aristocrats officers clergymen capitalists clerks craftsmen soldiers farmers labourers slaves">
    1501
    </PROVINCE>
    It's important to note that the configuration file is loaded when you start the program. So if you change anything in the file while running the program, it wont affect the split. You need to restart the program

    The directory specified after the GAMEDIR tag, is used when the automatic POP splitting function is used. Here you specify where you have your game installed

    the first tags results in all clerks, craftsmen, farmers, labourers and slaves being split in all provinces owned by Austria.

    the second tag will do the same for Germany and the UK

    the third one will do the same for all the Italian provinces except the one with the ID 843

    fourth tag splits all types in all Portugese owned provinces

    fifth tag splits all types in all Russian and swedish provinces, except the russian province with ID 451

    the last province tag selects a specific province for splitting. there can be as any province ID listed here as you like.



    Errors
    As I had to rewrite all the code, it's possible that I've reintroduced some of the errors removed previously found in this tool.
    Hopefully this is not the case, and I've tried to test it as much as I could.

    So I hope you find it usefull.

    Please report back if you encounter any problems, or if you have some suggestions for improvements.
    Quote Originally Posted by Dietmar1982
    After readning about the problems at this page, and not being able to get it to work myself.
    I decided to download the source code, and try making a fix myself.

    I have found the problem stopping me, and properly also those other guys at the link, from getting this to work.

    The problem exists because programs written in C# and the .net framework, uses its environments formatting rules.

    As Gotikiller is American (at least to my knowledge), the program was designed on a computer using the American formatting rules.
    The problem is how you write numbers smaller than one.
    In the US you do this with the dot like so (0.25) but in a lot of European countries its done with a comma.
    When run on a Danish computer like mine, this causes the calculations in the program to go all wrong. And the output file to become corrupted. (And extremely large, if I split all POPs my save game size was 800 MB).
    So I fixed this, so it now should work on all computers.
    On top of this I thought I might as well, try to fix/change a couple of other things.

    Below are the changes I made:

    Version 4.3
    • Comma issue fixed
    • Fixed issue where text with nonstandard English signs in it, like Québec and Lübeck would become unreadable symbols.
    • Cash is now kept by the original POP being split, (like it is in game), before it was cleared.
    • All POP being split now have the same issues as the original POP.
    • CFG file format is now less strict. It’s now possible to write comments in the line.
    • Properly more things, but i've allready forgotten them




    Finally, a big thanks to Gotikiller for creating this tool in the first place. This is still more or less the program he created. I just tweaked it a little bit.



    Anyway hope you like it and please report any issues here or send me PM
    Code:
    Version 4.3 of the program can be downloaded from here! and here
    GotiKillers original tool, updated so it works in countries using the comma standard
    Version 5.0 can be found here!
    Completely rewritten tool, giving you a bunch of new possibilities.   
    Version 5.1 can be found here!
    Newest version, all the best from the 5.0 version plus a new auto splitting feature. "for your splitting needs" :D 
    Version 5.2 can be found here! and here!
    corrected a small problem with 5.1 details  
    Version 5.3 can be found here!
    corrected the "French problem"  
    Source Code for version 5.2 can be found here!
    Version 5.5 can be found here! and here!
    Corrected major bug in version 5.4
    Source Code for version 5.5 can be found here!
    Last edited by Dietmar1982; 16-03-2009 at 17:40. Reason: Link added to latest source code

  2. #2
    Victoria's Plastic Surgeon OHgamer's Avatar
    EU3 CompleteHearts of Iron IIIVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    V2 BetaHoi 2 BetaEU3 Collectors EditionEuropa Universalis IV

    Join Date
    Jan 2003
    Location
    In Columbus OH, but dreaming of the White Isle.....
    Posts
    17,645
    And folks I can highly recommend this. Dietmar1982 is one of the VIP Beta Testers, and his retweaking of this application to improve its functionality came as a result of our hope that it can be used by players of VIP, as the AI is very loathe to break up its larger POPs and this helps improve AI performance (especially in economic areas) quite noticeably.

    Combine that with the flexibility that Gotikiller developed originally for the application so that you can choose which nations will be split, and the new and improved POP splitter is now a very handy tool in the Victoria player kit.

    I want to again thank Gotikiller for the initial development of the tool, and Dietmar1982 for the work in resolving some of the final bugs in it, expecially for players from outside North America.
    Slowly working my schedule to make more time for Paradox. Have missed you all and hope to be more active here in 2013.

  3. #3
    Banned noddy102's Avatar
    200k clubDiplomacyEU3 CompleteHeir to the ThroneVictoria: Revolutions
    Europa Universalis: RomeVictoria 2

    Join Date
    May 2002
    Location
    Dublin, Ireland
    Posts
    3,135
    Blog Entries
    3
    Good job!

    I'm sure Gotikiller would be proud to see his program being updated. Maybe some day he'll be back to see it.

  4. #4
    If it wont require too much work, could you rewrite part of the app WITHOUT .net framework ? That damn thing always crashes my wine server very badly ! But again: as I never digged the question, I have no idea of how much work this could demand...

  5. #5
    Number 38732 Dietmar1982's Avatar
    Hearts of Iron 2: ArmageddonDivine WindHearts of Iron IIIHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionVictoria: RevolutionsEuropa Universalis: RomeSemper FiVictoria 2
    Victoria II: A House DividedRome: Vae Victis

    Join Date
    Jan 2005
    Location
    "Lorteřen"
    Posts
    722
    Quote Originally Posted by qwerkus
    If it wont require too much work, could you rewrite part of the app WITHOUT .net framework ? That damn thing always crashes my wine server very badly ! But again: as I never digged the question, I have no idea of how much work this could demand...
    I would take a lot of work, more than i'm currently willing to commit.
    you could reuse a lot of the code in a c++ program instead, and most of it could properly work, BUT and thats a very big but, it would take hours of tweaking and searching to get everything worked out.

    So sorry, somebody else would have to do it.
    Gotikiller's Pop Splitter v 5.5 (Updated by Dietmar1982) - Download: Mediafire! and wiki
    Details about the splitter

  6. #6
    Quote Originally Posted by Dietmar1982
    I would take a lot of work, more than i'm currently willing to commit.
    you could reuse a lot of the code in a c++ program instead, and most of it could properly work, BUT and thats a very big but, it would take hours of tweaking and searching to get everything worked out.

    So sorry, somebody else would have to do it.
    Of course: bug tracking is always a big challenge.

    Thanks for your reply; i think i can live without it right now ...

  7. #7
    Big thanks to you Dietmar! You're a hero

    I'll try it as soon as I get the chance.

  8. #8
    Generalfeldmarschall RELee's Avatar
    200k clubHearts of Iron 2: ArmageddonCrusader Kings IIDeus VultEuropa Universalis 3
    EU3 CompleteDivine WindFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    Heir to the ThroneVictoria: RevolutionsRome GoldSemper FiSword of the Stars
    Sword of the Stars IIVictoria 2Victoria II: A House DividedVictoria II: Heart of DarknessV2 Beta
    V2 AHD BetaPride of NationsRise of Prussia500k clubEuropa Universalis IV

    Join Date
    Apr 2003
    Location
    Bible-belt buckle
    Posts
    6,082
    Blog Entries
    28
    Quote Originally Posted by Ldvs
    Big thanks to you Dietmar! You're a hero
    I'll second that emotion!
    I'm a 19th century man inflicting himself upon a 21st century world.
    --------------------------------------------------------------------------------
    "Unbelievers always want other people to act like Christians." - Ender's Shadow by Orson Scott Card
    --------------------------------------------------------------------------------
    Perfected by the sixteen men of Tain.
    --------------------------------------------------------------------------------
    Phishing link to HOI4 site removed.

  9. #9
    Tested and approved! It works for me, at least.

  10. #10
    Corporal

    Join Date
    May 2007
    Location
    USA
    Posts
    34
    How big do pops need to be for it to split? I've tried starting a game and running it after a february save, so all the 40k pops should be split, except all I end up getting is these pops set back to 40,000 exactly.

  11. #11
    Number 38732 Dietmar1982's Avatar
    Hearts of Iron 2: ArmageddonDivine WindHearts of Iron IIIHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionVictoria: RevolutionsEuropa Universalis: RomeSemper FiVictoria 2
    Victoria II: A House DividedRome: Vae Victis

    Join Date
    Jan 2005
    Location
    "Lorteřen"
    Posts
    722
    Quote Originally Posted by sadi
    How big do pops need to be for it to split? I've tried starting a game and running it after a february save, so all the 40k pops should be split, except all I end up getting is these pops set back to 40,000 exactly.
    all POPs larger than 40K should be split. the ratio is the same as the one in the game. 0.75/0.25.

    are you sure you set the correct coutries to be split in the config file?
    Gotikiller's Pop Splitter v 5.5 (Updated by Dietmar1982) - Download: Mediafire! and wiki
    Details about the splitter

  12. #12
    Corporal

    Join Date
    May 2007
    Location
    USA
    Posts
    34
    I figured it out, there seems to be an issue based on how paradox saves pop numbers, any pop that has between 40,000 and 40,049 pops gets rounded down to 40,000 so they don't get split. Just means I have to wait until march to split

  13. #13
    Number 38732 Dietmar1982's Avatar
    Hearts of Iron 2: ArmageddonDivine WindHearts of Iron IIIHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionVictoria: RevolutionsEuropa Universalis: RomeSemper FiVictoria 2
    Victoria II: A House DividedRome: Vae Victis

    Join Date
    Jan 2005
    Location
    "Lorteřen"
    Posts
    722
    Quote Originally Posted by sadi
    I figured it out, there seems to be an issue based on how paradox saves pop numbers, any pop that has between 40,000 and 40,049 pops gets rounded down to 40,000 so they don't get split. Just means I have to wait until march to split
    I figured something like this is happening, but thanks for clearing it up.



    Someone in another thread game me an idea.
    Would it be usefull, if you were able to define not only what countries to split, but perhaps also states and provinces.

    What do you guys think?
    Gotikiller's Pop Splitter v 5.5 (Updated by Dietmar1982) - Download: Mediafire! and wiki
    Details about the splitter

  14. #14
    Victoria's Plastic Surgeon OHgamer's Avatar
    EU3 CompleteHearts of Iron IIIVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness
    V2 BetaHoi 2 BetaEU3 Collectors EditionEuropa Universalis IV

    Join Date
    Jan 2003
    Location
    In Columbus OH, but dreaming of the White Isle.....
    Posts
    17,645
    Quote Originally Posted by Dietmar1982
    I figured something like this is happening, but thanks for clearing it up.



    Someone in another thread game me an idea.
    Would it be usefull, if you were able to define not only what countries to split, but perhaps also states and provinces.

    What do you guys think?
    Maybe as an option, though myself I use this mainly to help the AI break up its POPs, I usually keep on top of my own, so I'd probably have no need to refine to state level, but I could see its uses.
    Slowly working my schedule to make more time for Paradox. Have missed you all and hope to be more active here in 2013.

  15. #15
    Generalfeldmarschall RELee's Avatar
    200k clubHearts of Iron 2: ArmageddonCrusader Kings IIDeus VultEuropa Universalis 3
    EU3 CompleteDivine WindFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    Heir to the ThroneVictoria: RevolutionsRome GoldSemper FiSword of the Stars
    Sword of the Stars IIVictoria 2Victoria II: A House DividedVictoria II: Heart of DarknessV2 Beta
    V2 AHD BetaPride of NationsRise of Prussia500k clubEuropa Universalis IV

    Join Date
    Apr 2003
    Location
    Bible-belt buckle
    Posts
    6,082
    Blog Entries
    28
    Agreed. As an option. I don't think I would necessarily use this option.
    I'm a 19th century man inflicting himself upon a 21st century world.
    --------------------------------------------------------------------------------
    "Unbelievers always want other people to act like Christians." - Ender's Shadow by Orson Scott Card
    --------------------------------------------------------------------------------
    Perfected by the sixteen men of Tain.
    --------------------------------------------------------------------------------
    Phishing link to HOI4 site removed.

  16. #16
    Corporal

    Join Date
    May 2007
    Location
    USA
    Posts
    34
    I'm not sure if it splits all pops or just the "useful" ones. It would be nice to have the option just to do farmers or laborers, etc. Capitalists if I understand correctly should never get split, as bigger is better.

  17. #17
    Quote Originally Posted by Dietmar1982
    I figured something like this is happening, but thanks for clearing it up.



    Someone in another thread game me an idea.
    Would it be usefull, if you were able to define not only what countries to split, but perhaps also states and provinces.

    What do you guys think?
    It would be really, really useful. And hopefully also decide which pop types to split. Perhaps you don't always want to split clerks in a province, but would like to split all labourers there. Go for it, you have my diplomatic support

  18. #18
    Banned noddy102's Avatar
    200k clubDiplomacyEU3 CompleteHeir to the ThroneVictoria: Revolutions
    Europa Universalis: RomeVictoria 2

    Join Date
    May 2002
    Location
    Dublin, Ireland
    Posts
    3,135
    Blog Entries
    3
    Quote Originally Posted by Jaeger74
    It would be really, really useful. And hopefully also decide which pop types to split. Perhaps you don't always want to split clerks in a province, but would like to split all labourers there. Go for it, you have my diplomatic support
    He would have the support of everybody in the MP community if he was able to do as you describe! :nod:

  19. #19
    Number 38732 Dietmar1982's Avatar
    Hearts of Iron 2: ArmageddonDivine WindHearts of Iron IIIHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionVictoria: RevolutionsEuropa Universalis: RomeSemper FiVictoria 2
    Victoria II: A House DividedRome: Vae Victis

    Join Date
    Jan 2005
    Location
    "Lorteřen"
    Posts
    722
    I guess i better give it a shoot then

    It should be possible.
    On question comes to mind. How should you select what you want split.
    if you can select both what country to split and what POPs to split. I guess it would be best if you could make your POP splitting selection on a country to country basis.


    perhaps (this is a big perhaps), I could even make it so that you would select a country for splitting and the deselect some of the provinces in that country.
    Gotikiller's Pop Splitter v 5.5 (Updated by Dietmar1982) - Download: Mediafire! and wiki
    Details about the splitter

  20. #20
    Banned noddy102's Avatar
    200k clubDiplomacyEU3 CompleteHeir to the ThroneVictoria: Revolutions
    Europa Universalis: RomeVictoria 2

    Join Date
    May 2002
    Location
    Dublin, Ireland
    Posts
    3,135
    Blog Entries
    3
    We in the MP community would be love to be able to do the following by clicking a few buttons:

    (I am playing France)

    I want to split all labourers & farmers in the state of Provence
    I want to split all craftsmen in Alsace-Lorraine, Ile de France & Bretagne.
    I want to split all clerks in Normandy.
    I want to split all clerks in the city of Metz, in Alsace-Lorraine.

    These are the types of choices MP players make. There are probably few other scenarios that I have not mentioned.
    An easier way to do the above would be fantastic.

+ Reply to Thread
Page 1 of 6 1 2 3 ... LastLast

Posting Permissions

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