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

Made new trade items but...

Jason Maffettone

Lord of Entropy
Quest Writer
Provisional
Storm Modder
I've been tinkering. I've added a few new trade items: Dyes, Rope, Meat, Fish, Corn, Tools, and Hemp (ya, mon... hemp <img src="style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" /> )

They appear and are buyable but I can't figure out:

1) How to set their status* (Normal, Import, Export, or Contraband) at various stores,
2) How to make the item's name appear in the window when you buy it at the store,
3) How to add a pict

* I saw in one of the PROGRAM/STORE files a number code for these statuses but not where they go.

If anyone can tell me how I'd be most greatful.

Also want to make bombs available at pirate and smuggler stores and contraband elsewhere.

<img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
1) You can set the import/export/contraband settings in PROGRAM\ISLANDS\Islands_init.c
2) You'll need to add them to RESOURCE\INI\TEXTS\ENGLISH\GoodsDescribe.txt
3) You need to add the pictures to RESOURCE\Textures\INTERFACES\goods.tga.tx and to RESOURCE\Textures\INTERFACES\goods_new.tga.tx . Then you need to add them codewise in RESOURCE\INI\INTERFACES\pictures.ini .

I hope this will help you. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
<img src="style_emoticons/<#EMO_DIR#>/whistling.gif" style="vertical-align:middle" emoid=":wp" border="0" alt="whistling.gif" /> Thanks, Pieter! That did it! I'm not up to making new picts though (pirating a few for now and leaving others blank) as I don't seem to have the nessessary software to read the types POTC uses and not much for computer art anyhow. Am I right in assuming ships and such can be cloned and added in a simmiliar way?

Also, if anyone wants to do some pict files for these (or knows a good place to swipe such things) that would be most cool as I'm not graphicly up to the task.
 
It is quite possible to clone ships, yes. You need to edit some different files for that though. Ships are added in PROGRAM\Ships\ships_init.c. Model files in RESOURCE\MODELS\Ships and textures in RESOURCE\TEXTURES\Ships. They also need to be added to RESOURCE\INI\TEXTS\ENGLISH\common.ini for their names to show up ingame.
 
Yea! I made my first ship! Must re-skin the bastard now though, to make it a more "evil" color... This is disturbingly addictive.
 
DRAT! OK, new trade items are behaving strangely, first two appeared fine. Added 3rd and it replaced wheat but I fixed that. Now, however after place 4 they ALL are removed. If I move them up the list (above origionals) they push those at the end of the list off even though I was able to get 2 new ones to appear origionaly.

Is there a cap on the number of cargo items some place and can this be increased?
 
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> there, Jason,

Go to PROGRAM/STORE/Goods H File and there you'll be able to add your new goods to the list and also increase the int GOODS_QUANTITY. If you download my New Trade Goods - Gold, Silver & Bricks from the ftp and examine all the files then you'll be able to get an idea of what's required, and using this as a frame work, complete your new additions. This mod is working fine and I think Pieter may eventually add it to the Post Build so maybe you can add it to your game and build your additions from there.

Cheers, matey <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
<img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" /> Will do that, many thanks!
 
OK, here are my weirdnesses for the new cargo items thus far:

Constantly either not showing up or only 1 or 2 show up dispite that they're all entered identically. I have all four ones I've added showing up now but the only way I got it to do so was:

a) Add all new items BEFORE any I've already added on ALL lists. (i.e. slot them in in front of any I've already placed there not just tack them to the end.)

b) Add a number of blank items equal to the number of actual added items in goods.int (i.e. I've added four actual items but had to tell goods.int I added 8. Four empty {error} windows appear in the cargo buy list but no real harm otherwise.)

Also a few times files were saved but the info dissapeared until I went back and did it again which is strange and may be a peculularity of my crash-happy computer, Hal jr.
 
Are you sure you increased <i>int GOODS_QUANTITY</i> accordingly in goods.h? If it still won't work properly, please send the files to me and I'll have a look. Or maybe Jack Davidson would want to have a look? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
Yes, that's the item I had to "double up" on. Not really sure if that was the issue or not but once I got the items added I stopped messing with it. Do you want just the goods.int file or everything associated with the items, I'll email them to you.
 
<img src="style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" />

I thought we had a limit on slot for items....seems like he has used everyones share of slots in one go! has he tried to many?
 
The maximum cargo items is 96, there are 28 to start with. This is mainly for my own use to help familiarize myself with modding.
 
<img src="style_emoticons/<#EMO_DIR#>/bookish.gif" style="vertical-align:middle" emoid=":mm" border="0" alt="bookish.gif" />


Okay!....what was I thinking about???...I thought Jack Davidson and Pieter had a discussion on slot restrictions for the POTC interface. Something about Maximus being the resident expert and they were going to ask him sometime if he could increase the slots for all the new and don't get me wrong, neat things that you guys are all making. I think it is in the Spainish Gold, Silver and Bricks thread
 
Cool Beans! Got my trade items mod up and running and eliminated those stupid unused windows! 10 items added: <b>Dyes</b>, <b>Corn</b>, <b>Hemp</b>, <b>Tools</b>, <b>Meat</b>, <b>Fish</b>, <b>Rope</b>, <b>Salt</b>, <b>Rice</b>, and <b>Rosewood</b>. I'll sent the final results tou you, Pieter. Let me know what you think. <img src="style_emoticons/<#EMO_DIR#>/bounce.gif" style="vertical-align:middle" emoid=":b:" border="0" alt="bounce.gif" />
 
<!--quoteo(post=148579:date=May 15 2006, 11:48 PM:name=Long John Silver)--><div class='quotetop'>QUOTE(Long John Silver @ May 15 2006, 11:48 PM) [snapback]148579[/snapback]</div><div class='quotemain'><!--quotec-->
<img src="style_emoticons/<#EMO_DIR#>/bookish.gif" style="vertical-align:middle" emoid=":mm" border="0" alt="bookish.gif" />


Okay!....what was I thinking about???...I thought Jack Davidson and Pieter had a discussion on slot restrictions for the POTC interface. Something about Maximus being the resident expert and they were going to ask him sometime if he could increase the slots for all the new and don't get me wrong, neat things that you guys are all making. I think it is in the Spainish Gold, Silver and Bricks thread
<!--QuoteEnd--></div><!--QuoteEEnd-->


Hmm was that disgussion on the slots in the inport/export/contraband section of the interfaces.

<!--quoteo(post=146062:date=Apr 20 2006, 06:08 PM:name=Jack Davidson)--><div class='quotetop'>QUOTE(Jack Davidson @ Apr 20 2006, 06:08 PM) [snapback]146062[/snapback]</div><div class='quotemain'><!--quotec-->
<img src="style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> there, mates.

I've been testing these new goods a little more and have assigned import/export/contraband for all the islands. Everything seems to work well, no problems so far. The balance seems reasonable. Bricks are on the cheap end of the price range whilst gold and silver are the number one and two most expensive goods with ebony not far behind silver.

The only thing is that there aren't enough import/export/contraband slots (there's only four each) on the Trade Book interface to accommodate the new goods (without pushing out existing goods), although in a couple of instances they have occupied vacant slots. I'm going to have a look at this interface to see what I might be able to do, however, I think I might ask Maximus to come up with something here as he seems to be regularly working to improve all game interfaces and would have much more expertise than me.

