1. Dismiss Notice
  2. GOG.com logo

    Thanks to YOUR votes, GOG.com now sells:
    - Sea Dogs - Sea Dogs: Caribbean Tales
    - Sea Dogs: City of Abandoned Ships

    Vote now to add Pirates of the Caribbean to the list!

    Dismiss Notice
  3. Under the Crossbones Podcast

    A Pirate Podcast with Interviews
    Music, Comedy and all things Pirate!

    - Episode Guide - About - Subscribe -
    - Twitter - Facebook - iTunes - Android -
    - Youtube - Fill the Coffers -

    Dismiss Notice
  4. New Horizons logo

    Quick links for PotC: New Horizons
    - Download latest version
    - Wiki - FAQ - Report bugs here
    - ModDB profile

  5. GOF logo

    Quick links for AoP2: Gentlemen of Fortune 2
    - Downloads and info
    - Historical Immersion Supermod
    - ModDB Profile

Dismiss Notice
New to the forum?
Please take a moment to read our Welcome Message and Forum Rules.

Need Help Adding New Nations

Discussion in 'Build Beta and Brainstorming' started by KovadJupiterus, Jun 2, 2017.

  1. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    If a ship encounter chance for a nation is not defined, then it is assumed to be MAXIMUM!
    So either we have to swap that around in code or Sweden must be set to zero for every ship.

    As for making Swedish ships less common, that will be a tricky one.
    The game first decides the nation and then decides the ship, so the encounter chances will not help.
    So we'd have to influence that first decision, which is probably repeated in various spots and forms throughout the code.

    But if that IS done, it could be made a more common function.
    With that, it would become feasible to make the chance of a nation depend on the number of colonies they have.
    So capturing colonies would then have an effect on the nations of the ships you encounter.
    Could be cool!
     
  2. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    Well I used the latest zip etc. Were they not included?
     
  3. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Reason for Sweden was the initial request plus the fact that you had already done half the work.
    But indeed there is also guest nation 2, which exists for exactly that reason. :yes
     
  4. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    If we add Denmark maybe the "30-years" soldiers I made for Sweden could pass for Denmark too.
    And perhaps english redcoats with tricorns for later periods. The titles maybe @ANSEL can convert.
     
  5. ANSEL

    ANSEL Corsair Storm Modder Hearts of Oak Donator

    Joined:
    Aug 18, 2013
    Messages:
    1,767
    Gender:
    Male
    Occupation:
    Artist,Painter
    Location:
    Viborg.Denmark
    If so I am willing too convert the titles.
     
    Jack Rackham likes this.
  6. ANSEL

    ANSEL Corsair Storm Modder Hearts of Oak Donator

    Joined:
    Aug 18, 2013
    Messages:
    1,767
    Gender:
    Male
    Occupation:
    Artist,Painter
    Location:
    Viborg.Denmark
    The danish islands was St. John, St.Thomas and St. Croix. The period 1666-1917.
     
  7. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Been there! On all three.
    The former Danish presence is still very obvious from the town names.
    "Frederiksted" was one, if I recall.
     
    ANSEL likes this.
  8. ANSEL

    ANSEL Corsair Storm Modder Hearts of Oak Donator

    Joined:
    Aug 18, 2013
    Messages:
    1,767
    Gender:
    Male
    Occupation:
    Artist,Painter
    Location:
    Viborg.Denmark
    Some people are lucky. I have only been on a few of the danish islands.:sail
     
    Pieter Boelen likes this.
  9. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Oh well, if we're actually counting the ones in actual Denmark, I hardly covered them all either. ;)
     
    ANSEL likes this.
  10. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,383
    They are in both the final post 7th January archive and the first post 31st August archive. Anyway, it doesn't matter, as the files to go into the next post 31st August archive now have both the updated British pennants and the Swedish pennants.

    I did a bit of testing. There are no interface flag or shield, which means the nation selection screen while starting a FreePlay game, and the international relations screen while the game is in progress, look like this:
    select_storyline.jpg international.jpg
    It's a good bet that if Sweden is available as a nation then someone will want to play it, so I tried starting that FreePlay game as a Swedish character. This was the "Questbook" screen:
    questbook.jpg
    This screen should show your served nation in yellow, but "Sweden" doesn't show up. That was easily fixed. The attached version of "common.ini" has an entry for "Sweden", and with that in place, "Sweden" does indeed show up yellow on the "Questbook" screen.

    Whether because Sweden has no ships or because I didn't play long enough to find them, I never saw any Swedish ships on worldmap. For that matter, which ship icon will represent Sweden on the worldmap? Also, during ship selection while setting up a FreePlay game, Sweden is not among the list of ship nations.

    I've implemented the toggle, currently set by default to disallow Sweden. It's near the top of "InternalSettings.h" and at the bottom of the "Realism" section as I regard it as a realism issue - in reality Sweden had little if any presence in the Caribbean, but you can put it there if you like. The toggle is checked in "Periods.c". At present the conditions only check the toggle, but if you want, it should be possible to have the one in "Golden Age of Piracy" check if you're playing "Woodes Rogers" and override the toggle. When the above problems are sorted out, and if Swedish ships are suitably rare, I'd be willing to have the toggle set to 1 by default, meaning Sweden would be allowed unless you actively change the setting.
     

    Attached Files:

    DeathDaisy likes this.
  11. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    @konradk probably knows this best....
     
  12. konradk

    konradk Privateer Storm Modeller Storm Modder

    Joined:
    Oct 27, 2005
    Messages:
    713
    Gender:
    Male
    Location:
    Poland
    Obviously, there are no Swedish interface and ship flags – they must be created. I'm in the process doing it. There are also changes in code required to reflect a fact, that now we have two nations with index of 6 during separate periods.
     
    Pieter Boelen likes this.
  13. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    @konradk, the swedish ship flags and merchant flags are already created.
     
  14. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    I think KK is talking about the interface flags. Those are different files.
     
  15. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,287
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
  16. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,383
    It occurs to me that the interface flag and shield should already exist. The Swedish flag was already available as a Personal flag, which presumably has its interface flag and shield, so all that should be needed is to find those, copy them and rename them to fit in as interface pictures for Sweden as a nation.
     
    Pieter Boelen likes this.
  17. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,383
    The interface flag and shield are "Personal34". So the shield which is based on the flag looks like this:
    Crest_Personal34.jpg

    Alternatively, here's a version I made using the Swedish coat of arms:
    Crest_Guest11.jpg

    Pick one, then I'll TX Convert it and put it into the next update. I may do revised shields for a few other nations based on coats of arms as well.
     
    ANSEL and Pieter Boelen like this.
  18. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    That does sound like fun, actually. Adds a nice bit of extra historical flavour. :onya
     
  19. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,383
    Here are the versions for England / Britain:
    Crest_England0.jpg Crest_England2.jpg Crest_England5.jpg

    Source: Wikipedia article on Royal Arms of England

    The first one is only for "Early Explorers". There was a period when England, under Catholic Queen Mary and allied to Spain, had a different coat of arms including parts of the Spanish royal arms, but when Protestant Elizabeth became queen she restored the version seen here.

    When James VI of Scotland became James I of England, effectively uniting the kingdoms, the Scottish lion rampant was added, along with the harp of Ireland. This version remained in use until the formal Act of Union in 1707 merged the kingdoms of England and Scotland, so it covers "Spanish Main" and "Golden Age of Piracy".

    The third version is the royal arms of the United Kingdom, including the arms of Hanover in the lower right quadrant. England and Scotland had been merged into a single kingdom, so the upper left quadrant is a mixture of English and Scottish emblems. This version was used until 1801, so is suitable for "Colonial Powers", "Revolutions" and at least part of "Napoleonic" - in particular, it's valid for the early part in which the "Hornblower" storyline is set.
     
    ANSEL and Pieter Boelen like this.
  20. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Seriously cool!!! :bow
     

Share This Page