+ Reply to Thread
Page 1 of 5 1 2 3 ... LastLast
Results 1 to 20 of 90

Thread: Savegame Viewer And Randomizer

  1. #1
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2

    Savegame Viewer And Randomizer



    "World-changing! 5/5!" - Charles V, satisfied customer

    "Where did my empire go?! Would not recommend" - Nicholas II, disgruntled customer

    "Add me to your satisfied customers list!" - tigerkid, non-fictitious reviewer


    Hello!

    In my unending quest to waste my time and talents on trivial efforts, I present you my latest project: a utility that can reassign the provinces in an EU3 save/scenario in order to obtain unique and rather ridiculous variations of the familiar, dull, historical political situation.

    Here are two examples of a randomized Europe:

    In this picture: Delhi in Paris, Tirol in England and other fun stuff!

    For your enjoyment: Timurid Spain, Corsican Greece, Czech Benin, etc.




    Current version is 0.40 (February 9, 2012)
    * Download here (~14MB)


    ** Features **
    - View 1399 scenario political map and inspect province owner, base tax, manpower. Pretty pointless feature, since there are other utilities that are better at this
    - "Randomize" feature clears all nations off the map and then reassigns previously inhabited provinces to nations in an unpredictable way. You do get contiguous empires, but that's currently pretty much the only restraint. YEAHHHHHH!
    - Maintain or disable the HRE, Hordes, Daimyos and the existing vassal/PU relations.
    - Optionally, promote everyone to the Western tech group.
    - Save the randomized map to a file which can then be loaded and played in EU3.
    - The saves can also be used with my Always War mod! I tested the combination and it works well.

    ** Requirements **
    - Divine Wind 5.1 I guess.
    - Windows

    ** To do **

    - Include load feature to start with something other than the 1399 situation
    - Add settings for desired number of nations and inhabited provinces
    - Options for keeping/removing/adding additional cores
    - Options for grouping/reassigning culture and religion
    - Fix crash that occurs when saving before randomizing
    - Support modded maps
    - Optionally, use nations existing in 1399 only
    - Optionally, randomize which regions are colonized and which aren't


    ** Manual **
    1. Download file
    2. Extract it somewhere (with 7-zip or any .7z reading alternative)
    3. Run svar.exe
    4. Click 'Randomize button'. This takes about 10 3 seconds.
    5. Look around (right mouse drag to scroll, click to see province stats) to see if you like this random world. If not, go back to step 4.
    6. Click 'Save'. This is slow. This is now fast.
    7. Navigate to your EU3\savegames folder and save your file there
    8. Play

    ** FAQ **
    - What's the point of this?
    I like strange, funny scenarios. Situations you wouldn't see normally. I like honing my programming skills on something related to a game I enjoy. Point enough?

    - What did you write this in?
    Python.

    - Can I use this with my favorite mod?
    Only if the mod doesn't change the map and includes all the original nations, cultures and religions I think.

    - Your randomizer put France in France. That's not random.
    And that's not a question. But any nation can be placed anywhere that was previously inhabited. Including where they started.
    Last edited by Junuxx; 17-02-2012 at 11:06.

  2. #2
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    Here are some screens from a randomized game.

    I was playing Columbia, because they start as a Revolutionary Republic


    An early religion map


    A while later


    Later still

    Last edited by Junuxx; 16-10-2011 at 04:30.

  3. #3
    This looks...pretty darn awesome!

  4. #4
    This randomizes cores too? And if so, do the cores necessarily correspond to the placement of the nations?

  5. #5
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    Quote Originally Posted by Ageofbob View Post
    This looks...pretty darn awesome!
    Thanks!
    Quote Originally Posted by ssfsx17 View Post
    This randomizes cores too? And if so, do the cores necessarily correspond to the placement of the nations?
    I haven't touched cores yet, but I want to remove the old ones and give cores to all new owners. Not sure about additional cores from neighboring or dead nations. Such cores probably make the scenario more fun, but a good method of assigning them is not directly obvious to me. Ideas?

    I'm currently working on the straits btw.

  6. #6
    Cores on all neighboring provinces, and maybe a random "greater empire of the past" for more cores >:-D

  7. #7
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    Version 0.3 is now available for download! Link is in the first post, and some in-game screenshots are in the second.

    Hope you like it!

  8. #8
    I got this error:
    Code:
    Traceback (most recent call last):
      File "<string>", line 605, in <module>
      File "C:\Users\J\workspace\mapthing\build\pyi.win32\svar\outPYZ1.pyz/Tkinter",
     line 1643, in __init__
    _tkinter.TclError: Can't find a usable init.tcl in the following directories:
        C:/DOCUME~1/ssfsx17/LOCALS~1/Temp/lib/tcl8.5 C:/usr/lib/tcl8.5 C:/lib/tcl8.5
     C:/usr/library C:/library C:/tcl8.5.2/library C:/tcl8.5.2/library
    
    
    
    This probably means that Tcl wasn't installed properly.
    Perhaps there is a DLL or something that can be included?

  9. #9
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    Hm, it is supposed to be included.. But thanks for reporting, I'll look into it.

  10. #10
    Field Marshal WeissRaben's Avatar
    Crusader Kings IIDarkest HourEU3 CompleteDivine WindFor The Glory
    Heir to the ThroneMagickaMarch of the EaglesRome GoldSengoku
    Victoria 2Victoria II: A House DividedPride of Nations500k clubEuropa Universalis IV: Pre-order
    EUIV: Call to arms eventEUIV: Wealth of NationsEUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Sep 2008
    Location
    Duchy of Milan
    Posts
    4,061
    I report the same error, yes. Dammit! This looks great! ;A;

  11. #11
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    I included Tcl/tK in the .exe, could you try if it works now?

    New version in first post, 0.31

  12. #12
    The program is able to start now, and randomizing seems to work, but not saving:
    Code:
    loading definitions... done in 0.11 seconds!
    loading province data... done in 0.20 seconds!
    creating province masks... done in 2.44 seconds!
    loading countries... done in 0.02 seconds!
     * 947 provinces owned by 206 countries
    Reassigned provinces, updating map (10000 attempts, 701 assigned)
     * 935 provinces owned by 242 countries
    Reassigned provinces, updating map (10000 attempts, 706 assigned)
     * 940 provinces owned by 242 countries
    No religion defined for HAI
    {'color': [103, 62, 185], 'name': 'haiti'}
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "C:\Users\J\workspace\mapthing\build\pyi.win32\svar\outPYZ1.pyz/Tkinter",
     line 1410, in __call__
      File "<string>", line 547, in save
    KeyError: 'religion'

  13. #13
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    Gah! Thanks again for testing, I know exactly what that is. I'll fix it straight away.

    That happens sometimes, only when an incorrect duplicate Haiti (present in the actual game files) is loaded, and Hainaut is not.
    Last edited by Junuxx; 16-10-2011 at 20:07.

  14. #14
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    Version 0.32 is now available with the following changes:

    - Haiti bug fixed
    - Dramatically improved save speed (formerly over a minute, now a couple of seconds)

  15. #15
    Excellent! It works!

    Germany is either very lucky for having Sibir, Maya, and Qara Koyunlu for neighbors, or very unlucky for an imminent horde invasion by Qara Koyunlu.



  16. #16
    Wow. You can add me to your satisfied customers list.

  17. #17
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    Quote Originally Posted by tigerkid View Post
    Wow. You can add me to your satisfied customers list.
    Done!

  18. #18
    Field Marshal Junuxx's Avatar
    Crusader Kings IIDeus VultEU3 CompleteDivine WindHeir to the Throne
    Rome GoldSengokuSword of the StarsVictoria 2Victoria II: A House Divided
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Oct 2008
    Location
    Far from home
    Posts
    6,044
    Blog Entries
    2
    Version 0.34 is now available with the following changes:

    - Randomize speed significantly increased
    - Save file dialog
    - Added options for desired number of nations
    - Added checkboxes to remove the HRE, daimyos, hordes and existing PUs/vassal relations from the game
    - Added a number of fake straits (e.g. Liguria-Corsica, Ayrshire-Ulster, Barcelona-Baleares) to allow for countries on several landmasses. These straits don't show up in game, they're just for the randomization.
    Last edited by Junuxx; 20-10-2011 at 13:15.

  19. #19
    Oh, this is just getting better and better! Well done Junuxx!

    EDIT: Just played for a bit, Byzantine still has cores on Anatolia and Greece. Another thing you could add to the TO DO list would be an option to group countries together by culture group or religion, if you'd like,
    Last edited by Ageofbob; 20-10-2011 at 06:53.

  20. #20
    Field Marshal WeissRaben's Avatar
    Crusader Kings IIDarkest HourEU3 CompleteDivine WindFor The Glory
    Heir to the ThroneMagickaMarch of the EaglesRome GoldSengoku
    Victoria 2Victoria II: A House DividedPride of Nations500k clubEuropa Universalis IV: Pre-order
    EUIV: Call to arms eventEUIV: Wealth of NationsEUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Sep 2008
    Location
    Duchy of Milan
    Posts
    4,061
    Tried it. It has...potential, yes, but did you take a look at this? It is, currently, one of the best randomizers - it requires the creation of a mod, though, not simply a save.

+ Reply to Thread
Page 1 of 5 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