Editing STAR Files

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:
== Overview ==
== Overview ==
STAR files (file extension .star) store packages on the [[PSX Update Disc]] 2.11. It is a fairly simple archive format that is neither compressed nor encrypted. Each entry consists of the following segments:
STAR files store packages on the [[PSX Update Disc]] 2.11. It is a fairly simple archive format that is neither compressed nor encrypted. Each entry consists of the following segments:
* a header (size: 0x8 bytes)
* a header (size: 0x8 bytes)
* a file name (size specified in header)
* a file name (size specified in header)
Line 6: Line 6:
* sha-1 hash of file data (size: 0x14 bytes)
* sha-1 hash of file data (size: 0x14 bytes)


Subfolders are handled by simply writing out the full path in the file name, with subfolders being separated with / (0x2F).
Subfolders are handled by simply writing out the full path in the file name, with subfolders being separated with /.
 
Unpacking is possible by using [https://github.com/Brawl345/stargazer Stargazer].


== Header structure ==
== Header structure ==
Line 27: Line 25:
| 0x2
| 0x2
| 4
| 4
| 32 bit file data size in byte (without file name or hash), max size per file is thus 4 GBytes minus 1 Byte
| 32 bit file data size (without file name or hash)
|-
|-
| 0x6
| 0x6
| 1
| 1
| Size of file name in bytes, limited to 247 by the total size of header+name also being stored in a single byte
| Size of file name
|-
|-
| 0x7
| 0x7
Please note that all contributions to PS2 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS2 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)