If anyone is interested then I can upload this mod to the FTP as it is at the moment for testing.

Cheers <img src="style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->
 
<!--quoteo(post=148579:date=May 16 2006, 12:48 AM:name=Long John Silver)--><div class='quotetop'>QUOTE(Long John Silver @ May 16 2006, 12:48 AM) [snapback]148579[/snapback]</div><div class='quotemain'><!--quotec-->
Okay!....what was I thinking about???...I thought Jack Davidson and Pieter had a discussion on slot restrictions for the POTC interface. Something about Maximus being the resident expert and they were going to ask him sometime if he could increase the slots for all the new and don't get me wrong, neat things that you guys are all making. I think it is in the Spainish Gold, Silver and Bricks thread
<!--QuoteEnd--></div><!--QuoteEEnd-->
These slots are the slots in the Tradebook interface. There is room for only four exported/imported/contraband goods for each island, even if there are more than four defined. This doesn't really influence the game; it just causes the problem that, for some goods, you won't see them being exported/imported/contraband. This does not decrease the amount of goods we can add. We can add a very big lot of goods. An infinite amount almost. Not that we should add that many, though... <img src="style_emoticons/<#EMO_DIR#>/no.gif" style="vertical-align:middle" emoid=":no" border="0" alt="no.gif" />
 
<img src="style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid=":eek:ops2" border="0" alt="oops3.gif" />

Am I ever glad you guys are on my side........I thought I was going Senile, Bahahahahahaha! I might be yet....I was Soooooo sure I saw talk about slots being restricted....was counting in my head........four slots.....lets see Now!.....Bricks, Gold, Silver, Beans, and Weiners, Canadian Duct Tape.....fried clams, Stew...Stewardesses <---- [this one is a Must]....Money....funny money....Illegal Drugs.....what else was there.....well thats WAYYYYY more than 4 slots....."Houston We Have A Problem!!!!!!!"


BAHAHAHHAHAHAHAHHAHA <img src="style_emoticons/<#EMO_DIR#>/24.gif" style="vertical-align:middle" emoid=":rofl" border="0" alt="24.gif" />

<img src="style_emoticons/<#EMO_DIR#>/jackrum.gif" style="vertical-align:middle" emoid=":j3" border="0" alt="jackrum.gif" />
 
<img src="style_emoticons/<#EMO_DIR#>/bookish.gif" style="vertical-align:middle" emoid=":mm" border="0" alt="bookish.gif" /> Incorperating Bricks, Silver and Gold into my mod as I want to do this brings the total to 41. 42 is a perfect number I think and, Long John, I do believe that Stewardesses could be just the ting to make those long nights at sea bareable! (lol)

Excluding the player consumables (ammo, gunpowder, planks, sailcloth, wheat, and rum) I'me getting a good mix going. Still putting togeather a full set for all the islands taking foreign production and raw materials into account it's comming along nicely and everything will be imported and exported from at least one place and the highest end items will all be contraband somewhere.

BTW: Are all the shops functional at this time, at least one per island. I was having trouble finding the store in Havanna and the Tavern had no innkeeper. If any stores are disabled I want to avoid using them until they're ready. <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
 
<img src="style_emoticons/<#EMO_DIR#>/poet.gif" style="vertical-align:middle" emoid=":hmm" border="0" alt="poet.gif" />
Actually Jason Maffettone would not hurt to place them in the islands anyway...unless I am mistaken, the easiest thing to place in the game is a shop....all you do is copy the shop in question and place it in some locations in the new island/town, so this could be added after the fact....course I have been Wrong before....hahahaha
 
Back
Top