• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Cossacks in the Caribbean?

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. :)
 
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!:)
 
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.
 
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. ;)
 
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. ;)
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
 
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! :)
 
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...
 
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;
 
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
 

Attachments

  • Aleskeevich.zip
    289 KB · Views: 307
Last edited:
@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
 
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
 
@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
I was thinking the exact same thing, just to indicate this guy isn't Nathaniel Hawk.
 
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.
 
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:
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
 
Oh wow, that looks VERY Russian. To me anyway. :cheeky
I'd hope so, since it came from a Google Image search for "Cossack". ;)

Did you add the "gold border" around the portrait as well to keep it in line with all the other ones?
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.
 
Back
Top