xboxscene.org forums

Author Topic: PIRSTools  (Read 177 times)

Xbox-Scene

  • Archived User
  • Hero Member
  • *
  • Posts: 4299
PIRSTools
« 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

Logged

vsaiyan

  • Archived User
  • Newbie
  • *
  • Posts: 28
PIRSTools
« Reply #1 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
Logged

DWells55

  • Archived User
  • Full Member
  • *
  • Posts: 105
PIRSTools
« Reply #2 on: January 06, 2006, 01:17:00 PM »

From what I saw in the hex, I believe the themes are PIRS files.
Logged

Cimlite

  • Archived User
  • Jr. Member
  • *
  • Posts: 80
PIRSTools
« Reply #3 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.
Logged

halo2rox

  • Archived User
  • Newbie
  • *
  • Posts: 43
PIRSTools
« Reply #4 on: January 06, 2006, 02:21:00 PM »

I tried it on the theme files and it didn't seem to work.
Logged

SplitFire

  • Archived User
  • Newbie
  • *
  • Posts: 3
PIRSTools
« Reply #5 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.
Logged

d0wnlab

  • Archived User
  • Sr. Member
  • *
  • Posts: 326
PIRSTools
« Reply #6 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.
Logged

PedrosPad

  • Archived User
  • Hero Member
  • *
  • Posts: 1277
PIRSTools
« Reply #7 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
Logged

SplitFire

  • Archived User
  • Newbie
  • *
  • Posts: 3
PIRSTools
« Reply #8 on: January 06, 2006, 09:46:00 PM »

Has this new version that correctly extracts the theme files been posted on the site?
Logged