Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > Developer Discussion > XML modification help.
User Name
Password

Reply
 
Thread Tools Display Modes
Old 08-17-2017, 07:40 PM   #1
finchy
A Gray Wolf
 
Join Date: Apr 2015
Posts: 5
Default Inventory adjustment

Hello,

I am trying to adjust a few items on the inventory window on a custom UI i've been using where the creator hasn't updated in awhile. I will do my best to explain, but i'm very new to this whole thing, so please bare with me.


The first thing I am trying to change is in the stats window, being able to show the 2 AC numbers, mitigation and evasion. The current stats page of the UI i'm using only shows the single AC number prior to the update.

Using the default inventory.xml file i simply copied and pasted that section to overwrite the section for AC. Below is a copy/paste of that.


The first piece below is directly from the default EQUI_Inventory.xml file:

<Label item="IWS_CurrentMitigation">
<EQType>22</EQType>
<RelativePosition>true</RelativePosition>
<Location>
<X>58</X>
<Y>0</Y>
</Location>
<Size>
<CX>55</CX>
<CY>14</CY>
</Size>
<Text>0</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<NoWrap>true</NoWrap>
<AlignCenter>false</AlignCenter>
<AlignRight>true</AlignRight>
<AlignLeft>false</AlignLeft>
<TooltipReference>Mitigation: Chance to take less melee damage</TooltipReference>
</Label>
<Label item="IWS_ACDivider">
<RelativePosition>true</RelativePosition>
<Location>
<X>115</X>
<Y>0</Y>
</Location>
<Size>
<CX>5</CX>
<CY>14</CY>
</Size>
<Text>/</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<NoWrap>true</NoWrap>
<AlignCenter>false</AlignCenter>
<AlignRight>false</AlignRight>
</Label>
<Label item="IWS_Evasion">
<EQType>403</EQType>
<RelativePosition>true</RelativePosition>
<Location>
<X>120</X>
<Y>0</Y>
</Location>
<Size>
<CX>55</CX>
<CY>14</CY>
</Size>
<Text>0</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<NoWrap>true</NoWrap>
<AlignCenter>false</AlignCenter>
<AlignRight>false</AlignRight>
<AlignLeft>true</AlignLeft>
<TooltipReference>Evasion: Chance to avoid melee damage</TooltipReference>



This second section is directly out of the same file, but from the custom UI i've been using:

<Label item="IWS_CurrentArmorClass">
<EQType>22</EQType>
<RelativePosition>true</RelativePosition>
<Font>2</Font>
<Location>
<X>80</X>
<Y>0</Y>
</Location>
<Size>
<CX>75</CX>
<CY>14</CY>
</Size>
<Text>0</Text>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<NoWrap>true</NoWrap>
<AlignCenter>false</AlignCenter>
<AlignRight>true</AlignRight>
<AlignLeft>false</AlignLeft>


After I copied the first part here to overwrite the second section. I saved it, and reloaded the UI. Apparently it didn't like it because it broke the entire UI and set every window to default, with no custom anything.

I'm sure i've completely fubared this, but hoping that someone could point me in the right direction on how to correct this? If i need to provide anything extra please let me know.


Thanks for any help that can be provided.
finchy is offline   Reply With Quote
Old 08-18-2017, 01:35 AM   #2
WhiteWolf
A Ghoul
 
Join Date: Aug 2003
Posts: 13
Default

The part to look at is EQType. 22 is Mitigation, 403 is Evasion. So you'll need to make another entry like the current one, and change <EQType>22</EQType> to <EQType>403</EQType>. Then make adjustments to the Location X and Y settings so they're not on top of each other. You might want to change the label for the current Mitigation one, and have a separate label for the Evasion one. And finally, somewhere (probably near the bottom) there's a section with <Pieces>. You'll want to add your Evasion one there, and rename the Mitigation one to your new label if you did that.

Edit: And, for future reference, this page is super helpful.

Double edit: Also, when doing something breaks the UI back to Default, check the UIErrors log in the base directory for EQ.

Last edited by WhiteWolf : 08-19-2017 at 02:33 AM. Reason: Fixed the link destination
WhiteWolf is offline   Reply With Quote
Old 08-19-2017, 01:04 AM   #3
finchy
A Gray Wolf
 
Join Date: Apr 2015
Posts: 5
Default

I appreciate the help. Almost all of your post didn't really make sense to me, specially the youtube video, but the part about the pieces thing was the key. I just had to add in the new pieces, saved it and it worked!

Thanks again.
finchy is offline   Reply With Quote
Old 08-19-2017, 02:32 AM   #4
WhiteWolf
A Ghoul
 
Join Date: Aug 2003
Posts: 13
Default

Youtube video? Oh ffs....my clipboard bugged out on me, it seems. I gave the wrong link :B
http://www.eqinterface.com/forums/s...ead.php?t=18784 is what I meant to link to!

Anyway, what I meant was right at the very beginning of each section is a part that says <EQType>
Quote:
<Label item="IWS_CurrentMitigation">
<EQType>22</EQType>
Quote:
<Label item="IWS_Evasion">
<EQType>403</EQType>

In the new (proper) link I provided, there's a list for every EQType you can use, and pretty much everything the Interface displays references an EQType.
WhiteWolf is offline   Reply With Quote
Old 08-19-2017, 02:09 PM   #5
finchy
A Gray Wolf
 
Join Date: Apr 2015
Posts: 5
Default

haha, no worries. Thought i was getting trolled, i was super confused! Again I appreciate the help, simply adding the <Pieces> corrected the issue so now i see both ac and atk numbers along with velocity!

Last edited by finchy : 08-19-2017 at 03:14 PM.
finchy is offline   Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 07:22 PM.


vBulletin Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© MMOUI