[Custom Art]Creating a Partial Hue Item

Discussion in 'Tutorials' started by otimpyre, Mar 10, 2011.

  1. otimpyre

    otimpyre Sorceror

    Joined:
    Apr 3, 2003
    Messages:
    2,003
    Likes Received:
    247
    Creating a Partial Hue Item Tutorial By:Otim Pyre 3/10/2011

    Foreward: A partial hue item is an image in Ultima that when the [set hue ### command is used upon will only hue a certain area. Examples of this are the Dye tub and banners. There are many items in ultima that use this special flag in the tiledata.mul And it can be very useful. There are items in ultima that should have this flag. But, it wasn't ever thought of during the creation of some items. A perfect example of this is a rose. There several roses in Ultima if you try to hue one of these you hue the entire rose including the stem. I will be teaching you how you can make a rose when hued will only hue the flower part and not the stem. This technique could be used to make the blade of a sword hue while leaving the hilt wooden ect...

    First of all we start with the image we want to make partial hue which I am using RoseofTrinsic 0x234B 9035
    Using UO-Fiddler I extract it or using InsideUO I can right click Copy> and then paste in my art program.

    PartialHueRose.png

    First of all in our graphics program we need to duplicate> layer>

    Then on the new layer select the color true black and with a small brush slowly paint away the stem. Being careful not to touch the purple part of the flower.
    PartialHueRose1.png This is as seen on the new layer above our original image.
    now we want to use our magicwand with tolerances> set at 0 this will select the black area only. Then we edit> Cut>

    This reveals the stem on the layer below
    PartialHueRose.png

    Now on the new layer with the flower. We use our wand again on the area we cut out and Select> Invert> we now have a selection around the rose.

    Now we go to color> Colorize> and drop saturation> to 0 this makes our rose grey then we got to layers> merge all or flatten the image giving us the final product. We save it as .bmp
    PartialHueFinal.png

    Now with UO Fiddler we go to items. Find the roseoftrinsic and rightclick on the image & replace with our new rose. Rightclick save and it will export you art.mul and art.idx to UO fiddlers program folder. We back up our original art.mul & art.idx and then Replace the art.mul & art.idx in our UO Directory with the ones from our UO Fiddler folder . The art aspect is finished.

    Now the magic part. Is in our tiledata.mul we go into UO fiddler and click on the tab tiledata.mul and scroll down till we see the roseoftrinsic making sure the itemid is correct 0x234B 9035 then in our flags we check the box for partial hue. Now we click the SaveChanges Button Then we click Save TileData Button at top of UO Fiddler it saves a copy to UO Fiddler progam file. Then we backup our tiledata.mul in our UO Directory and replace with the Tiledata.mul from UO Fiddlers program folder. **TIP**There is a setting to save directly on changes under MISC tab in UO Fiddler

    Load up your server go into the game [add item 9035 then [set hue whatever on it.
    YourWelcome.png

    If you want to create roses in the unused spots of your art.mul thats fine too. But, you need to make a script for the rose. You could copy the rose of trinsic script and just change the names and the itemids to yours. To have a variety of roses you could script one to be random hue from a list of pre chosen hues. Or script several roses named differently with a preset hue. Have it as loot on a special monster, make it dyeable? various things you could do with this rose.
     
    Sareus, jack-0, Pure Insanity and 2 others like this.
  2. Pachacuti

    Pachacuti Traveler

    Joined:
    Sep 13, 2010
    Messages:
    84
    Likes Received:
    0
    Hey man, I am looking for this for AGES. I saw no comments here so I'll leave mine, THANK YOU SO MUCH.

    I just wanted you to know that your work is very appreciated!
     
  3. zizizi

    zizizi Sorceror

    Joined:
    Dec 22, 2006
    Messages:
    1
    Likes Received:
    0
    Perfect, was what I was looking for!

    Thank you very much
     
  4. john burns

    john burns Sorceror

    Joined:
    May 16, 2011
    Messages:
    258
    Likes Received:
    11
    Thanks. I am thinking of many uses for this script right now. Man, the deco i can think of!
     
  5. Vlek

    Vlek Sorceror

    Joined:
    Dec 7, 2008
    Messages:
    165
    Likes Received:
    11
    Does it matter what bit we save it as? I'm going to try 24 bit bmp and see how that goes. Also, does this work on multi's?
     
  6. Pachacuti

    Pachacuti Traveler

    Joined:
    Sep 13, 2010
    Messages:
    84
    Likes Received:
    0
    I don't think it would work on multis Vlek. That's why EA had to do a lot of changes to turn boats into huable.

    I am almost sure it works on animations, though, what is VERY useful in my opinion.
     
  7. Apocolypse

    Apocolypse Sorceror

    Joined:
    Oct 14, 2003
    Messages:
    112
    Likes Received:
    0
    if i take all my animation frames and just make the color grey on say the animations armor, will i be able to just dye the armor leaving the rest of the animation in its original color? Just a question =) not sure how we would set it as a partial hue anim though..
     
  8. otimpyre

    otimpyre Sorceror

    Joined:
    Apr 3, 2003
    Messages:
    2,003
    Likes Received:
    247
    I avoid all mobile animations and support of them. My tutorial is referring to static animation only. But the GM robe does something to the effect you are referring too.
     
  9. Zinn

    Zinn Wanderer

    Joined:
    Nov 14, 2012
    Messages:
    13
    Likes Received:
    0
    Hey. Just wanted to drop a quick thank you. I am kinda new to runUO and this post taught me a lot about file manipulation. Thanks again :) I was unable to test it because for some reason when i type [add 0x234B it doesn't find it. I still have a lot to figure out.
     
  10. otimpyre

    otimpyre Sorceror

    Joined:
    Apr 3, 2003
    Messages:
    2,003
    Likes Received:
    247
    Every item has a 0x0id and a #####id fiddler shows these at the bottom of screen. Can also add by that number. For example [add 0x01234 then it will have a actual number as well [add 8675
     
  11. Vorspire

    Vorspire Knight

    Joined:
    Jan 25, 2005
    Messages:
    12,880
    Likes Received:
    684
    [Add Static 0x1234
     
  12. otimpyre

    otimpyre Sorceror

    Joined:
    Apr 3, 2003
    Messages:
    2,003
    Likes Received:
    247
    Oops you are quite right was caught up explaining the oxo and the #id yes [add static 0x0123 & [add static 12345 ect..
     
  13. David Chester

    David Chester Sorceror

    Joined:
    Jul 22, 2013
    Messages:
    32
    Likes Received:
    2
    Is it possible to have one area of an item dyeable with a regular cloth tub and another area dyeable with a furniture tub? For example a bed.
     
  14. Vorspire

    Vorspire Knight

    Joined:
    Jan 25, 2005
    Messages:
    12,880
    Likes Received:
    684
    If the bed comes in different pieces, then yes, otherwise hues are applied to the entire piece of single artwork.
     
  15. otimpyre

    otimpyre Sorceror

    Joined:
    Apr 3, 2003
    Messages:
    2,003
    Likes Received:
    247
  16. David Chester

    David Chester Sorceror

    Joined:
    Jul 22, 2013
    Messages:
    32
    Likes Received:
    2
    Thanks. I got that from your initial post but the video helps and it served as a reminder for me to look into it :)

    Unfortunately, beds are split by top end or bottom end or quarters, so I guess I would have to split each graphic into their components as new tiles and then reassemble them in code. A job for another day perhaps...
     
  17. maybeshewill

    maybeshewill Sorceror

    Joined:
    Nov 6, 2010
    Messages:
    401
    Likes Received:
    65
    I changed the image of an item and walls changed from impassable to passable ;(

    any idea
     
  18. Vorspire

    Vorspire Knight

    Joined:
    Jan 25, 2005
    Messages:
    12,880
    Likes Received:
    684
  19. maybeshewill

    maybeshewill Sorceror

    Joined:
    Nov 6, 2010
    Messages:
    401
    Likes Received:
    65
    terrainbug.png

    Finally i changed the item graphic, now i have a terrain bug -_-




    im almost 100% sure that the files i changed are the same i had before (i have few different uo installed) so i dont get why terrain tiles get messed up now
     
    #19 maybeshewill, Oct 12, 2017
    Last edited: Oct 12, 2017
  20. Vorspire

    Vorspire Knight

    Joined:
    Jan 25, 2005
    Messages:
    12,880
    Likes Received:
    684
    Make sure your new tile has the Background and Surface flags set in TileData
     

Share This Page