• 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!

New New New Custom Sails

Kieron

Landlubber
Storm Modder
i know i'm always updating the custom sails system, but i thought i'd get it perfect before build 12.


this version allows you to select:
  • sails in any of the three colours;
  • <b>white</b>, <b>crimson</b> or <b>black</b> sails;
  • <b>plain</b>, <b>national emblem</b>, <b>pirates ahoy! logos</b> or <b>pirate emblems</b>, in any of the colours, whole or torn.

    • <b>custom sails</b>:
      • you can add an unlimited number of custom sails;
      • your custom sails can be whole or torn; white, crimson or black;
      • your custom sails appear in the list of 'pirate logos,' so you can even overwrite the original sails, or change the order by renaming the files.

        • <b>buyable sails</b>:
          • in addition to all the sails options above, the system now supports buyable sails;
          • there is now a very simple system for adding buyable sails to the player;
          • the player can `un-select` and `re-select` the buyable sail as much as they want.
          • the actual buyable sails haven't been implemented yet, just the system to make them possible. this idea came from alan's curio shop mod <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />

            • so, i just wanted to know what you all thought so i have time to change anything that needs changing before the build.

              enjoy <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />


              <b>edit</b>
              the new package, which includes further required textures, is available on the piratesahoy ftp .
              it's in the file <b>Kieron - New New New Custom Sails - INCLUDES further textures.zip</b> (i like long filenames <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> )
              <span style='color:red'><b>you HAVE to read the instructions before you install it...</b></span>
              (if you don't know, the pirates ahoy ftp is at <b><a href="ftp://ftp.piratesahoy.net" target="_blank">ftp://ftp.piratesahoy.net</a></b>, the username is <b>files@piratesahoy.net</b>, the password is <b>piratesahoy</b> and the folder to look in is <b>`Upload-Download` folder</b>. if you're using IE, follow the link and go to File -> Login As to enter the username and password.)

              thanks <b>iamthejarha</b> for the idea and the textures!
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_praise.gif" style="vertical-align:middle" emoid=":bow" border="0" alt="icon_praise.gif" /> Thanks mate!!!!!
 
oh i forgot to mention that i haven't done the textures for the crimson sails yet... i'll make them ready for download asap <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
Kieron, if you want copies of the crimson sails I made (a plain version and one with a Jolly Roger), let me know. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
<!--`QuoteBegin-iamthejarha`+--><div class='quotetop'>QUOTE(iamthejarha)</div><div class='quotemain'><!--QuoteEBegin-->Kieron, if you want copies of the crimson sails I made (a plain version and one with a Jolly Roger), let me know.  :cheers[/quote]

oh yes that'd be great, thanks! i was just going to ask you for those <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
<!--`QuoteBegin-Jason`+--><div class='quotetop'>QUOTE(Jason)</div><div class='quotemain'><!--QuoteEBegin-->I can't get logged in.[/quote]Jason, try clicking on this:

<a href="ftp://files%40piratesahoy.net:piratesahoy@ftp.piratesahoy.net/" target="_blank">ftp://files%40piratesahoy.net:piratesahoy...iratesahoy.net/</a>

And look in the Uploads/Downloads folder. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
ok, i've put the new textures up for download on the pirates ahoy ftp, and i've edited the post above.

these new textures will let you select <b>crimson sails</b>, in any of the designs, whole or torn. they look pretty cool <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> it also includes a whole new <b>dutch emblemed sail</b> design - looks much better, i promise! - and a couple of updates to some white sails that didn't turn out that well the first time.

i'd like to thank <b>iamthejarha</b>, because this was his idea! and for the use of his sail textures.

they're on the pirates ahoy ftp as: <b>Kieron - New New New Custom Sails - further required textures.zip</b> (hey, i like long filenames <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> )
or you can redownload the whole thing including the new textures: <b>Kieron - New New New Custom Sails - INCLUDES further textures.zip</b>
(if you don't know, the pirates ahoy ftp is at <b><a href="ftp://ftp.piratesahoy.net" target="_blank">ftp://ftp.piratesahoy.net</a></b>, the username is <b>files@piratesahoy.net</b>, the password is <b>piratesahoy</b> and the folder to look in is <b>`Upload-Download` folder</b>. if you're using IE, follow the link and go to File -> Login As to enter the username and password.)

thanks again iamthejarha!
 
i've just realised i didn't include any instructions with it... duh...


**********************************************

<b><span style='`font-size`:21pt;`line-height`:100%'>instructions for players</span></b>
it's really simple <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> the 'choose sail' interface is now very much improved. you can select the type of sail (whole or torn), the colour (white, crimson or black) and the design, without having to scroll through loads of images. you can also see all the images, even custom ones, on the interface.

remember that when you set your sails, the new sails won't be displayed until the next time you go to the sea/battle screen.

the interface now supports bought sails. currently there are no buyable sails available in the game, but in future mods this could change!


**********************************************

<b><span style='`font-size`:21pt;`line-height`:100%'>instructions for modders</span></b>

<b>custom sails</b>
you should NOT have to do any modding to the program itself! please don't change the interface files, or procGetSailTextureData!

