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.

Cossacks in the Caribbean?

Discussion in 'Other' started by Javrimir, Sep 12, 2016.

  1. Tingyun

    Tingyun Corsair Storm Modder

    Joined:
    Aug 8, 2016
    Messages:
    1,445
    Gender:
    Male
    Thanks ANSEL! :)

    @Javrimir the new file works, please forgive the earlier version being incorrect. If you redownload and reinstall the file attached a few posts above, you'll have your shashka now. :)
     
  2. ANSEL

    ANSEL Corsair Storm Modder Hearts of Oak Donator

    Joined:
    Aug 18, 2013
    Messages:
    1,767
    Gender:
    Male
    Occupation:
    Artist,Painter
    Location:
    Viborg.Denmark
    @Tingyun Could you tell me how it can be you get blade 43 , when you write blade 41 in the code?
     
  3. Tingyun

    Tingyun Corsair Storm Modder

    Joined:
    Aug 8, 2016
    Messages:
    1,445
    Gender:
    Male
    ANSEL, I'm not sure what is going on exactly, but it looks like the item file skips numbers, for example there is no blade42 listed where it should be. It does seem to call the shashka "blade41" even though it may have skipped numbers or something, here are the lines from my iteminit

    n = InitBlade(n, "blade41", "blade41", 23, 7, 0.01, 28, 700, 29.0, 43.0, 55, 35, "", 6, 0, PERIOD_GOLDEN_AGE_OF_PIRACY, PERIOD_NAPOLEONIC); // Russian Cossack's Shashka//BB (rare+powerfull)
    n = InitBlade(n, "blade43", "blade43", 23, 10, 0.08, 19, 603, 24.0, 38.0, 45, 40, "", 5, 0, PERIOD_REVOLUTIONS, PERIOD_NAPOLEONIC); // US Cavalry Sabre//BB (rare, slight upgrade on 'english officer sabre')

    See it skips 42 (because that is jack sparrow's cutlass, which is elsewhere in the file.)

    Anyway, "blade41" does seem to call it. My initial mistake was I had written "bladeC41", because I was changing it from "bladeC30" and forgot to erase the C.

    At least we have a working file now. Thank you for helping, and for your patience with my mistakes!:)
     
    Pieter Boelen likes this.
  4. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,375
    That file treats any Swordmaster[/i] character as a Cossack. This may not be the best solution. A better choice might be to add a new character to "initModels.c". This is where all other custom characters are defined - look for any entry with the "model.storytitle" attribute defined for examples.

    The Cossack shashka was previously defined to be from "Colonial Powers" onwards, which is correct, it was a later development. Perhaps put it back to that, then define a new blade, "Caucasian Shashka", which was an earlier one dating back to the 12th century and so would be available in all periods. You could also make it less powerful than the Cossack version, therefore more suitable as equipment for a starting character.
     
  5. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,570
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    For the record, @Tingyun posted that file NOT for inclusion in the main mod, but solely for @Javrimir's personal use.
     
    Tingyun likes this.
  6. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,375
    Fair enough, but adding a new model would have the advantages that @Javrimir would have the option to play a swordmaster who is not necessarily a Cossack, while it could be included for general use so anyone else can play a Cossack if they wish. ;)
     
    Tingyun likes this.
  7. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,570
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Very true. I personally would have no objection to an actual Cossack character being added to the mod itself.
    After all, why not? More variety is good in my book! :cheers
     
    Tingyun likes this.
  8. Tingyun

    Tingyun Corsair Storm Modder

    Joined:
    Aug 8, 2016
    Messages:
    1,445
    Gender:
    Male
    Yes, mine was just about giving Javrimir a quick way to achieve some of what he wanted, not meant for the main mod at all.

    Grey Roger, if you end up implementing your ideas of a new sword and a new freeplay start, I am sure they would be a very fun addition to the mod! :)
     
  9. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,375
    I'll let you deal with the sword since you're doing other things to "initItems.c". For now I'll rig the Cossack character to have the shashka, accurate or not. In fact, I'm copying both the sword assignment and the character description from your version, though once I'm done, I'd advise @Javrimir to put "characters_init.c" back to the normal version. Instead, the sword assignment will be done in "StartStoryline.c", as most other assignments appear to be done for specific characters.

    Kaverin Aleskeevich is on his way...
     
  10. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,570
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
  11. Tingyun

    Tingyun Corsair Storm Modder

    Joined:
    Aug 8, 2016
    Messages:
    1,445
    Gender:
    Male
    Sounds awesome Grey Roger! :)
     
  12. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,375
    Just to check, adding the following to "PROGRAM\Storyline\FreePlay\StartStoryline.c" should equip this character, and only this character, with the shashka at the start of the game:
    Code:
        case PLAYER_TYPE_SWORD_MASTER:
           if (GetMySimpleName(PChar) == "Kaverin Aleskeevich" && iNation == PERSONAL_NATION)
           {
             if(ENABLE_WEAPONSMOD) GiveItem2Character(PChar, "blade41+3");
             else GiveItem2Character(PChar, "blade41");
           }
         break;
     
    Tingyun likes this.
  13. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,570
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Should do, yes. :onya
     
  14. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,375
    Try this. I believe it ought to have everything. Kaverin Aleskeevich is effectively a clone of Blaze4 - which, incidentally, has armoured model files defined but no entries in "initModels.c" to use the armoured variants. I may try adding them to find out why not, and if there is no reason why not, maybe add them for Aleskeevich as well.

    Update: if you downloaded the file last night, download it again. I've made a few changes. For one thing, the old version did not have everything - I forgot about "models_description.txt", which needs a line added to correspond to the entry in "initModels.c" so that the model's description will appear. Also, it turns out some things are best done in "Characters_init.c" after all. Default swords are assigned there and it seems to be called after "StartStoryline.c". So Kaverin got his shashka but also got the default swept-hilt rapier, and I couldn't get rid of it by adding a 'TakeItemFromCharacter' line to "StartStoryline.c". It's now back in "Characters_init.c", but as there's a specific model, it's made conditional on that model, therefore a generic Swordmaster will still get the generic ship's log entry and swept-hilt rapier. Meanwhile he now has a ship defined in "initModels.c".

    So here is our new Cossack:
    character_selection.jpg

    He's just arrived in Speightstown. His ship, the Babushka, is behind him.
    arrival_speightstown.jpg
     

    Attached Files:

    Last edited: Sep 14, 2016
    Javrimir and Tingyun like this.
  15. Levis

    Levis Find(Rum) = false; Staff Member Programmer Creative Support Storm Modder

    Joined:
    Oct 6, 2013
    Messages:
    6,661
    Gender:
    Male
    Occupation:
    ICT
    Location:
    University Twente (Netherlands)
    @Grey Roger I don't know how difficulty it is to make another portrait here. But maybe that would be wise to do? Just to make sure there is no confusion with the one from the standaard quest
     
  16. Javrimir

    Javrimir Powder Monkey

    Joined:
    Sep 12, 2016
    Messages:
    48
    Gender:
    Male
    Great work guys! (I guess Kaverin is the family name and Aleskeevich the Patronym?)

    Which of the files should I save where? Don't want to do anything wrong :cheeky
     
  17. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,570
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    I was thinking the exact same thing, just to indicate this guy isn't Nathaniel Hawk.
     
  18. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,375
    OK, download the zip again - I've just updated it. Model "aleskeevich" should now be using face 268, which as far as I can tell is unoccupied. Or was. It should now be occupied by this:
    portrait.jpg

    "RESOURCE\INI\INTERFACES\pictures.ini" already has "face_268" registered so should not need to be updated.
     
    ANSEL, Tingyun, Levis and 1 other person like this.
  19. Pieter Boelen

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

    Joined:
    Nov 11, 2004
    Messages:
    66,570
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Oh wow, that looks VERY Russian. To me anyway. :cheeky

    Did you add the "gold border" around the portrait as well to keep it in line with all the other ones?
    @Cassadar did a lot of hard work in the past to get all portraits up to a similar standard.
    If you don't have it, I think this ZIP contains his default borders we use now: http://piratesahoy.bowengames.com/potc/OFFICIAL/Faces.zip
     
    Tingyun likes this.
  20. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,375
    I'd hope so, since it came from a Google Image search for "Cossack". ;)

    Like this? ;)
    face_268_128.jpg
    I have my own set of frames with faded edges, then I just use Photoshop to put the picture under the frame so that the edges are suitably darkened. If I remember correctly, I didn't know about the official ones so, when I was creating Sharpe's interface photos, I clipped the frames from some existing interface photos and added the fading, then saved the results for future use. Then I used them to create the interface shots for the "Ardent" characters.
     
    Javrimir and Tingyun like this.

Share This Page