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

Need help with interfacepictures

CouchcaptainCharles

COO (Chief Oddity Officer)
Storm Modder
Pirate Legend
I would like to use the "Bomb" picture from the trade interface as picture for my "Grenades" in the inventory interface. Does anyone know what I must enter in the itemsdefinition in itemsinit to let it use the bombpicture?
I have found the picturelist in iniinterfacespictures, but the entries in the [GOODS] list have another format than those in e.g. [ITEMS1], and I couldn't make the bombs appear in the inventory interface

And where are the picures stored? In some texturefile?
 
Ah, I see what you mean.
You can kinda cheat though. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

Create a new items picture group:
First copy/paste the [goods] block and then change it so it looks like this:

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[ITEMS_GOODS]

sTextureName    = goods.tga

wTextureWidth  = 1024

wTextureHeight  = 512


;    goods pictures list

picture = itm1,128,256,256,384; was balls

picture = itm2,256,256,384,384

picture = itm3,512,256,640,384

picture = itm4,384,256,512,384; was bombs
; .....

picture = itm28,640,128,768,256; was leather<!--c2--></div><!--ec2-->

(you'll need to change the good name into an itmX name for each entry).

Then set your new item's group to items_goods and picindex to whatever the new index is (in this case 4).

It's clumsy because it requires adding that whole new entry to pictures.ini, but it's IMO easier than rewriting all the item picture finding code to support other picture types. :
 
They're in a multiple pic texture file and are called by file and number, IIRC...

This is what the files look like:

<img src="http://www.ganotherapyusa.com/extras/items_st.jpg" border="0" class="linked-image" />

They are in Pirates of the CaribbeanRESOURCETexturesINTERFACES and the textures are named "items1.tga.tx" &tc...

Each item in the texture has a position and when it is called will display where needed... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> Been so long since I've been in this code, I can't recall precisely how <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> but I think that's it...

The images above are ones I put together for my sneaky trader...

IMO, the stuff you are making for this mod should probably be considered contraband... I wonder if you can team up with Alan, who's making "back rooms" all over the place and get a "secret room" setup for the merchants - where they can deal with this kind of item. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
(NB that my post above does not require any texture file work, just editing the resiniinterfacepictures.ini)

If you want a _custom_ icon, now...then you'd want to make a new items texturesheet.
 
But it's just plain easier to find the link corresponding to the existing pic - if that can be figured out! Like I said, I haven't been in this section of the code in quite some time, but I'll take a closer look at it to see if I can find the bombs pic and the link. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/keith.gif" style="vertical-align:middle" emoid=":keith" border="0" alt="keith.gif" /> <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" />
 
The problem is that, as CCC says, item pics are accessed strangely.

Instead of the item's picture _name_ and the texture page being stored in the item define, the item's _number_ and the page are stored, and then when the game goes to get the picture name, it concatenates "itm" and the number, to get the picture name.
so you have
itm.texture = items5 or whatever
itm.pic = 12

and from that the game uses the picturename itm12.

Conversely goods' picture names are the good's name, i.e. "bombs" instead of good3.

So if you use itm.pic = "bombs" the resultant picture name will be "itmbombs" which is worse.

So either we need to rewrite the item picture code to actually use names rather than this weird method, or we need to set up an items page with item picture names in that (itmXX) form, to be usable by existing code.


Now, because I like IDs rather than indices, I'm actually not averse to rewriting that code. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
Ah, I see, so finding the correct itm# will not work with the GOODS... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/mybad.gif" style="vertical-align:middle" emoid=":facepalm" border="0" alt="mybad.gif" />

Well, you see what I did with the array above - they're all new pics except for a couple of existing ones, the sword, ship, and pistol. Do you think I could make up a pic that can be accessed by the code that CCC needs to use? I can't imagine it would be difficult. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/huhh.gif" style="vertical-align:middle" emoid=":eek:k" border="0" alt="huhh.gif" />
 
Yep, that'd work fine.
If CCC's happy with using the goods images, just the above INI addition is necessary; but for new, custom, goods images, yours is the way. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
I do not mind doing retexturing jobs like this! So if you need me, just ask! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
<b>Catalina</b>, are you implying you *made* the above pictures? They're so beautiful, are they in the build ? Or can we get them somehow?
 
Yes, I did make them, they're for my Sneaky Trader mod, the development of which I set aside to help get Build 12 released.

I'm going to get back into it now, but the basic premise was that you should be able to buy lockpicks and prybars and all sorts of "stolen" or otherwise illegal merchandise from the Sneaky Trader... He's a walking trader - and rather like a glib used car dealer trying to sell you a piece of junk, you might not be able to trust him - OR you might just get a gem you will be very happy to own!

If I can get the mod to work the way I want, there will be several versions of his model - looking like a real "handsome Harry", looking beat up, or looking absolutely shredded (by dissatisfied customers, ha!)... And he'll have differing dialog so you won't get too much repetition and you'll never know what he'll say.

But yes, those images were made by me. I did or modified all except the sword, pistol, and ship. I also have a `four-section` "buried treasure" map you can get from him... Heh...

Should be fun! I'll post something later on that will give an update as to what's happening with it... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
Speaking of secret locations, I realized there's a trapdoor, a proper door that was probably meant to be "openable," in the small store model. It's under the stairs. It has its own tiny door picture for the area, instead of the same sheet as the rest of the floor, and there's a tiny 3d handle ring modeled onto it, plus it's right by a locator. So there we have it.
 
I'm doing all I can with retexturing locations, but I really want some place remodelled. Like a blacksmith's shop...

Back to the Task at Hand: So it is an icon for a "personal item" grenade and not a "trade item" you need, right? Those grid "items" pictures are the way to go. There are blank spaces in some of them, or some spaces you could cover up because they aren't used (one of the first two has text on them for some dead game features).

...you could download my new guns from the ftp, and use my items9 graphic. It has only the first space used, and I'm hoping no one doubles up and makes a new one with the same name for something else.
 
<!--`QuoteBegin-CatalinaThePirate`+--><div class='quotetop'>QUOTE(CatalinaThePirate)</div><div class='quotemain'><!--QuoteEBegin-->I do not mind doing retexturing jobs like this!  So if you need me, just ask!  :onya[/quote]
You may come to regret that offer <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" />

Noo, just kidding, thank you very much, highly apreciated <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" /> While you are very talented with pictures I suffer from the technician's disregard for looks ("never mind how the sword looks as long as it kills"), so I tend to pay not enough attention to graphics <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/oops3.gif" style="vertical-align:middle" emoid=":eek:ops2" border="0" alt="oops3.gif" />

Right now I have followed Nathan's "kind of cheating" advice (works fine, thanks <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" /> ) and use goods pictures for some weapons: bombs for grenades, balls for cobblestones, oiljars for combustibles... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> It would of course look very much better if you could do some proper pictures, so if you don't mind I'll send you the mod once it's working for a possible facelifting : <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/pirate3.gif" style="vertical-align:middle" emoid=":p2" border="0" alt="pirate3.gif" /> before <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/modding.gif" style="vertical-align:middle" emoid=":modding" border="0" alt="modding.gif" /> after <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" />

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> I think we should anyway sooner or later exchange, combine and assemble all the modprojects that are currently floated around here, cause I think they would go together exceedingly well: Alan's and mine new locations, Cat's sneaky trader, Nathan's jump and fly stuff, the new "subversive" weapons and a "stealthy thief" mod I am working on. Together they would make a nice stealth and crime `add-on`. A game within the game, something like "Caribbean Thief", "No Pirate lives forever" or "Splinter Shell" <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
<!--`QuoteBegin-CouchcaptainCharles`+--><div class='quotetop'>QUOTE(CouchcaptainCharles)</div><div class='quotemain'><!--QuoteEBegin--><!--`QuoteBegin-CatalinaThePirate`+--><div class='quotetop'>QUOTE(CatalinaThePirate)</div><div class='quotemain'><!--QuoteEBegin-->I do not mind doing retexturing jobs like this!  So if you need me, just ask!  :onya[/quote]
You may come to regret that offer <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/dev.gif" style="vertical-align:middle" emoid=":d:" border="0" alt="dev.gif" /> [/quote]Heh, I doubt that! <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" />

<!--`QuoteBegin-CouchcaptainCharles`+--><div class='quotetop'>QUOTE(CouchcaptainCharles)</div><div class='quotemain'><!--QuoteEBegin-->It would of course look very much better if you could do some proper pictures, so if you don't mind I'll send you the mod once it's working for a possible facelifting :    :p2  before  :modding  after <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile2.gif" style="vertical-align:middle" emoid=":))" border="0" alt="smile2.gif" /> [/quote]Absolutely, send 'em on! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />

<!--`QuoteBegin-CouchcaptainCharles`+--><div class='quotetop'>QUOTE(CouchcaptainCharles)</div><div class='quotemain'><!--QuoteEBegin--> <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" />  I think we should anyway sooner or later exchange, combine and assemble all the modprojects that are currently floated around here, cause I think they would go together exceedingly well:[/quote]Good idea, I was thinking that, myself, and it would be very cool to mesh it all together into a real "syndicate"... Hee hee, "Splinter Shell"! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/laugh.gif" style="vertical-align:middle" emoid="xD:" border="0" alt="laugh.gif" />
 
<!--`QuoteBegin-CatalinaThePirate`+--><div class='quotetop'>QUOTE(CatalinaThePirate)</div><div class='quotemain'><!--QuoteEBegin-->[Absolutely, send 'em on!  :onya
[/quote]
Great, thank you <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> I'll convert them to the latest Build12 (excellent job BTW <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" /> ) and do a few finishing touches next week.
 
My pleasure, CCC... <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
Back
Top