What is the hex address for...

Discussion in 'Modding and Scripting Support' started by Cloaked Figure, Jul 13, 2009.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. Cloaked Figure

    Cloaked Figure New Member

    Messages:
    103
    Likes Received:
    0
    Joined:
    Oct 17, 2008
    The ART for how an item looks in your inventory? In the protoediting files they simply highlight all the 'visual' hex addresses, but don't clarify which ones are for what.

    Furthermore, how can I know what the 'hex' is for an art that is unused in the game? For example that funky pistol with the long trigger that you can see in Art Viewer, how can I find out the 'hex number' that I should put on my new proto to give it that ART in the inventory?

    I didn't know whether to post this as a new thread, or as a question in the game engine hacks thread. Apologies if I should have done that.

    I hope my question isn't too hard to understand...

    Thanks.
     
  2. theorel

    theorel New Member

    Messages:
    95
    Likes Received:
    0
    Joined:
    Apr 29, 2008
    Hope I'm not too late to answer this...
    Hex address for weapons, inventory: 184
    You'll also wanna do 1C6 (that's the wielded art).
    Just for reference:
    48 is ground
    147 I think is Schematic art(the little picture when it's part of a recipe)
    18C is the which art the character uses.

    Now the number to use to get art is a little more complicated:
    First it's gotta be in the item_inven.mes(I'm not sure exactly which art file you're referring to).
    Okay, so you've got 4 2-digit hex numbers.
    So, first take the item type and multiply by 2(if it's a pistol, item type is 120(pistols start at 120) x2 gets 240). Now drop the 0 and convert to hex. (so 24->18). Best to think of it as 180 in my opinion. Okay this number goes in the first 2 blocks like so: 80 x1 Where x should be left as whatever it was originally. I never did figure out what it was.

    Alrighty, Now you need the 3rd digit(supposing you wanted i_pistol06, it's index is 125, so the 3rd digit is 5). multiply that by 2(we get 10). turn to hex, put in block 3. (0A for this pistol). Leave the 4th block alone(I believe it determines where to get the art from, i.e. items folder in this case, and 60 for me).

    So end result for this guy should looks something like 80 11 0A 60.

    If you actually wanted a pistol, probably the only thing to change will be the 0A to some other number.

    Make sure you change 18C as well, otherwise it'll be changing art when you equip it, to something that probably doesn't match.

    Note: These addresses are for items with no scripts attached, attaching scripts or spells or something changes the address.
    Also, I didn't check what art pistol_07 was, I just chose it as an arbitrary example.
     
Our Host!