xboxscene.org forums

Xbox360 Forums => Xbox360 Software Forums => PC Tools and Utilities (Xbox 360 related) => Topic started by: Xbox-Scene on January 06, 2006, 12:06:00 PM

Title: PIRSTools
Post by: Xbox-Scene on January 06, 2006, 12:06:00 PM

PIRSTools-- Posted by XanTium on January 6 14:06 EST
From readme/nfo/free60:

Quote

Description: Set of utilities to work with the PIRS file format.
PIRS or LIVE are the magic bytes that start most files on the Xbox 360. It would appear that this is a generic container file that holds the real files along with metadata that the dashboard reads like title, description and icon.

Usage: "pirs [pirs file] [output directory]" will dump the PIRS file contents

History:
* 2006-1-06 (pedrospad): Ported for use in windows.
* 2005-12-13 (superjedi): Fixed a bug in pirs_get_titles () and pirs_get_descriptions ()
* 2005-12-11 (superjedi): First release, version 0.1
* 2005-12-11 (superjedi): All the functions have been splitted in a library, libpirs

Official Site: http://www.free60.org (Windows port by pedrospad)
Download Binaries for Windows: here
Download Sources (for Linux): here
News-Source: xbins.org

Title: PIRSTools
Post by: vsaiyan on January 06, 2006, 01:15:00 PM
I'm not quite sure what to make of this, what does this allow the scene to do?

-vsaiyan
Title: PIRSTools
Post by: DWells55 on January 06, 2006, 01:17:00 PM
From what I saw in the hex, I believe the themes are PIRS files.
Title: PIRSTools
Post by: Cimlite on January 06, 2006, 02:16:00 PM
Boy did I feel stupid reading that post... I read it, I understood it... but I have no idea what it means.
Title: PIRSTools
Post by: halo2rox on January 06, 2006, 02:21:00 PM
I tried it on the theme files and it didn't seem to work.
Title: PIRSTools
Post by: SplitFire on January 06, 2006, 03:33:00 PM
I also tried this on all of the theme files that are from the kiosk disc.  This program may not be meant for them, i'm not sure, but when i tried extracting hotrod I just get the message that 0 files were extracted.  On any of the other themes I get a stackdump.
Title: PIRSTools
Post by: d0wnlab on January 06, 2006, 03:34:00 PM
PIRS files are an authenticated container format.. like an archive, like tar.  The program takes the input PIRS file and writes out the contained files.
Title: PIRSTools
Post by: PedrosPad on January 06, 2006, 06:27:00 PM
It works on some PIRS archive files, but not others (such as the theme files) so it may be incomplete.  I'm looking into it now.

Update:  The PIRSTOOLS source contains a hard coded offset that expects the file list within the PIRS archive to start at file offset 0xC000.  It's likely that this was always the case with the PIRS files previously available.  However, with the kiosk theme PIRS files, the file list actually begins at offset 0xD000, upsetting other hard coded offsets also.

For the immediate term, I've updated the hard coded offsets to suite the kiosk theme PIRS files, and built a new PIRS_K.EXE ('K' for Kiosk!), that correctly extracts the theme files.  But obviously the 'correct' solution would be to remove the hard coded file offsets altogether and make the utility calculate them for itself (a future task).

Update: I've still got issues with PIRS_K.EXE  (IMG:style_emoticons/default/sad.gif) - more news as it breaks.

This post has been edited by PedrosPad: Jan 7 2006, 04:59 AM
Title: PIRSTools
Post by: SplitFire on January 06, 2006, 09:46:00 PM
Has this new version that correctly extracts the theme files been posted on the site?