Well, I tried to add a new brace of guns to the game, but it didn't work very well.
I am using the latest Post Build Mod 12. Who can help me and find the mistake?
In <b>Pirates of the Caribbean\PROGRAM\ITEMS\ItemsInit.c</b> I added right after Alan Smithee's Code:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> //Alan Smithee's new weapons end
// El Rapido's new weapons
//Brace of Richard Haley Pistols
makeref(itm,Items[n]);
itm.id = "pistol10";
itm.sound = "OBJECTS\DUEL\pistol_shot10.wav"; // new pistol sound by El Rapido
itm.shottype = "pb"; //JRH
// NK -->
itm.skiptrade = false;
itm.skiprand = false;
itm.skipequip = false;
// NK <--
itm.groupID = GUN_ITEM_TYPE;
itm.name = "itmname_pistol10";
itm.describe = "itmdescr_pistol10";
itm.folder = "ammo";
itm.model = "pistol9";
itm.picIndex = 1;
itm.picTexture = "ITEMS_69";
itm.price = 15000;
itm.chargeQ = 2;
itm.chargespeed = 24;
itm.dmg_min = 75.0;
itm.dmg_max = 160.0;
itm.accuracy = 75;
itm.minlevel = 1;
itm.rare = 0.05;
n++;
// El Rapido's new weapons end
}
else
{
//--------------------------------------------------------------------------------------------------------
<!--c2--></div><!--ec2-->
And also in <b>Pirates of the Caribbean\PROGRAM\ITEMS\ItemsInit.c</b> right after Alan Smithee:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> // Alan Smithee's new weapons -->
n = InitGun(n, "pistol7", "pistol7", 9, 1, 0.10, 4, 3500, 25.0, 40.0, 40, 3, 30, FRANCE, "OBJECTS\DUEL\pistol_small.wav", "pb"); // Brace of Small Pistols
n = InitGun(n, "pistol8", "pistol8", 9, 3, 0.05, 7, 7500, 45.0, 60.0, 50, 3, 35, SPAIN, "OBJECTS\DUEL\pistol_medium.wav", "pb"); // Brace of Mid-size Pistols
n = InitGun(n, "pistol9", "pistol9", 9, 2, 0.05, 17, 12000, 55.0, 80.0, 55, 2, 28, HOLLAND, "OBJECTS\DUEL\pistol_big.wav", "pb"); // Brace of Large Pistols
// Alan Smithee's new weapons end
// El Rapido's new weapons
n = InitGun(n, "pistol10", "pistol9", 69, 1, 0.05, 1, 15000, 60.0, 85.0, 75, 2, 24, ENGLAND, "OBJECTS\DUEL\pistol_shot10.wav", "pb"); // Brace of Richard Haley Pistols
// El Rapido's new weapons end
<!--c2--></div><!--ec2-->
The <b>#define ITEMS_QUANTITY</b> in <b>"Pirates of the Caribbean\PROGRAMS\ITEMS\items.h"</b> seems to have been recoded, so that it is not needed anymore. It was mentioned in step 3 and 4 of <b><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--><a href="http://robotsdontbleed.com/wacko/wakka.php?wakka=AddingNewItems&v=13ey" target="_blank">Duke Suraknars Item Tutorial in the POTCWiki</a><!--colorc--></span><!--/colorc--></b>. The tutorial seems to be outdated for Post Build Mod 12.
I added the new soundfile <b>"Pirates of the Caribbean\RESOURCE\Sounds\OBJECTS\DUEL\pistol_shot10.wav"</b>.
I have put 6 texture files for the item inventory images in the folder "Pirates of the Caribbean\RESOURCE\Textures\INTERFACES", each one of them refering to a different item quality.
<b>The texture files are:</b>
items69-2.tga.tx
items69-1.tga.tx
items69.tga.tx
items69+1.tga.tx
items69+2.tga.tx
items69+3.tga.tx
You can download my texture files and have a look at them: <!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--><b><a href="http://people.freenet.de/philipp.dorok/items69.zip" target="_blank">Download items69.zip</a></b><!--colorc--></span><!--/colorc-->
In the description file "Pirates of the Caribbean\RESOURCE\INI\TEXTS\ENGLISH\<b>ItemsDescribe.txt</b>" I inserted:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// Alan Smithee's new weapons end
// El Rapido's new weapons
itmname_pistol10 {High Precision Pistols}
itmdescr_pistol10
{
The famous armourer Richard Haley of London forged these two masterpieces. The brace is perfectly balanced and light-weighed, but delivers a decent punch. Due to its power the shot is very loud.
}
// El Rapido's new weapons end
// vassal weapons mod start<!--c2--></div><!--ec2-->
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> <b><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->EDIT: Allright, mateys. The item seems to work partially now ingame. The trick was to press the Reinitialize-Key...
Sometimes I am very stupid. <img src="style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="
:" border="0" alt="laugh.gif" /> </b><!--colorc--></span><!--/colorc-->
But the textures for the item interface and for the model itself are screwed up unfortunately. <img src="style_emoticons/<#EMO_DIR#>/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" />
The model textures include some small blue faces (#00FF00 blue I guess).
I did a reskin of pistol9 (Brace of Large Pistols). I copied the pistol9.gm model to pistol10.gm and then hexedited it to set the texture filename for the model to "pistl10.tga".
The texture for the item interface even refuses to show up. And the itmname_pistol10 in the description file does not work as you can see on the screenshots on this page:
<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><a href="http://people.freenet.de/philipp.dorok/elrapido/textureproblem.htm" target="_blank">strange item texture problem page</a><!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc-->
Thank you very much for your help! <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid="
" border="0" alt="me.gif" />
I am using the latest Post Build Mod 12. Who can help me and find the mistake?
In <b>Pirates of the Caribbean\PROGRAM\ITEMS\ItemsInit.c</b> I added right after Alan Smithee's Code:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> //Alan Smithee's new weapons end
// El Rapido's new weapons
//Brace of Richard Haley Pistols
makeref(itm,Items[n]);
itm.id = "pistol10";
itm.sound = "OBJECTS\DUEL\pistol_shot10.wav"; // new pistol sound by El Rapido
itm.shottype = "pb"; //JRH
// NK -->
itm.skiptrade = false;
itm.skiprand = false;
itm.skipequip = false;
// NK <--
itm.groupID = GUN_ITEM_TYPE;
itm.name = "itmname_pistol10";
itm.describe = "itmdescr_pistol10";
itm.folder = "ammo";
itm.model = "pistol9";
itm.picIndex = 1;
itm.picTexture = "ITEMS_69";
itm.price = 15000;
itm.chargeQ = 2;
itm.chargespeed = 24;
itm.dmg_min = 75.0;
itm.dmg_max = 160.0;
itm.accuracy = 75;
itm.minlevel = 1;
itm.rare = 0.05;
n++;
// El Rapido's new weapons end
}
else
{
//--------------------------------------------------------------------------------------------------------
<!--c2--></div><!--ec2-->
And also in <b>Pirates of the Caribbean\PROGRAM\ITEMS\ItemsInit.c</b> right after Alan Smithee:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--> // Alan Smithee's new weapons -->
n = InitGun(n, "pistol7", "pistol7", 9, 1, 0.10, 4, 3500, 25.0, 40.0, 40, 3, 30, FRANCE, "OBJECTS\DUEL\pistol_small.wav", "pb"); // Brace of Small Pistols
n = InitGun(n, "pistol8", "pistol8", 9, 3, 0.05, 7, 7500, 45.0, 60.0, 50, 3, 35, SPAIN, "OBJECTS\DUEL\pistol_medium.wav", "pb"); // Brace of Mid-size Pistols
n = InitGun(n, "pistol9", "pistol9", 9, 2, 0.05, 17, 12000, 55.0, 80.0, 55, 2, 28, HOLLAND, "OBJECTS\DUEL\pistol_big.wav", "pb"); // Brace of Large Pistols
// Alan Smithee's new weapons end
// El Rapido's new weapons
n = InitGun(n, "pistol10", "pistol9", 69, 1, 0.05, 1, 15000, 60.0, 85.0, 75, 2, 24, ENGLAND, "OBJECTS\DUEL\pistol_shot10.wav", "pb"); // Brace of Richard Haley Pistols
// El Rapido's new weapons end
<!--c2--></div><!--ec2-->
The <b>#define ITEMS_QUANTITY</b> in <b>"Pirates of the Caribbean\PROGRAMS\ITEMS\items.h"</b> seems to have been recoded, so that it is not needed anymore. It was mentioned in step 3 and 4 of <b><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--><a href="http://robotsdontbleed.com/wacko/wakka.php?wakka=AddingNewItems&v=13ey" target="_blank">Duke Suraknars Item Tutorial in the POTCWiki</a><!--colorc--></span><!--/colorc--></b>. The tutorial seems to be outdated for Post Build Mod 12.
I added the new soundfile <b>"Pirates of the Caribbean\RESOURCE\Sounds\OBJECTS\DUEL\pistol_shot10.wav"</b>.
I have put 6 texture files for the item inventory images in the folder "Pirates of the Caribbean\RESOURCE\Textures\INTERFACES", each one of them refering to a different item quality.
<b>The texture files are:</b>
items69-2.tga.tx
items69-1.tga.tx
items69.tga.tx
items69+1.tga.tx
items69+2.tga.tx
items69+3.tga.tx
You can download my texture files and have a look at them: <!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--><b><a href="http://people.freenet.de/philipp.dorok/items69.zip" target="_blank">Download items69.zip</a></b><!--colorc--></span><!--/colorc-->
In the description file "Pirates of the Caribbean\RESOURCE\INI\TEXTS\ENGLISH\<b>ItemsDescribe.txt</b>" I inserted:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->// Alan Smithee's new weapons end
// El Rapido's new weapons
itmname_pistol10 {High Precision Pistols}
itmdescr_pistol10
{
The famous armourer Richard Haley of London forged these two masterpieces. The brace is perfectly balanced and light-weighed, but delivers a decent punch. Due to its power the shot is very loud.
}
// El Rapido's new weapons end
// vassal weapons mod start<!--c2--></div><!--ec2-->
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> <b><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->EDIT: Allright, mateys. The item seems to work partially now ingame. The trick was to press the Reinitialize-Key...
Sometimes I am very stupid. <img src="style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="

But the textures for the item interface and for the model itself are screwed up unfortunately. <img src="style_emoticons/<#EMO_DIR#>/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" />
The model textures include some small blue faces (#00FF00 blue I guess).
I did a reskin of pistol9 (Brace of Large Pistols). I copied the pistol9.gm model to pistol10.gm and then hexedited it to set the texture filename for the model to "pistl10.tga".
The texture for the item interface even refuses to show up. And the itmname_pistol10 in the description file does not work as you can see on the screenshots on this page:
<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro--><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><a href="http://people.freenet.de/philipp.dorok/elrapido/textureproblem.htm" target="_blank">strange item texture problem page</a><!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc-->
Thank you very much for your help! <img src="style_emoticons/<#EMO_DIR#>/me.gif" style="vertical-align:middle" emoid="
