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.

New piratess character model

Discussion in 'Build Beta and Brainstorming' started by Grey Roger, Oct 2, 2017.

  1. DeathDaisy

    DeathDaisy Freebooter Storm Modder

    Joined:
    Aug 18, 2017
    Messages:
    291
    Gender:
    Female
    Thanks a lot! :cheers When trying to come up with a description it kinda turned into a whole story in my head to the point where I had a hard time condensing it to fit the character selection :p My thoughts were that the french and swedish were chummy during that time, definitely chummy enough where france would help hunt a traitor, so an anti-french rebel fit pretty well xD
     
    Pieter Boelen likes this.
  2. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    There's plenty of room in the character selection screen, and that's exactly what the "model.storytext" line is for. You probably don't need to specify the start time down to the exact second, though. ;) But specifying the start date is worthwhile, especially the year, as that puts the character into the period of your choice. 1694 is "Golden Age of Piracy". In fact, it's in the middle of the Nine Years War, alias War of the League of Augsburg, and the game sets international relations accordingly. The problem with a "Rebel" start is that you have the international relations of your nation, except that your own nation hates you. The War of the League of Augsburg was basically France trying to muscle in on Spain and everyone else ganging up to try to stop them, which means almost everyone hates France, and that means they all hate you - and so does France...

    Incidentally, note that I've uploaded a revised version of the zip, due to a problem with "pictures.ini".
     
  3. DeathDaisy

    DeathDaisy Freebooter Storm Modder

    Joined:
    Aug 18, 2017
    Messages:
    291
    Gender:
    Female
    No one likes an upper class rebel :p but jokes aside, I wanted to set it in the golden age of piracy because I'm a tool and didn't think to check if the starting situation changed with specific years and not just era and I didn't want everything to be spanish. A slightly earlier or a somewhat later start year would work better for my premise, and I felt Hilda's clothing was definitely more 17th century than late 18th. But turns out things are not static by era but actually very varied, so a 1670s start is much better as sweden was actually allied with/had promised to provide troops to help france in the Franco-Dutch war instead of "chummy but also kinda mad" because france forced a peace between sweden and denmark in 1682

    however, seems france are friends with the netherlands in game during the 1670s, which is probably an oversight. :eek:

    New code!
    Code:
        model.description =  "Piratess with a stylish purple coat";
        model.id    =  "HildaPiratess";
        model.FaceId    = 538;
        model.nation    =  FRANCE;
        model.price    =  2000;
        model.assigned    =  true;
        model.sex    =  "woman";
        model.ani    =  "33_Piratess10";
        model.height    =  1.75;
        model.name = "Hilda";
        model.lastname = "Sparre";
        model.storytitle = "The Road Back to Greatness";
        model.storytext = "You are a noblewoman, part of Sweden's most ancient nobility, but the reign of Charles XI had come with ever diminishing power and privilege. Conspiring to take back what was lost, you instead found yourself on the run from a death sentence. With nowhere else to go and hunted by the king and his allies, you fled to the New World.";
        model.playertype = PLAYER_TYPE_REBEL;
        model.difficulty = DIFFICULTY_MARINER;
        model.Flags.Pirate = 19;
        model.Flags.Personal = 31;
        model.ship = "Lugger1";
        model.shipname = "Robber Queen";
        model.date.hour = 7;
        model.date.day = 24;
        model.date.month = 10;
        model.date.year = 1673;
        AddCharacterModel(model);

    Defining time down to the second is a bit silly now that I think about it, I just copied from Beatrice Devlin's code and assumed it should be that way :p

    Also, because this is a screenshot thread; Hilda walking through the Pirate Settlement during a raging storm and a new rain_storm sound to make storms feel more windy and violent to go with it!
    ENGINE 2017-10-03 00-14-29.jpg

    EDIT: Oops, FaceId was wrong in the code for initModel! Fixed now
     

    Attached Files:

    Last edited: Oct 4, 2017
  4. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,629
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    It is actually static per period, but @Grey Roger added some exceptions to that purely for the Free Play storyline.
    Can't remember now what exceptions he added, but they're all in the Free Play StartStoryline.c file.
     
  5. DeathDaisy

    DeathDaisy Freebooter Storm Modder

    Joined:
    Aug 18, 2017
    Messages:
    291
    Gender:
    Female
    Ah well, that's what I get for writing before I do enough checking :p Thanks @Grey Roger for all attention to the details I also love to tinker with :cheers I'll check and see if maybe I can figure out how to add the Franco-Dutch war too then

    But what colony belongs to whom changes, right?
     
  6. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    At present the only dateline exception for relations is the one you added at my suggestion, which is the one for the War of the League of Augsburg. ;) I'd already set relations that way for the "Ardent" storyline, then suggested doing likewise for FreePlay because one of the character definitions specifically refers to the War of the League of Augsburg.

    One of these days I'm going to add a bunch more into the "Spanish Main" period to cover the yo-yo relationship between England and Holland. At present England and Holland are at war for the whole period for the benefit of Michiel de Ruyter, but in fact there were three short wars, so Michiel de Ruyter could be set up to start his game in one of them. (England was actually allied to France for the third war, making for a big difference with the rest of the period!)

    There's also one more dated exception - Spain's king is Carlos IV for the early part of "Napoleonic". It doesn't affect relations, just the name that Spanish governors give if you have a LoM and earn a promotion, for example.

    @DeathDaisy: you can easily have Hilda start in the Golden Age of Piracy. Just avoid any year between 1688 and 1697.
     
  7. DeathDaisy

    DeathDaisy Freebooter Storm Modder

    Joined:
    Aug 18, 2017
    Messages:
    291
    Gender:
    Female
    Using the existing exceptions, it was no problem adding the relations of the Franco-Dutch war between 1672-1677 xD France are now friends with england, enemies with everyone else except the portuguese due to Holland allying with spain in that war too! Attaching a StartStoryline for Free Play with that change! Now 1670s works very well, the islands seem to have roughly the same nation ownership as early age of pirates so should be good variety :beer:

    But I've been thinking, maybe a pirate start is more appropriate? would other nations be okay with a noble who committed high treason even if it was not against their ally? not versed enough in 17th century politics to say :confused: rebel is probably alright..

    Also another tangent; maybe I should add that the rain_storm is a wav file for use in the game, not just atmosphere for the picture, realised it might sound like that :p
     

    Attached Files:

    Mad Jack Wolfe likes this.
  8. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    Alright, let's do this!

    "Periods.c" now has Holland and England allied by default in "Spanish Main".
    "StartStoryline.c" includes:
    • Dutch-Portuguese War 1602-1663
    • Breakup of Iberian Union 1640: Portugal turns hostile to Spain and allies with England
    • First Anglo-Dutch War 1652 - 1654
    • Second Anglo-Dutch War 1665-1667
    • Third Anglo-Dutch War 1672-1674
    • If you're playing Michiel de Ruyter then you're at war with England regardless of date
    • Franco-Dutch War 1672-1678
    • War of the League of Augsburg 1688-1697
    But apart from that, normal relations for "Spanish Main" period apply. xD And as it's all in "StartStoryline.c" for FreePlay, it won't affect the "Assassin" or "Bartolomeu" storylines.
     

    Attached Files:

    Last edited: Oct 4, 2017
    Armada and DeathDaisy like this.
  9. DeathDaisy

    DeathDaisy Freebooter Storm Modder

    Joined:
    Aug 18, 2017
    Messages:
    291
    Gender:
    Female
    Daym son, awesome work! :thumbs1 makes spanish main a more dynamic and fun option xD
     
  10. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,629
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Now it's almost a shame that nation relations don't change on the correct pre-defined dates during The Spanish Main.
     
  11. DeathDaisy

    DeathDaisy Freebooter Storm Modder

    Joined:
    Aug 18, 2017
    Messages:
    291
    Gender:
    Female
    Actually it seems I've lost my mind and towns don't change hands during periods, I must've mixed up early explorers with the spanish main, there almost everything is spanish.. Well, still works!

    It seems there's some code included in Periods.c that's part of an unreleased update or somesuch; I get:
    Code:
    COMPILE ERROR - file: Periods.c; line: 165
    Invalid Expression
    COMPILE ERROR - file: Periods.c; line: 165
    missed ')'
    which is this

    Code:
    if (SWEDEN_ALLOWED)
        {
            period.Nations.Guest1 = "Sweden";
            period.Royal.Sweden.Name = "Charles X Gustav";
            period.Royal.Sweden.Title = XI_ConvertString(" of Sweden");
        }
    that isn't in my old version so I suspect it's not for the public yet? :p
     
  12. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    Ah. That's the version which is going into the next update, and includes the option of having Sweden in the game, from this thread:
    Need Help - Adding New Nations

    For now, I've put a different version of "Periods.c" into post #1418 with the change to Dutch-English relations and without the Swedish stuff.
     
  13. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,629
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Correct, indeed they don't.

    Is that fully functional already?
    Or still more to be done?
     
  14. DeathDaisy

    DeathDaisy Freebooter Storm Modder

    Joined:
    Aug 18, 2017
    Messages:
    291
    Gender:
    Female
    Oooh, how serendipitous for me! :p maybe I could use that at some point to add some vicious hunters or something after our latest swedish traitor and make it a whole thing. so many dreams
     
  15. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    It's in the state shown in the Adding New Nations thread. "InternalSettings.h" contains a toggle "SWEDEN_ALLOWED", setby default to 0. If you set it to 1, Sweden enters the game in the "Spanish Main", "Golden Age of Piracy" and "Colonial Powers" periods. You can play a Swedish character. Last time I tried, no Swedish ships showed up on worldmap, possibly because none are defined in "Ships_init.c" or possibly if no icon is defined for Swedish ships on the worldmap. No relations are set so Sweden is allied to everyone except Pirates.

    Sounds like a storyline in the making... ;)
     
  16. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,629
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    ships_init.c has nothing to do with that; any ship where Sweden isn't specifically defined is available.
    It is indeed more likely that it has to do with the worldmap ship. Is that really not defined in nations_init.c?
    If so, I'd recommend to add that. Then copy an existing GM and make some texture adjustment to make it look more Swedish.
    We made it work for America; it should be possible for Sweden as well.
     
  17. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,420
    It does indeed seem as though "nations_init.c" refers to 'rNation.worldMapShip = "Swedish"' but no Swedish ship icon exists. I've knocked up something based on the French one, recoloured to look a bit like the Swedish East Indiaman.
    swedish.jpg

    I'll leave it to @Jack Rackham to sort through "Ships_init.c", and possibly also arrange for a Swedish envoy to appear somewhere so that Swedish characters can get LoM's and promotions.
     
  18. Jack Rackham

    Jack Rackham HoO Team Member Quest Writer Storm Modder

    Joined:
    Jul 5, 2004
    Messages:
    3,289
    Gender:
    Male
    Occupation:
    math teacher
    Location:
    Sund, Ramsjö, Sweden
    I have no idea what you're talking about.
    I just helped with Swedish titles and soldier models.
     
  19. Ambrois LeGaillard

    Ambrois LeGaillard Sailor Apprentice

    Joined:
    May 14, 2016
    Messages:
    99
    Gender:
    Male
    Occupation:
    Sea Captain and Troubleseeker
    Location:
    Somewhere in the Caribbean
    If you do other pirates models, please adjoin Captain Red from R.Polanski's "Pirates" its a great adjoin to the game.
     
  20. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,629
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    That should help! :onya
     

Share This Page