Editing String Viewer

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
__FORCETOC__
=Description=
=Description=
Is a feature available for non-retail PS3 models <!--exact models are unknown but for sure is non retail because the text string is named "msg_tool_string_viewer"-->
Is a feature only available for non-retail PS3 models <!--exact models are unknown but for sure is non retail because the text string is named "msg_tool_string_viewer"-->


Accesible from an icon at [[XMB]] category {{Icon category settings}} [Settings] > [String Viewer]
Accesible from an icon at [[XMB]] category {{Icon category settings}} [Settings] > [String Viewer]


Its position in settings category is defined by the '''settings_order''' 0x13 in [[category_setting_plugin]].sprx (In XMB is displayed as the last icon most at bottom of settings category)
His position in settings category is defined by the '''settings_order''' 0x13 in [[category_setting_plugin]].sprx (In XMB is displayed as the last icon most at bottom of settings category)


The name of the icon is loaded from [[category_setting_plugin]].rco
The name of the icon is loaded from [[category_setting_plugin]].rco
Line 13: Line 11:
The icon launches [[strviewer_plugin]].sprx module
The icon launches [[strviewer_plugin]].sprx module


There are 4 "xml object pages" inside [[strviewer_plugin]].rco that can be loaded by the .sprx (the samples below are a reduced version with only its '''name''' and the action triggered when '''onInit'''):
There are 4 "xml object pages" inside [[strviewer_plugin]].rco that can be called from the .sprx (this samples are a reduced version with only his '''name''' and wich action is triggered when '''onInit'''):
  <Page name="page_strviewer_lang"... onInit="event:native:/OnInitStrViewerLang"...
  <Page name="page_strviewer_lang"... onInit="event:native:/OnInitStrViewerLang"...
  <Page name="page_strviewer_plugin"... onInit="event:native:/OnInitStrViewerPlugIn"...
  <Page name="page_strviewer_plugin"... onInit="event:native:/OnInitStrViewerPlugIn"...
Line 19: Line 17:
  <Page name="page_strviewer"... onInit="event:native:/OnInitStrViewerDialog"...
  <Page name="page_strviewer"... onInit="event:native:/OnInitStrViewerDialog"...


String Viewer supports multilanguage. The page '''page_strviewer_lang''' contains a list of languages associated with letter codes, see: [[Talk:Languages]]
String Viewer supports multilanguage. The page '''page_strviewer_lang''' contains a list of languages asociated with letter codes, see: [[Talk:Languages]]


=Speculation=
=Speculation=
Maybe is posible to make visible the icon in some PS3 models by using a [[Button Combos|Button Combo]]
Maybe is posible to make visible the icon in some PS3 models by using a [[Button Combos|Button Combo]]
=Pre-retail firmwares=
In old firmwares can be seen how string viewer was loaded
{{Boxcode|code=<syntaxhighlight lang="xml">
<View id="seg_string_viewer">
<Attributes>
<Table key="StrViewer">
<Pair key="icon_rsc"><String>item_tex_ms_icon</String></Pair>
<Pair key="title"><String>String Viewer</String></Pair>
<Pair key="module_name"><String>strviewer_plugin</String></Pair>
<Pair key="module_action"><String>0</String></Pair>
</Table>
</Attributes>
<Items>
<Item  class="type:x-xmb/module-action" key="StrViewer" attr="StrViewer" />
</Items>
</View>
</syntaxhighlight>}}
<div style="float:right">[[File:String viewer usb error.jpg|400px|thumb|left|String Viewer error]]</div>
When adding this entry in a modern firmware and clicking in the icon, appears an error message asking for '''strviewer_cnf''' in dev_usb000
<br style="clear: both;" />
The file in path '''usb000/strviewer/strviewer_cnf''' needs to follow this format:
{{Boxcode|code=<syntaxhighlight lang="xml">Title = "Strviwer Pwned" path = "/strviewer/" file = "working_example"</syntaxhighlight>}}
And the loaded xml seems to be using the format inherited from the '''dev_flash/vsh/resource/silk/xai/widgets/informationboard/strings/[[Widgets#dev_flash.2Fvsh.2Fresource.2Fsilk.2Fxai.2Fwidgets.2Finformationboard.2Fstrings.2F|infob_<language>.xml]]''' where is required to follow this format:
{{Boxcode|code=<syntaxhighlight lang="xml">
<str id="msg_dtype_C">Lorem ipsum...</str><!--dtype="C"-->
<str id="msg_dtype_E">Lorem ipsum...</str><!--dtype="E"-->
<str id="msg_dtype_W">Lorem ipsum...</str><!--dtype="W"-->
<str id="msg_dtype_R">Lorem ipsum...</str><!--dtype="R"-->
<str id="msg_dtype_T">Lorem ipsum...</str><!--dtype="T"-->
<str id="msg_dtype_N">This is a notification</str><!--dtype="N"-->
<str id="msg_dtype_G">This is a botton notification </str><!--dtype="G"-->
<str id="msg_dtype_I">This simple text was automatically repeated several times and also added many asterisks of its own</str<!--dtype="I"-->
</syntaxhighlight>}}
The valid values for the <nowiki><!--dtype="C"--></nowiki> (C,E,W,R,T,N,G,I) are hardcoded inside strviewer_plugin.sprx
Test video:
{{#ev:youtube|vDxuIZ1EGFw}}
More info: http://www.psx-place.com/threads/string-viewer-and-decr-0-90fw-xmb-items-partially-working.17313
{{Reverse engineering}}<noinclude>[[Category:Main]]</noinclude>
{{Reverse engineering}}<noinclude>[[Category:Main]]</noinclude>
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)