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

Help

If I understand what it is you're looking for, that's now in quests_reaction.c

Example:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void FaceMaker(aref rCharacter)      //changed by KAM

{

    rCharacter.FaceId = GetCharacterFaceID(rCharacter.model);

    rCharacter.headModel = "h_" + rCharacter.model;

}



int GetCharacterFaceID(string modelname)    //added by KAM

{

    int tempmodelnum = 41; //NK - default face ID

    switch (modelname)

    {

 case "black_corsair":      tempmodelnum = 0; break;

 case "bocman1":      tempmodelnum = 1; break;

 case "bocman3":      tempmodelnum = 2; break;

 case "bocman":      tempmodelnum = 3; break; // fragster

 case "brodyaga":  tempmodelnum = 4; break;

 case "capitan":      tempmodelnum = 5; break;

 case "capitan1":  tempmodelnum = 6; break;

 case "chameleon":  tempmodelnum = 7; break;

 case "chelovek":  tempmodelnum = 63; break; // NK - 8

 case "chelovek1":  tempmodelnum = 64; break; // NK - 9

 case "corsair1":  tempmodelnum = 10; break;

 case "corsair1_1":  tempmodelnum = 11; break;

 case "corsair1_2":  tempmodelnum = 12; break;

 case "corsair2":  tempmodelnum = 13; break;

 case "corsair3":  tempmodelnum = 14; break;

 case "danielle":  tempmodelnum = 15; break;

 case "blaze":      tempmodelnum = 16; break;

 case "fawn":      tempmodelnum = 17; break;<!--c2--></div><!--ec2-->Hope this helps! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
It doesn't work <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/ib012.gif" style="vertical-align:middle" emoid=":cry" border="0" alt="ib012.gif" />
I have change the file (quests_reaction) i have put my skin and my portraits. Put the character have the original skin...
 
the facemaker function has always been in quests_reaction.c (i've been thinking we should move it, since it gets edited so much).

which files have you edited so far, captaindams?
 
Before i install the build the facemaker function was in the character_init. If i remember well.
Now i add a skin but it doesn't work... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />
 
<!--QuoteBegin-CapitainDams+--><div class='quotetop'>QUOTE(CapitainDams)</div><div class='quotemain'><!--QuoteEBegin-->Before i install the build the facemaker function was in the character_init. If i remember well.<!--QuoteEnd--></div><!--QuoteEEnd-->

you don't, i promise <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />


<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Now i add a skin but it doesn't work... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

hopefully we can work this out <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> but you need to tell us a few things: what exactly have you added so far? to which files? what do you want your skin to do (do you want it to be buyable, or to work as a hired officer skin, or are you adding a new character for something that is supposed to have the skin)? what exactly do you mean by not working?
 
Kieron, with all the people working on new skins for new characters, the "facemaker" function is going to run into a lot of problems when these people make mods because of the numbering system.

There should be some kind of better way to do this so that we won't all choose the same number for our new characters and end up `re-writing` each other's work... Or at least have a public list available that says, "I am using # 151 for my Fred Bob character".

Otherwise all these new mods will be quite awkward to use/install.
 
you're right catalina, i will look into how the system can be changed. but the problem is that those numbers correspond to the actual texture files that contain the 'face' of each character (the one you see, for example, in the `bottom-left` of the screen, and on the character screen). the files are named 'face0.tga.tx,' 'face1.tga.tx,' etc. etc. so changing the system means renaming all the face files one by one <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_eek.gif" style="vertical-align:middle" emoid=":shock:" border="0" alt="icon_eek.gif" /> (probably why no modder has bothered doing it so far lol <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> )
 
<!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->hopefully we can work this out <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> but you need to tell us a few things: what exactly have you added so far? to which files? what do you want your skin to do (do you want it to be buyable, or to work as a hired officer skin, or are you adding a new character for something that is supposed to have the skin)? what exactly do you mean by not working?<!--QuoteEnd--></div><!--QuoteEEnd-->

Alright i wanna add a new character, so i add a skin with new name in ressource/texture/character and portraits with new number in ressource/texture/interface/portrait and i change the quest_init. But the skin is the same as the original skin that i use for make the new one.
 
<!--QuoteBegin-Kieron+--><div class='quotetop'>QUOTE(Kieron)</div><div class='quotemain'><!--QuoteEBegin-->(probably why no modder has bothered doing it so far lol <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/happy.gif" style="vertical-align:middle" emoid="^_^" border="0" alt="happy.gif" /> )<!--QuoteEnd--></div><!--QuoteEEnd--><img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" /> Shoulda thought of that before there were 150 of them, LOL!!! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />

I wouldn't mind spending the time, if I only had some to spend! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
Back
Top