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

Adding New items

Izzie

Landlubber
I tried to follow the tutor post at <a href="http://robotsdontbleed.com/wacko/wakka.php?wakka=AddingNewItems&v=13ey" target="_blank">http://robotsdontbleed.com/wacko/wakka.php...tems&v=13ey</a>

But when I get to this line #define ITEMS_QUANTITY 128 <---Remember this from above? It doesn't exsist in the items.h anymore. If you touch the #define MAX_ITEMS 512 line, even if the other lines match in number
#define MAX_RANDITEMS 512 // MUST BE CAREFUL

#define MAX_SKILLITEMS 512 // must be >= num skill-changing items; best to leave this = max_items

You get a crash to desktop when trying to save the game and that save file gets corrupted. This will happen even if you reinit or not.

Is the tutorial outdated and if so what is the new method of adding items?

I was working with build 12 not the post 12. But I would need the info on add items to both.
 
You don't need to increase any number at all. Simply add the item to initItems.c and add the interface pictures. Also: If you want the item to appear in your savegame, press during the game to reinitialize it. If you don't do that, the item won't be in your savegame.

BTW: What are you working on? <img src="style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid=":cheeky" border="0" alt="icon_mrgreen1.gif" />
 
Thankyou Pieter. And just fooling around with some ideas. If anything good comes out of it I'll let you know.

Ok something odd happened. I put in a test item, yup it was there..ok cool so far. I put in a second one and 3 vendors in the town I was in ended up with empty inventory. Unfortunatly I had already saved the game before I saw this so I will run the reinit before I port into that town again and see if it fixes itself. I wanted to make sure it works well BEFORE I invest the time into doing research and texture ( even though those are fairly easy).

Second question, if you have the time, how do I change what a town has for contraband. Douwesen wants rum and it ticks them off when I refuse to sell off my stock. On the other hand Redmond exports clothes that NOBODY wants seems like a good switch if you ask me. In my game I have 2 islands Antigua and Turks that appear unfinished as far as trade good go. You might want to mention that a cross reference to what others are importing/exporting. I see Oxbay now sells silver and although 3 places have paprika as contraband nobody exports that.
 
Back
Top