all you have to do to make new custom sails available is:
  • place the file in RESOURCETexturesShips
  • name it:
    • sail_whole_white_pirate?.tga.tx - if it's a whole white sail
    • sail_torn_white_pirate?.tga.tx - if it's a torn white sail
    • sail_whole_red_pirate?.tga.tx - if it's a whole red sail
    • sail_torn_red_pirate?.tga.tx - if it's a torn red sail
    • sail_whole_black_pirate?.tga.tx - if it's a whole black sail
    • sail_torn_black_pirate?.tga.tx - if it's a torn black sail
      • the ? in that filename represents the sail number. you must use the <b>next available</b> sail number. for example, if you want to add a torn white sail, and the last used one is sail_whole_white_pirate22.tga.tx, yours <b>must</b> be sail_whole_white_pirate23.tga.tx. (or, if you prefer, you can swap it with one of the existing files and rename <i>that</i> file sail_whole_white_pirate23.tga.tx).
      • in buildsettings.h, go to the custom sail section near the bottom of the file, and increase the appropriate value by 1. the number in buildsettings.h should always be <b>one higher</b> than the last used sail number. therefore, continuing our example, if you've just added sail_whole_white_pirate23.tga.tx, the value in buildsettings.h for whole white sails should be 24.



        • <b>buyable sails</b>
          you should NOT have to do any modding to the program itself! please don't change the interface files, or procGetSailTextureData!

          this mod doesn't include any sort of system or interface for organising sails that the user is <i>allowed</i> to buy. (modders can do that if and when it is necessary <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> ) it only contains the system for actually <i>adding</i> the sail to the player once it's been bought. the player may then select it via the f2 interface.

          to add a buyable sail to the player (i.e. when the player has just bought it), use the function <b>KAM_BuySail</b>. you could call this function in a dialogue node, for example.
          this function doesn't deal with taking money off the player. it just adds the buyable sail to the player's list of bought sails, so they can then select it from the f2 menu.
          it has five arguments:
          • sail id. this is never displayed to the user. it is used to identify the sail internally.
          • second argument: string: the full path of the emblemed sail texture file. it should start with "Ships" (assuming that's where you put the texture) and end in ".tga"
          • third argument: string: the full path of the `non-emblemed` sail texture file. it should start with "Ships" (assuming that's where you put the texture) and end in ".tga"
          • fourth argument: string: a short description of the sail, displayed to the user on the f2 screen when they want to select the sail. don't make it too long or it won't fit on the screen <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
          • fifth argument: true or false: set to 'true' to activate the sails straight away, or set to 'false' to just add them, so the player can select them later.


            • so for example, using alan's idea of sails buyable from a curio shop on redmond, he might add to one of the dialogue nodes of his storekeeper (AFTER money has been checked and taken from the player):
              <b>KAM_BuySail("AlansCurioSails","Shipsalans_curio_sails_emblemed.tga","Shipsalans_curio_sails_nonemblemed.tga","Sails made from human flesh! Bought from the Curio shop on Redmond.",true);</b>

              in your interface or dialogue you might want to check if the player has already bought a sail. use the <b>KAM_SailHasBeenBought</b> function. all you need to supply is the sail id. the function returns true or false.
              so for example, in alan's storekeeper's dialogue, we might have an `if-statement` that used that function:
              <b>if (KAM_SailHasBeenBought("AlansCurioSails") == false)
              {
              link.l1 = "We have some wonderful sails made from human flesh!";
              link.l1.go = "buyhumanfleshsails";
              }</b>
              that node would only appear if the sails with id "AlansCurioSails" had NOT been bought.

              if you want to know how many buyable sails the player has bought, check the property <b>PChar.BuyableSails.Qty</b>, where PChar is the main character.
              if you want to do calculations with this number you'll probably want to get the number this way: <b>sti(PChar.BuyableSails.Qty)</b>

              if you want to know what number in the player's list a particular sail is, call the function KAM_GetSailIndex; again all you need to supply is the sail id of the sail you're looking for.
              the function returns the number of the sail in the player's list (nb. the list starts with the number 0), or -1 if the sail has not been bought.
              so for example, if you want to know where alan's sails are in the player's list, call <b>KAM_GetSailIndex("AlansCurioSails")</b>. the returned value would be 0 if alan's sails were the first set of buyable sails that the player had bought; 1 if they were the second set of buyable sails that the player had bought; etc.

              **********************************************

              whew <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />

              if anyone has any doubts, just ask!
 
ooh just remembered - after installing the mod, if you want to save a (little) bit of disk space, you can delete the following files from RESOURCETexturesShips:

parus_nationblack* (all files beginning with that)
parus_nationtorn* (all files beginning with that)
parus_pirate* (all files beginning with that)
parus_pirate_torn* (all files beginning with that)
kam_pasails* (all files beginning with that)
kam_nologosails.tga.tx
kam_customsailsicon.tga.tx (if you have that file)
customblacksails* (all files beginning with that)
customtornsails* (all files beginning with that)

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" />
 
Back
Top