lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > XML modification help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 08-08-2011, 01:36 AM
Chaly's Avatar
Chaly Chaly is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Aug 2011
Posts: 6
Craft Panel - lf XML Editing

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
Attached Thumbnails
Click image for larger version

Name:	broken_default_craft_masterpage.JPG
Views:	1378
Size:	43.4 KB
ID:	245  

Last edited by Chaly : 08-08-2011 at 01:45 AM.
Reply With Quote
  #2  
Unread 08-08-2011, 03:20 PM
Chaly's Avatar
Chaly Chaly is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Aug 2011
Posts: 6
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>
Reply With Quote
  #3  
Unread 08-08-2011, 06:33 PM
D.H1cks's Avatar
D.H1cks D.H1cks is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2007
Posts: 162
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"?
Reply With Quote
  #4  
Unread 08-09-2011, 12:05 AM
Chaly's Avatar
Chaly Chaly is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Aug 2011
Posts: 6
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

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
Attached Files
File Type: txt client_general.dat.craft_xml.txt (5.2 KB, 1374 views)

Last edited by Chaly : 08-09-2011 at 01:33 AM.
Reply With Quote
  #5  
Unread 08-09-2011, 06:07 AM
daimon's Avatar
daimon daimon is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Aug 2007
Location: Finland
Posts: 466
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.
__________________
~·~ DaimonUI ~·~
avatar by Humon
Reply With Quote
  #6  
Unread 08-09-2011, 06:14 AM
D.H1cks's Avatar
D.H1cks D.H1cks is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2007
Posts: 162
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.
Reply With Quote
  #7  
Unread 08-09-2011, 04:39 PM
Chaly's Avatar
Chaly Chaly is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Aug 2011
Posts: 6
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..
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..

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.
Attached Thumbnails
Click image for larger version

Name:	chalys_fixedcraft.jpg
Views:	1242
Size:	118.9 KB
ID:	251  Click image for larger version

Name:	chalys_fixedcraft2.jpg
Views:	1275
Size:	104.0 KB
ID:	252  
Attached Files
File Type: xml chalys_fixedcraft.xml (11.9 KB, 1487 views)

Last edited by Chaly : 08-09-2011 at 05:00 PM.
Reply With Quote
  #8  
Unread 08-10-2011, 01:49 PM
The Old One The Old One is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2010
Posts: 54
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
Reply With Quote
  #9  
Unread 08-10-2011, 03:44 PM
Chaly's Avatar
Chaly Chaly is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Aug 2011
Posts: 6
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) 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
Attached Files
File Type: txt client_general.dat.assets_xml.txt (71.0 KB, 1310 views)

Last edited by Chaly : 08-10-2011 at 04:17 PM.
Reply With Quote
  #10  
Unread 08-11-2011, 10:39 AM
The Old One The Old One is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2010
Posts: 54
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.
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Craft Panel Element ID The Old One General Authoring Discussion (L) 0 12-06-2010 05:35 PM
Craft Panel corhub XML modification help (L) 3 12-04-2010 10:18 PM
New craft panel in November The Old One Preview Server (L) 9 11-01-2010 08:03 PM
Craft Item backdrop Aldar Interface Requests (L) 1 06-19-2007 11:40 AM
Editing this ui OuZí Interface Help (L) 1 05-12-2007 05:53 PM


All times are GMT -5. The time now is 04:41 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui