Editing PlayStation archive (PSARC)

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 958: Line 958:


</syntaxhighlight>}}
</syntaxhighlight>}}
*Notes of the example:
*Notes
**The original path of the .psarc is '''C:\psarctests\source files\test.psarc''' (it will be used as the path where the rebuild .psarc will be created)
**The original path of the .psarc is C:\psarctests\source files\test.psarc (it will be used as the path where the rebuild .psarc will be created)
**Paths starts with an slash '''/''' (so the .psarc was created with absolute flag)
**Paths starts with an slash (so has been created with absolute flag)
**'''dummy.txt''' and '''Image3.png''' was archived without compression (appears with 100%)
**dummy.txt and Image3.png was archived without compression (appears with 100%)
**There is an empty line at the end (not visible in wiki because yeah... is empty)
**There is an empty line at the end
}}
}}


Line 979: Line 979:
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%)
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%)
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%)
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%)
</syntaxhighlight>}}
</syntaxhighlight>}}
}}
}}
Line 997: Line 998:
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%)
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%)
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%)
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%)
</syntaxhighlight>}}
</syntaxhighlight>}}
}}
}}
Line 1,018: Line 1,020:
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%)
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%)
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%)
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%)
</syntaxhighlight>}}
</syntaxhighlight>}}
}}
}}
Line 1,025: Line 1,028:
{{Boxframe1|content=
{{Boxframe1|content=
find:
find:
  \.psarc" absolute="false" ignorecase="false">\r\n\t\t<compression type="zlib" />\r\n\t\t<strip regex="C:\\source\\folder\\" />\r\n\r\n\t\t<file path="C:\\source\\folder\\\\
  absolute="false" ignorecase="false">\r\n\t\t<compression type="zlib" />\r\n\t\t<strip regex="C:\\source\\folder\\" />\r\n\r\n\t\t<file path="C:\\source\\folder\\\\
replace by:
replace by:
  \.psarc" absolute="true" ignorecase="false">\r\n\t\t<compression type="zlib" />\r\n\t\t<strip regex="C:\\source\\folder\\" />\r\n\r\n\t\t<file path="C:\\source\\folder\\\\
  absolute="true" ignorecase="false">\r\n\t\t<compression type="zlib" />\r\n\t\t<strip regex="sourcefolder" />\r\n\r\n\t\t<file path="C:\\source\\folder\\\\
The resulting file:
The resulting file:
{{Boxcode|code=<syntaxhighlight lang="xml">
{{Boxcode|code=<syntaxhighlight lang="xml">
Line 1,039: Line 1,042:
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%)
\JPGfolder1\JPGfolder2\Image2.jpg (209\12524 1%)
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%)
\PNGfolder1\PNGfolder2\PNGfolder3\Image3.png (6142\6142 100%)
</syntaxhighlight>}}
</syntaxhighlight>}}
}}
}}


*'''Step 6 - Replace parentheses (per-file compression autodetection)'''
*'''Step 6 - Replace parentheses (per-file compression autodetection)'''
This step replaces only the parentheses for the lines of the files that was archived without compression and adds the attribute '''compressed="false"'''
This step replaces only the parentheses for the lines of the files that was archived without compression and adds the attribute compressed="false"
{{Boxframe1|content=
{{Boxframe1|content=
find:
find:
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)