LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   XML modification help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=23)
-   -   Craft Panel - lf XML Editing (https://www.lotrointerface.com/forums/showthread.php?t=1586)

Chaly 08-08-2011 01:36 AM

Craft Panel - lf XML Editing
 
1 Attachment(s)
Hi there,

I'm currently modifying my interface - based on DAIMONUI.
To say it first (and at the wrong place...) : your UI is wonderful, there are just a few things I wanted to change starting with an own semi-transparent graphic for your huge bottombar.

I finally reached the point where I wanted to fix the german craft panel:
Some of the text labels in the default interface are broken, the width of those labels is too small to fit the textsize - as shown in the image.

I already found and fixed all broken labels except one..
I highlighted the label I'm currently looking for and cannot find it in the Old Man's craft UI or Daimon's craft panel extension.
The english text for red marked textlabel shown in the screenshot should be something like "Critical success produces".

I guess it must be inside Craft_Recipe_CriticalItem, but I don't find it ..
Code:

<PanelFile ID="ID_UISkin_Craft_Window">
  <Element ID="Craft_Window">
    <Element ID="CraftRecipe_MasterPage">
      <Element ID="Craft_Recipe_CriticalItem">
        <Element ID="ItemDisplay_ShortIcon">
          <Element ID="ItemDisplay_Icon">
          </Element>
        </Element>
      </Element>
    </Element>
  </Element>
</PanelFile>

Maybe someone can help or tell me the xml element for this label?

Cheers,
Chaly

Chaly 08-08-2011 03:20 PM

So I finally cleaned up my XML a bit - still without success.

As my ID_UISkin_Craft_Window code isn't that long right now I paste the complete section in hope for someone who has an idea how I can modify the textlabel marked in my screenshot:

Code:

<PanelFile ID="ID_UISkin_Craft_Window">
  <Element ID="Craft_Window"            X="5"    Y="122"  Width="807" Height="570">   
    <Element ID="CraftWindow_BaseBox"      X="0"    Y="18"    Width="807"  Height="557">   
    </Element>
    <Element ID="Craft_RecipePage"        X="383"  Y="27"    Width="440" Height="545">   
      <Element ID="Craft_Recipe_CooldownDuration"      X="50"  Y="59"  Width="380" Height="18">
      </Element>
      <Element ID="Craft_Recipe_NameText"          X="48"  Y="7"  Width="265" Height="40">
      </Element> 
      <Element ID="Craft_Recipe_EarnedPointsText"      X="50"  Y="43"  Width="380" Height="18">
      </Element>
      <Element ID="Craft_Recipe_Item"            X="10"  Y="10"  Width="32"  Height="32">
        <Element ID="CraftRecipe_Panel"            X="0"  Y="97"  Width="495"  Height="504">
          <Element ID="Craft_Recipe_Item"            X="10"  Y="10"  Width="32"  Height="32">
            <Element ID="ItemDisplay_ShortIcon"          X="0"  Y="0"  Width="32"  Height="32">
              <Element ID="ItemDisplay_Icon"              X="0"  Y="0"  Width="32"  Height="32">
                <Element ID="ItemDisplay_SelectedOverlay"        X="0"  Y="0"  Width="32"  Height="32">
                </Element>
                <Element ID="ItemDisplay_RolloverOverlay"        X="0"  Y="0"  Width="32"  Height="32">
                </Element>
                <Element ID="ItemDisplay_CooldownOverlay"        X="0"  Y="0"  Width="32"  Height="32">
                </Element>
                <Element ID="ItemDisplay_IASlotOverlay"        X="0"  Y="0"  Width="32"  Height="32">
                </Element>
                <Element ID="ItemDisplay_OutOfRangeOverlay"      X="20"  Y="4"  Width="12"  Height="12">
                </Element>
                <Element ID="ItemDisplay_XPBarField"          X="0"  Y="28"  Width="32"  Height="4">
                </Element>
                <Element ID="ItemDisplay_PendingOverlay"        X="0"  Y="0"  Width="32"  Height="32">
                </Element>
                <Element ID="ItemDisplay_ElligibleOverlay_StateBlocker"  X="0"  Y="0"  Width="32"  Height="32">
                  <Element ID="ItemDisplay_ElligibleOverlay"      X="0"  Y="0"  Width="32"  Height="32">
                  </Element>
                </Element>
                <Element ID="ItemDisplay_LockedOverlay"        X="0"  Y="0"  Width="32"  Height="32"> </Element>
                <Element ID="ItemDisplay_QuantityOverlay"        X="0"  Y="15"  Width="32"  Height="12"> </Element>
                <Element ID="ItemDisplay_BrokenOverlay"        X="0"  Y="0"  Width="32"  Height="32"> </Element>
                <Element ID="ItemDisplay_IANeedsIdentificationOverlay"  X="0"  Y="0"  Width="32"  Height="32"> </Element>
                <Element ID="ItemDisplay_GhostedOverlay"        X="0"  Y="0"  Width="32"  Height="32"> </Element>
                <Element ID="ItemDisplay_UnusableOverlay"        X="0"  Y="0"  Width="32"  Height="32"> </Element>
                <Element ID="ItemDisplay_IANeedsReforgeOverlay"    X="0"  Y="0"  Width="32"  Height="32"> </Element>
              </Element>
            </Element>
          </Element>
        </Element>
      </Element>
      <Element ID="CraftRecipe_Panel"    X="0"  Y="97"  Width="438"  Height="378">
        <Element ID="CraftRecipe_MasterPage" X="0" Y="249" Width="440" Height="122">
          <Element ID="Craft_Recipe_CriticalField" X="24" Y="0" Width="440" Height="40">
            <Element ID="Craft_Recipe_CriticalItem" X="0" Y="4" Width="332" Height="32">
              <Element ID="ItemDisplay_ShortIcon" X="0" Y="0" Width="32" Height="32">
                <Element ID="ItemDisplay_Icon" X="0" Y="0" Width="32" Height="32">
                </Element>
              </Element>
            </Element>
          </Element>
        </Element>
      </Element>
    </Element>
    <Element ID="Craft_NoProfessionField"    X="0"    Y="18"    Width="800" Height="380">   
      <Element ID="Craft_NoProfession_Text_Label"      X="48"  Y="195" Width="399" Height="151"> </Element> 
          <Element ID="Base_Box_Silver_BottomMid"        X="36"  Y="594" Width="866" Height="36"> </Element>
      <Element ID="Base_Box_Silver_BottomRight"      X="902"  Y="594" Width="36"  Height="36"> </Element>
      <Element ID="Base_Box_Silver_MidRight"        X="902"  Y="36"  Width="36"  Height="558"> </Element>
      <Element ID="Base_Box_Silver_Background"        X="36"  Y="36"  Width="918" Height="558"> </Element>
      <Element ID="Base_Box_Silver_TopRight"        X="902"  Y="0"  Width="36"  Height="36"> </Element>
      <Element ID="Base_Box_Silver_TopLeft"        X="0"  Y="0"  Width="36"  Height="36"> </Element>
      <Element ID="Base_Box_Silver_TopMid"          X="36"  Y="0"  Width="866" Height="36"> </Element>
      <Element ID="Base_Box_Silver_MidLeft"        X="0"  Y="36"  Width="36"  Height="558"> </Element>
      <Element ID="Base_Box_Silver_BottomLeft"        X="0"  Y="594" Width="36"  Height="36"> </Element>
    </Element>
    <Element ID="Crafting_Base_Box_TitleBar"  X="87"    Y="-11"  Width="251" Height="45">   
    </Element>
    <Element ID="Craft_CloseButton"      X="783"  Y="22"    Width="16"  Height="16">   
    </Element>
    <Element ID="Craft_ProfessionPanel"    X="0"    Y="21"    Width="387"  Height="557">
      <Element ID="Craft_Prof1Tab"      X="5"    Y="4"    Width="128"  Height="29">
        </Element>
      <Element ID="Craft_Prof2Tab"      X="130"  Y="4"    Width="128" Height="29">
        </Element>
      <Element ID="Craft_Prof3Tab"      X="255"  Y="4"    Width="128" Height="29">
        </Element>
      <Element ID="Craft_Prof1Page"      X="8"    Y="5"    Width="387"  Height="550"> </Element>
      <Element ID="Craft_Prof2Page"      X="8"    Y="5"    Width="387"  Height="550"> </Element>
      <Element ID="Craft_Prof3Page"      X="8"    Y="5"    Width="387"  Height="550"> </Element>
    </Element>
    <Element ID="Craft_HideOnExecuteText"    X="401"    Y="500"  Width="141" Height="20"> </Element>   
    <Element ID="Craft_HideOnExecuteButton"  X="389"    Y="504"  Width="10"  Height="10"> </Element>   
  </Element>
</PanelFile>


D.H1cks 08-08-2011 06:33 PM

Well, first it may be a problem since we don't have the latest skin definition data. However, have you tried: Element ID="Craft_Recipe_CriticalLabel"?

Chaly 08-09-2011 12:05 AM

1 Attachment(s)
Yep - unfortunately :(. I played around with the position and the width of
Craft_Recipe_CriticalItem
Craft_Recipe_CriticaLabel
Craft_Recipe_CriticalChanceText

It seems that CriticalItem is the result icon. The label and chanceText should be 'critical chance: 4%'.
Sadly I didn't figure out the element name for the criticalItemText or the resultLabel.
As the interface seems to have some algorythm to position the items not described in the XML file automatically,
I moved the three known elements around and even set their width to strange sizes - without success.

An extraction of the default UI would be great, but I only found an DDO tool for graphics yet :( (evil thought... I know)

edit:
I finally played around with Craft_Recipe_CriticalField - the container that contains Recipe_CriticalLabel and CriticalItem.
I'm not able to move my missing label around except by moving the whole critcontainer..

I gave up trying it with the labels I know yet and extracted all elements containg "craft" from the client_general.dat.. After cleaning up the binary data I attach the list here, maybe it's helpfull. Please don't ask me how... it has something to do with 8.30am, I really have to go to work now, a hex editor I didn't use for 10 years (hXd) and ..erm.. excel :D

At least I found elements like
Craft_BuyNow_Ingredients
Craft_BuyNow_Ingredients_Label

They could be of help cleaning up the mess those buttons did to older UIs

daimon 08-09-2011 06:07 AM

Nice initiative to dig up the ID tags ;)

However I would advice you to wait a bit until we get the new art packs. They have promised to deliver those about the same time RoI will go live - that remains to be seen though.

That's why I haven't worked on my skins crafting panel for some time as the information is so outdated atm.

D.H1cks 08-09-2011 06:14 AM

Its also why I have not added a few panel to my skin editor. I am waiting, and hoping we get a nice update when RoI launches.

Chaly 08-09-2011 04:39 PM

3 Attachment(s)
Got it... finally - it was
Craft_Recipe_CriticaLabel
Craft_Recipe_CriticalChanceText


I'm sorry for posting another screenshot in german. I didn't modify the arangement of the default craft panel, so I hope you get an idea of what it looks like.. :rolleyes:
I included my XML so someone may try it out with the english localization.
The craftpanel was written using DaimonUI, but it should be easy to integrate it.


While messing around with the XML I figured out that most of the elements
kept their old name and just sometimes had to be in a new parent element.


That's the reason why I didn't try out every single label and shadow, but as shown in the screenshot the engine adjust them automatically.

I called it "fixedcraft" because my initial intention was just to fix the length of some labels that are broken in the default UI because of ignoring the longer strings in localized versions of Lotro.. :eek:

Note:
The tree view could be about 27px higher. The given values for the tree view are correct. I gave up trying to fix that, I think the "buy recipes now" button is the reason why the values aren't interpreted correctly.

The Old One 08-10-2011 01:49 PM

young upstart digging into stuff I missed while I'm moving and without my computer. [/sarcasm]
Very good work I was waiting for the new art pack to try fixing supercraft :D

Chaly 08-10-2011 03:44 PM

1 Attachment(s)
Thx, I hope it was somewhat helpfull. While speaking about young upstarts: today I had the ambition to somehow fix the background asset..
First I thought all of those panel assets are messed up, but some backgrounds are still working like
mail_base_home
itemAdvancement_inspect_background

Some hXd, notepad++ and regex replaces later (no excel tonight:cool:) I now have the list of what I think should be the complete asset list in client_general.dat

The backgrounds are still listed and if they aren't just disabled or not recognized by the XML interpreter of Lotro there should be a way to bring them back..

Unfortunately I didn't find figure it out yet :(

Edit - About that "art pack release" and those "hey, don't worry, you get it soon, erm.. with the next patch, erm... addon, erm... game" statements:
Probably like most of you I'm playing mmos for several years and I'm happy if an associate of the publisher is able to attend to our (UI builders) problems. But I gave up to trust in any release date until I didn't try everything to find a workaround - even if it's just for some -erm... days ;)

The Old One 08-11-2011 10:39 AM

Very good your hex skills are better than mine.
About waiting to fix SuperCraft on the art pack release it's not that I'm not editing the new panel (I even had the code to put the tabs on one row before it was out of beta) it's that my only problems with the new panel are minor and cosmetic.


All times are GMT -5. The time now is 05:12 PM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI