Talk:XMBML Coding

From PS3 Developer wiki
Revision as of 04:35, 11 October 2014 by Sandungas (talk | contribs) (experiment table)
Jump to navigation Jump to search

Tips and tools

  • An usefull trick to help documenting xml strings is to drag-and-drop all PS3 .xml files (from path dev_flash/vsh/resource/explore/xmb/) to notepad++. Then use the search function in notepad++ (ctrl+F) to search for a text string and click in "find all in all opened documents"

Suggestions, etc

  • The <View id>'s "root", "root_for_dex", "root_for_BDU", "tool_root", "shop_root", "shop_guest_root", "shop_staff_root", "root_arcade" refered as XMB enviroments is not an accurate definition, is an invented name, i have no idea if there is a more accurate definition in other parts of the firmware, documentation, whatever... if someone has a better idea please update the frontpage and erase this section here in talkpage --Sandungas (talk) 23:42, 23 January 2014 (EST)
  • The View ID "root" usually is refered as the identifyer of a group of items that will be loaded by retail XMB, but not always, e.g:
    • Retail XMB network column is built loading the "root" items of the file "category_network.xml" (there are no debug items in this file)
    • Debug XMB network column is built loading the "root" items of the file "category_network_tool2.xml" (there are no retail items in this file)


Automated XMB/XML navigation

Is posible to automatize the navigation of the cursor in XMB by sending commands from a plugin.sprx (and maybe other alternative ways)

This "navigation sequences" can be seen inside some plugins.sprx, and seems to be direct references to the structure of the XML files, is not clear where is the complete list of functions so by now this is only a messy list to take some notes

  • focus_category can be used with game, photo, video, etc... any XMB column
  • wait (e.g: 1000, 2000)
  • focus_segment_index seg_newvmc 0 (loads a segment from a .xml, then sets the value 0)
  • focus_segment_index seg_sdpsp 0.scroll_list -1 1000 (this is a complex sequence of actions)
  • open_list
  • yield

More detailed info in Explore plugin page

XML structure levels

XML tag levels Common tags
lv1 lv2 lv3 lv4 lv5 version id class key attr src
XMBML Yes No No No No No
View No Yes No No No No
Attributes Table No No No Yes No No
Pair No No No Yes No No
Items Query No No Yes Yes Opt Opt
Item No No Yes Yes Opt Opt