Editing Qt Resource Container (QRC)

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:
== Description ==
[[Category:Software]]
QRC files ('''Q'''t '''R'''esources '''C'''ontainer) are located inside a QGL folder ('''Q'''t '''G'''raphics '''L'''ibrary) in path: '''dev_flash/vsh/resource/qgl''' with names: [[canyon.qrc]], [[earth.qrc]], [[icons.qrc]], [[icontex.qrc]], [[lines.qrc]], [[raf.qrc]], [[rhm.qrc]], and [[store.qrc]]. The contents of QRC files are compatible/generated with/by: [http://en.wikipedia.org/wiki/Qt_%28framework%29 Qt framework] and [http://en.wikipedia.org/wiki/OpenGL OpenGL]
location: /dev_flash/vsh/resource/qgl


The internal structure of QRC files can be clasifyed as one of the variants of a group of containers named: [[CXML Containers]]
== General format ==
QGL ('''Q'''t '''G'''raphics '''L'''ibrary) based in [http://en.wikipedia.org/wiki/Qt_%28framework%29 Qt framework] and [http://en.wikipedia.org/wiki/OpenGL OpenGL]


*QRC related firmware modules in '''dev_flashvsh/modules/''':
=== QRCC ===
**qglbase.sprx <--- generic
QRCC ('''Q'''t '''R'''esources '''C'''ontainer '''C'''ompressed)
**qgl_gaia_app.sprx <--- earth animation inside music player
**qgl_canyon_app.sprx <--- abstract animation inside music player
**custom_render_plugin.sprx


*Other stuff related with QRC:
QRC file ZLIB Compressed level 9.
**http://blog.us.playstation.com/2009/09/04/q-games-update-star-dust-dynamic-themes-our-favorite-little-tikiman/
**ps3 standalone visualizer app released by "Q games" (responsibles of XMB design): http://blog.us.playstation.com/2013/08/08/new-ps3-visualizer-app-from-q-games-out-tuesday/ and http://www.ps3hax.net/2013/08/q-games-releases-new-visualizer-music-app-for-ps3-high/


== QRC containers ==
*Example from 3.55 rhm.qrc:
'''Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F'''
'''00000000'''  <span style="background:#ff6666;">51 52 43 43</span> <span style="background:#6666ff;">00 00 28 00</span> <span style="background:#00ff00;">78 DA</span>                      QRCC..(.xÚ


=== icons.qrc & icontex.qrc ===
{| class="wikitable sortable"
*See: [[icons.qrc]] and [[icontex.qrc]] pages
|-
{{icons.qrc}}
| style="background-color:#515243; color:#FFFFFF;" |'''Name'''
{{icontex.qrc}}
| style="background-color:#515243; color:#FFFFFF;" |'''Offset'''
| style="background-color:#515243; color:#FFFFFF;" |'''Size'''
| style="background-color:#515243; color:#FFFFFF;" |'''Example'''
| style="background-color:#515243; color:#FFFFFF;" |'''Remark'''
|-
| <span style="background:#ff6666;">Magic header || 0x00 || 0x04 || 51 52 43 43 || 'QRCC'
|-
| <span style="background:#6666ff;">size of ZLIB unpacked (QRCF) file || 0x04 || 0x04 || 00 00 28 00 ||
|-
| <span style="background:#00FF00;">ZLIB header || 0x08 || 0x02 || 78 DA || default/max level 9
|-
|}


=== lines.qrc ===
=== QRCF ===
*See: [[lines.qrc]] page
QRCF ('''Q'''t '''R'''esources '''C'''ontainer '''F'''lat?)
{{lines.qrc}}


=== rhm.qrc & raf.qrc ===
QRC "container" with an structure similar than themes .p3t
*See: [[rhm.qrc]] and [[raf.qrc]] pages
{{rhm.qrc}}
{{raf.qrc}}


=== canyon.qrc & earth.qrc ===
====Main Header====
*See: [[canyon.qrc]] and [[earth.qrc]] pages
*Example from fw 3.55 rhm.qrc:
*Music player visualizers (a.k.a. 'valley' and 'gaia'), the other music player visualizer available is a modification of the [[XMB]] wave/sparks animation, and is stored inside [[lines.qrc]] using specific .MNU settings in path: '''override/music_1/''')
'''Offset(h) 00 01 02 03  04 05 06 07  08 09 0A 0B  0C 0D 0E 0F'''
{{canyon.qrc}}
'''00000000'''  <span style="background:#ff6666;">51 52 43 46  00 00 01 10  00 00 00 40  00 00 02 CC</span>  QRCF.......@..%|
{{earth.qrc}}
'''00000010''' <span style="background:#66ff66;">00 00 03 10  00 00 01 2B</span>  <span style="background:#ffff66;">00 00 04 40  00 00 00 1B</span>  ..%À......9Ð....
'''00000020''' <span style="background:#ffff66;">00 00 04 60</span>  00 00 00 00  <span style="background:#ffff66;">00 00 04 60</span>  00 00 00 00  ..9ð......9ð....
'''00000030''' <span style="background:#ffff66;">00 00 04 60  00 00 23 A0</span>  00 00 00 00  00 00 00 00..9ð..@p........


=== store.qrc ===
{| class="wikitable sortable"
*See: [[store.qrc]] page
|-
{{store.qrc}}
| style="background-color:#515243; color:#FFFFFF;" |'''Name'''
| style="background-color:#515243; color:#FFFFFF;" |'''Offset'''
| style="background-color:#515243; color:#FFFFFF;" |'''Size'''
| style="background-color:#515243; color:#FFFFFF;" |'''Example'''
| style="background-color:#515243; color:#FFFFFF;" |'''Remark'''
|-
| <span style="background:#ff6666;">Magic || 0x00 || 0x04 || 51 52 43 46 || 'QRCF'
|-
| <span style="background:#ff6666;">Version                      || 0x04 || 0x04 || 00 00 01 10 ||
|-
| <span style="background:#ff6666;">Data table start offset                  || 0x08 || 0x04 || 00 00 00 40 ||
|-
| <span style="background:#ff6666;">Data table size        || 0x0C || 0x04 || 00 00 02 CC ||
|-
| <span style="background:#66ff66;">Filename table start offset            || 0x10 || 0x04 || 00 00 03 10 ||
|-
| <span style="background:#66ff66;">Filename table size              || 0x14 || 0x04 || 00 00 01 2B || without the padding at the end
|-
| <span style="background:#ffff66;">File table header start offset || 0x18 || 0x04 || 00 00 04 40 ||
|-
| <span style="background:#ffff66;">File table header size  || 0x1C || 0x04 || 00 00 00 1B || without the padding at the end
|-
| <span style="background:#ffff66;">File table start offset      || 0x20 || 0x04 || 00 00 04 60 ||
|-
| ''Not used''                    || 0x24 || 0x04 || 00 00 00 00 ||
|-
| <span style="background:#ffff66;">File table start offset        || 0x28 || 0x04 || 00 00 04 60 ||
|-
| ''Not used''                    || 0x2C || 0x04 || 00 00 00 00 ||
|-
| <span style="background:#ffff66;">File table start offset        || 0x30 || 0x04 || 00 00 04 60 ||
|-
| <span style="background:#ffff66;">File table size          || 0x34 || 0x04 || 00 00 23 A0 ||
|-
| ''Not used''                    || 0x38 || 0x04 || 00 00 00 00 ||
|-
| ''Not used''                    || 0x3C || 0x04 || 00 00 00 00 ||
|-
|}


== QRC contents ==
====Data Table====
See [[Multimedia Formats and Tools]] page for a general description of DDS, GTF, BMP, TGA, FPO, VPO and JPEG image formats)
Default entry size is 60 bytes (0x3C), but the first entry is smaller, the last entry is a bit special because is not linked to a file, and it looks like there is a padding at the end of the table


*ELF (Executable and Linkable Format) See Specifications here: [http://www.sco.com/developers/gabi/latest/ch4.eheader.html ELF Header] and [http://www.openwatcom.com/ftp/devel/docs/elf-64-gen.pdf ELF-64 Object File Format]
Offset (without the 0x40 header in all qrc files)
*BIN (Binary)
http://666kb.com/i/cib5c7q4y7rpcx9x1.gif
*MNU ?
*PATH (Camera path)
*DUMP ?
*TXT ?
*INI ?
*DDS (Direct Draw Surface)
*GTF (Graphics Texture Format)
*BMP (Bitmap)
*TGA (Targa)
*JPEG (Joint Photographic Experts Group)
*FPO (Fragment Program Objects)
*VPO (Vertex Program Objects)


*QRC files from firmware version 1.00 up and including 4.50 : http://mir.cr/TSR5E8PM (32078 KB RAR / unpacked size 243425713 bytes)
{| class="wikitable"
**MD5 hashes generated with quickSFV http://pastebin.com/raw.php?i=ATvKyMRC
|-
**CRC32 hashes generated with quickSFV http://pastebin.com/raw.php?i=40h6iMCA
| style="background-color:#515243; color:#FFFFFF;" |'''Offset'''
| style="background-color:#515243; color:#FFFFFF;" |'''Size'''
| style="background-color:#515243; color:#FFFFFF;" |'''Example'''
| style="background-color:#515243; color:#FFFFFF;" |'''Remark'''
|-
| 0x00 || 0x08 || 00 00 00 00 00 00 00 00 || similar all qrc files
|-
| 0x08 || 0x08 || FF FF FF FF FF FF FF FF || similar all qrc files
|-
| 0x10 || 0x04 || FF FF FF FF || similar all qrc files
|-
| 0x14 || 0x04 || 00 00 00 1C || similar all qrc files
|-
| 0x18 || 0x04 || 00 00 00 1C || similar all qrc files
|-
| 0x1C || 0x04 || 00 00 00 04 || similar all qrc files
|-
| 0x20 || 0x08 || 00 00 00 00 00 00 00 00 || similar all qrc files
|-
| 0x28 || 0x08 || FF FF FF FF FF FF FF FF || similar all qrc files
|-
| 0x30 || 0x04 || 00 00 00 38 || similar all qrc files: start offset of the first entry inside datatable (0 + size of first entry)
|-
| 0x34 || 0x04 || xx xx xx xx || size body data table
|-
| 0x38 || 0x04 || 00 00 00 0F || similar all qrc files
|-
| 0x3F || 0x04 || 00 00 00 02 || 00 00 00 03 on icontex.qrc
|-
| 0x40 || 0x04 || 00 00 00 1C || similar all qrc files
|-
| 0x44 || 0x04 || FF FF FF FF || similar all qrc files
|-
| 0x48 || 0x04 || 00 00 00 74 || 00 00 00 84 on icontex.qrc : start offset of the second entry inside datatable (first entry offset + 0x3C)
|-
| 0x4C || 0x08 || FF FF FF FF FF FF FF FF || similar all qrc files
|-
| 0x54 || 0x04 || 00 00 00 14 || similar all qrc files
|-
| 0x58 || 0x04 || 00 00 00 06 || similar all qrc files
|-
| 0x5C || 0x04 || 00 00 00 00 || similar all qrc files
|-
| 0x60 || 0x04 || 00 00 01 50 || size of first file without padding
|-
| 0x64 || 0x04 || 00 00 00 18 || similar all qrc files
|-
| 0x68 || 0x04 || 00 00 00 07 || similar all qrc files
|-
| 0x6C || 0x08 || 00 00 00 00 00 00 00 00 || similar all qrc files
|-
| 0x74 || 0x04 || 00 00 00 0F || 00 00 00 1B on icontex.qrc
|-
| 0x78 || 0x04 || 00 00 00 02 || 00 00 00 01 on icontex.qrc
|-
| 0x7C || 0x04 || 00 00 00 1C || 00 01 55 D4 on icontex.qrc (size of .dds uncompressed)
|-
| 0x80 || 0x04 || 00 00 00 38 ||
|-
| 0x84 || 0x04 || 00 00 00 B0 || start offset of the third entry inside datatable (second entry offset + 0x3C)
|-
| 0x88 || 0x08 || FF FF FF FF FF FF FF FF || 00 00 00 03 00 00 00 1C on icontex.qrc
|-
| 0x90 || 0x04 || 00 00 00 14 || 00 00 00 38 on icontex.qrc
|-
| 0x94 || 0x04 || 00 00 00 06 || 00 00 00 D0 on icontex.qrc
|-
| 0x98 || 0x04 || xx xx xx xx || size first file (not on icontex.qrc: FF FF FF FF)
|-
| 0X9c || 0X04 || xx xx xx xx || size second file (not on icontex.qrc: FF FF FF FF)
|-
|}


== QRC related tools ==
====Filename Table====
Each entry is composed by:


=== ZLIB ===
{| class="wikitable"
QRC files uses [[Template:Zlib Header|ZLIB]] compression level 9, there are 2 types of QRC files that can be recognized by reading the first 4 bytes either QRCC or QRCF, the next 4 bytes indicates the decompressed size. The first step to extract QRC contents is to remove this 8 bytes at the start of the file. After removed the resulting file is in zlib format
|-
! Offset !! Length !! Example !! Name !! Notes
|-
| 0x0 || 0x4 || 00000038 || '''Data Table entry offset''' || Same value than in the '''Data Table'''
|-
| 0x4 || ''variable'' || lib/rhm/Clear.fpo || '''File name''' ||
|-
| ''variable'' || 0x1 || 00 || '''NULL byte''' ||
|}
*The end of the table has a padding to align to 0x10 bytes


*'''QGL converter''' - This code can decompress a QRCC to QRCF and compress a QRCF to QRCC (it crops/generates the first 8 bytes and manages the zlib decompression/compression) [https://raw.github.com/wargio/ps3tools/master/QGL.c QGL.c]
====File Table====
*'''Zlib GUI v1.0''' - Nice GUI to work with the zlib dll. Download: [http://www.f2065.ru/soft/ZLib_GUI_en.htm official link], or [http://www.psx-place.com/resources/zlib-gui.716/ alternative link]
 
The table starts with 0x20 bytes, are always present in all the .qrc files
'''Offset(h) 00 01 02 03  04 05 06 07  08 09 0A 0B  0C 0D 0E 0F'''
'''00000440'''  <span style="background:#ffff66;">71 72 63 00  66 69 6C 65  2D 74 61 62  6C 65 00 66</span>  qrc.file-table.f
'''00000450'''  <span style="background:#ffff66;">69 6C 65 00  73 72 63 00  69 64 00</span> <span style="background:#ff6666;">00  00 00 00 00</span>  ile.src.id......
*Marked in red: padding to align to 0x10 bytes
 
After this, the files are concatenated in the same order than in the '''Filename Table'''
 
== QRC files ==
{| class="wikitable" style="font-size:x-small;"
|-
! Container Name !! File contents<br />(in 4.50) !! Firmware changes<br />(MD5) !! Notes
|-
! [[canyon.qrc]]
| ?
| (1.00~1.02) 0F1B5E3CD6057B71BAF18F3154CD5B8C<br />
(1.10~1.32) E2C2A3374AED0964EB33FBB2CD987798<br />
(1.50~1.54) 5F68DBE12F25178C3777898CCF442945<br />
(1.60~1.70) 084513247EC6C3B6853C8A8DE669FF8C<br />
(1.80~1.82) 3F936EDB8865DE2F8895F176496600FB<br />
(1.90~only) 3717F76B98A3EE4C5BFDDC79E746AC53<br />
(1.92~1.94) FEB1A93499BABB48F215580B932E604C<br />
(2.00~2.01) 1EAA9921CA2EC20B2B15400F585150E7<br />
(2.10~2.36) 7BAAC386D22BEAF59E8818DE8B5D41BF<br />
(2.40~2.43) 3F4EC983D33875CCCD3B5A21AD6AB8C2<br />
(2.50~2.60) 83FDE07A293C487844306395C3258C82<br />
(2.70~2.80) 8A8123CD7FC907C537EFFB346C353F5F<br />
(3.00~3.30) 134EEB4B4027256C4F7C5271ED5F1BBA<br />
(3.40~3.42) D346902DC44A5E9B65C28B10D9C98C86<br />
(3.50~4.50) 053DA0D0ED6B336E12665D41F0A18387<br />
| ?
|-
! [[earth.qrc]]
| ?
| (2.00~only) 0CF5F811709875C7513EB7EF3D6A4093<br />
(2.01~only) F12DBB64403808908A0682CF0CEFEF15<br />
(2.10~2.17) F652752780B5C3567872A2540C7E9471<br />
(2.20~2.36) CE3FE6DDEE6126CA6EE07E65DA82ADA0<br />
(2.40~2.43) CA48FE2B62473602808154B132684922<br />
(2.50~2.60) 3C289F94B5601135DE9A1E288EB0F30D<br />
(2.70~2.76) 7953F2CF91EDD2BB6409F6DE7B48B704<br />
(2.80~only) EAFDAC5D044796B22606E06B86E85638<br />
(3.00~3.01) C6E70369FA95B0CA107989524C30BF6E<br />
(3.10~3.21) 6CDF7D52C5ADAC9B048E9D0C45A19AA7<br />
(3.30~only) 7B09A088BF169AB486FEDB6C569BACFB<br />
(3.40~3.42) 43475D5E4B7E8FB223061A3BAFFC8213<br />
(3.50~only) 0DB0C5118B06F7D3C8B4C73AD7B0E443<br />
(3.55~3.56) 136A3DFDE7C60A34CFF3D4A7BBDCCDE4<br />
(3.60~3.66) AA7A02DFCA99E167DA347933B95B7DF4<br />
(3.70~3.74) 5CF1F3694ECDBB75A6461FD6C85A5971<br />
(4.00~4.01) 0A7C4A327CCD63614E55686FBE6FCCBA<br />
(4.10~4.11) A05BCDD9504D7111FBD9810D25217D3F<br />
(4.20~4.31) 30002327D89E49CE2760881444A522C1<br />
(4.40~4.50) BEDFE56680ED40807C53E61603C76E1D
| Introduced in firmware 2.00
|-
! [[icons.qrc]]
| MNU (22)<br />DDS (1)<br />BMP (1)<br />FPO (33)<br />VPO (3)
| (1.00~1.02) 451016CFB126C6D050EC5B19ABB93548<br />
(1.10~only) 1B265A359BB59CBE8E3348A2F9B288A1<br />
(1.11~1.32) D434CE9BC9AA04C0CDF834DAF82D5A3D<br />
(1.50~1.54) C0A0FE2D84FB7A68C96A4FB07401286C<br />
(1.60~1.70) 44B0B9B26FBF5FC1EB9045E5349EC58A<br />
(1.80~1.82) 9877952A1CCB9A032B8706E21DF084E9<br />
(1.90~only) 835647C1B7C921109912DA92EC557E15<br />
(1.92~1.94) 7B056E396B5ECBF2B969A71D31C6EB6E<br />
(2.00~2.01) 4C5F6FEAC323C9DF834C91171DB617AD<br />
(2.10~2.36) BAD026CDEA08D3922A2758FC57BC04ED<br />
(2.40~2.43) 6F035289BD16E3243C9049F87BF08336<br />
(2.50~2.60) 848AEF795AE0A22B95398DC89D294654<br />
(2.70~2.80) 8B91CD5744D56A64D26D077CF3DCED3E<br />
(3.00~3.21) EECFD7C3B62ECB2169AEC89F9ABEC3C6<br />
(3.30~only) 3B4BD372A29B2FF36A15A0F6D0CB1482<br />
(3.40~3.42) D33497D781EAAA32A4B98B684C073E7D<br />
(3.50~4.50) 97342FFE4E3B427E9C2133C1BB6A3BB4
| ?
|-
! [[icontex.qrc]]
| DDS (71)
| (2.00~only) 020BA022EBBC7FA96C77FA01CE351F26<br />
(xxxx~xxxx) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<br />
(3.41~3.60) 9FBD278929692A82D5102C12922D9B3D<br />
(4.46~4.50) 90146D3F374EC92EBED34535E90CD298
| Introduced in firmware 2.00
|-
! [[lines.qrc]]
| ELF (2)<br />FPO (47)<br />VPO (11)<br />MNU (69)<br />DDS (24)<br />TGA (6)
| (1.00~????) <br />
(1.02) fcc5b919d343533737e33c2ed566ef03<br />
(2.00) 665981A0A66C01A6C96269A24F4765E6<br />
(3.41) 7981D59C7EF731DD0C23EB2681A79FBA<br />
(3.55) A50F1DC98A9EDACBDB7C0B010B369736<br />
(3.60) d519ecfac71ab7437aaa6e1c70bdde4e<br />
(4.21~4.50) D34D7E2A7DE4502E0454FD787A00A35C
| ?
|-
! [[raf.qrc]]
| BIN (1)<br />FPO (20)<br />VPO (2)
| (2.00) ?<br />
(3.41) 9566444DFE340CAA9B9B58AD026E9775<br />
(3.55~3.60) FA2388076A217DAFD9A1FD123AF4C847<br />
(4.46~4.50) 1FCC497E937FDC6CDAD6A1707C9CD187
| Introduced in firmware 2.70
|-
! [[rhm.qrc]]
| FPO (8)<br />VPO (3)
| (1.00) ?<br />
(1.02) d1e7281246ec8a46eb6d368bd4b332bd<br />
(2.00) 98305A00173927E5D947027BFE1CA0DE<br />
(3.15~3.60) 12B8D3A7CDFB3CAF66848704027A44E7<br />
(4.46~4.50) 99F008FE3C2BACB937BFC925004E6E99
| ?
|-
! [[store.qrc]]
| FPO (41)<br />VPO (13)<br />MNU (20)<br />DDS (5)<br />GTF (1)
| (2.00) ?<br />
(3.41) 929D93182B08E41ED01AC45E59513DEC<br />
(3.55) 20E92F5465AD6FC2AADF7D04BDBA668F<br />
(3.60) 63d551b86ec752837e9824a2e4e4fecf<br />
(4.46~4.50) 5E551FE46DCA11258A29031128E8D998
| Introduced in firmware 2.50
|}
 
*File formats inside QRC containers: (See [[Multimedia Formats and Tools]] page for a general description of DDS, GTF, BMP, TGA, and JPEG image formats)
**ELF (Executable and Linkable Format) See Specifications here: [http://www.sco.com/developers/gabi/latest/ch4.eheader.html ELF Header] and [http://www.openwatcom.com/ftp/devel/docs/elf-64-gen.pdf ELF-64 Object File Format]
**BIN (Binary)
**MNU ?
**FPO (Fragment program objects)
**VPO (Vertex program objects)
**PATH (Camera path)
**DUMP ?
**TXT ?
**INI ?
**DDS (Direct Draw Surface)
**GTF (Graphics Texture Format)
**BMP (Bitmap)
**TGA (Targa)
**JPEG (Joint Photographic Experts Group)
 
== Tools ==
 
===ZLIB archivers===
QRC files are compressed in ZLIB, and has 8 bytes added at the start of the file. To be able to use a generic zlib archiver is needed to remove this 8 bytes (and is needed to add them in the last step when rebuilding the QRC file)
 
====SimplyZip====
Windows archiver able to extract and create zlib files. http://www.paehl.de/cms/simplyzip
 
*Usage:
**Open the program and click in the tab at top: [External progs] ---> [ZLIB (pack/unpack)]
**A window opens where you can select the file
**Choose [Decompress] or [Compress], then click in [Start]
 
==== QGL converter ====
This tool can decompress a QRCC to QRCF and compress a QRCF to QRCC (it crops/generates the first 8 bytes and manages the zlib decompression/compression)
 
https://raw.github.com/wargio/ps3tools/master/QGL.c (just run make to compile it)


=== QRC Extractors ===
=== QRC Extractors ===
After the ZLIB decompression (needed for all .qrc files except icontex.qrc) the contents can be extracted individually using different tools
After the ZLIB decompression (needed for all .qrc files except icontex.qrc) the contents can be extracted individually using different tools


*<s>'''P3Textractor''' - Is posible to use a theme extractor to extract the contents from .qrc files, but first is needed to replace the characters '''/''' by '''_''' of the text strings inside the '''Name table''' with a hexeditor (e.g: the string '''override/black/ICONS.mnu''' needs to be replaced by '''override_black_ICONS.mnu''')</s>. Dont use this method, is too much innacurate and obsolete, is kept here only for historical purposes
*Notes
*'''CXML decompiler v4 alpha''' - Is a python script to extract the contents of CXML containers (CXML, QRCF, P3TF, RAFO, etc...), and also generates an .xml that represents the original CXML structure. To use it copy the script at bottom of [[CXML Containers]] page and save it to your PC as '''script.py'''. Then run it from the command line and follow the instructions, it requires [https://www.python.org/downloads/ python 2]
**Some of the images are inverted vertically (only .dds?)
 
==== P3Textractor ====
Is posible to use a theme extractor to extract the contents from .qrc files, but first is needed to replace the characters '''/''' by '''_''' of the text strings inside the '''Name table''' with a hexeditor (e.g: the string '''override/black/ICONS.mnu''' needs to be replaced by '''override_black_ICONS.mnu''')
This patching of the text strings can be automated by selecting the whole '''Name table''' in hexeditor and the function "replace string" (replacing the text string '''/''' by '''_''' automatically only in the selected area)
 
P3Textractor manual: http://www.psdevwiki.com/ps3/Themes_(.p3t)#P3Textractor
 
*Notes
**P3Textractor renames .dds file extensions to .gim in the extraction process... so is needed to change back the file extensions manually to .dds for further edits in other programs
**This same trick with P3Textractor can be used with .raf files
 
=== Raw extractors ===
 
==== Generic Tiny little extractor ====
Theses generic tiny little tools extract '''blindly''' (they just don t want to stop) & embedded (and so, output bigger files when it s not) files and are means to be tiny and independent. Extremely Heavily based on an [http://www.ps3devwiki.com/wiki/Talk:Content_Information_Files MPO splitter] by Christian Steinruecken. Formats supported DDS/MNU/JPG/MPO/PNG (and virtually any other by modifying the source code)
 
http://rghost.net/49340892 (include Code-Compile-Credit. Drag and drop your file into them) &
mirror links: http://mir.cr/0R78ED3U


=== QRC Compilers ===
=== QRC Compilers ===
There are no .qrc compilers, the usual method to modify qrc files is by patching the text strings of the .MNU settings or to inject the custom files with a hexeditor overriting the original .qrc file structure
There are no compilers for .qrc files, the commonly used method consist in patching settings values in text strings (or to inject the modded files) with a hexeditor over the original .qrc file
 
The patches should never exceeed the size of the original data, incase of patching an predefined area with an smaller patch is recommended to "blank" the original data with zeroes before writing the new data


The format allows also to "remap" the contained files by modifying the entries in the index to make them point to the offset/size of a different file
This limits the mods to patches than never exceeeds the size of the original data... in the case of patching an area with an smaller patch is recommended to fill the original "trash" data with zeroes


*'''Patching strings in hexeditor'''
==== Patching strings in hexeditor ====
**Mostly used with the settings inside .mnu files
Mostly used with the settings inside .mnu files
**First extract the files with the CXML decompiler script, look at the main .xml to identify the file names, open the .mnu file you want to modify in notepad++ to be able to read the settings in a easy way
**Select the string you want to modify and copy it
**Open the .qrc file in a hexeditor (after ZLIB decompression if needed) and use the search funtion to locate the string you copyed in the previous step
**Notes
***Most of the settings from .mnu files are repeated several times inside the .qrc file. Be sure to patch the correct .mnu file by comparing the data before or/and after


*'''Injecting files in hexeditor'''
First extract the files with some of the extractor tool, open the .mnu files in notepad++ to be able to read the settings in a easy way
**Similar than patching a text string but with a bigger chunk of data


== External Links ==
Select the string you want to modify and "copy" his name
*QRC modding by eustolio: http://www.scenespain.net/foro/tutoriales-ps3/tutorial-xmb-custom-cambia-el-color-e-iconos-base-del-xmb/ (2011 may 29)
**Corrections: None :)
*XMB wave modding by glowball: http://www.ps3hax.net/showthread.php?t=25618 (2011 july 1) and http://www.ps3hax.net/showthread.php?t=58673 (2013 july 4)
**Corrections:
***The concept of PAL/NTSC wave is wrong. The wave is common for all PS3 models, resolutions, aspect ratios, and regions. The 8 bytes at the start of the file doesnt has any relationship with PAL/NTSC
***There is no javascript inside the QRC container, the supposed .js file used in glowball method is a chunk of data containing several .mnu files (included the padding between them)
***The idea of an "imaginary" javascript hides the real explain of the structure or what you are patching, making users to dont understand a word and promoting the "blind testing"
***In the case you want to patch 1 byte... you are patching a huge area instead
***Using hardcoded offsets is a safe way to break compatility when the files changes in with newer firmwares and good for softbricking, there is no advise of incompatibility problems


*Qt Framework
Open the .qrc file in hexeditor (after ZLIB decompression if needed) and use the search funtion to locate the string you copyed previously
**http://qt-project.org/doc/qt-5/rcc.html
**http://qt-project.org/doc/qt-5/resources.html
**https://qt.gitorious.org/qt/qtbase/source/fb20f9c2da369b07fc50857a90b596ae63f943da:src/tools/rcc
**https://qt.gitorious.org/qt-creator/qt-creator/source/1154a8c6c2bfb223f4239d7902c3755e8a9a1213:src/plugins/resourceeditor/qrceditor


*Notes
**Most of the settings inside .mnu files are repeated several times inside the .qrc file because are used in several .mnu files... be sure to patch the correct .mnu file by comparing the rest of the data at his side


{{File Formats}}<noinclude>[[Category:Main]]</noinclude>
==== Injecting files in hexeditor ====
Similar than patching a text string, but with a bigger chunk of data
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)