xboxscene.org forums

Author Topic: What Container Does Snes360 Use?  (Read 214 times)

DanXbix

  • Archived User
  • Newbie
  • *
  • Posts: 38
What Container Does Snes360 Use?
« on: January 03, 2010, 02:19:00 AM »

its a "Games On Demand" package not sure if there is a tool to open apart from maybe in the sdk
Logged

EatonZ

  • Archived User
  • Full Member
  • *
  • Posts: 131
What Container Does Snes360 Use?
« Reply #1 on: January 03, 2010, 06:58:00 AM »

It's probably a LIVE or PIRS container with a modified content type.

You can change it by doing the following:

1. Go to offset 0x344

2. Change it to the desired type. Here is an enum with all of the known types:

CODE
    public enum ContentTypes
    {
        None = 0x0,
        SavedGame = 0x1,
        Marketplace = 0x2,
        Publisher = 0x3,
        IPTVDVR = 0x1000,
        IPTVPauseBuffer = 0x2000, //No longer used.
        XNACommunity = 0x3000,
        InstalledXbox360Title = 0x4000,
        XboxTitle = 0x5000,
        SocialTitle = 0x6000,
        Xbox360Title = 0x7000,
        SystemUpdateStoragePack = 0x8000,
        AvatarAsset = 0x9000,
        Profile = 0x10000,
        GamerPicture = 0x20000,
        ThematicSkin = 0x30000,
        Cache = 0x40000,
        StorageDownload = 0x50000,
        XboxSavedGame = 0x60000,
        XboxDownload = 0x70000,
        GameDemo = 0x80000,
        Video = 0x90000,
        GameTitle = 0xA0000,
        Installer = 0xB0000,
        GameTrailer = 0xC0000,
        Arcade = 0xD0000,
        XNA = 0xE0000,
        LicenseStore = 0xF0000,
        Movie = 0x100000,
        TV = 0x200000,
        MusicVideo = 0x300000,
        GameVideo = 0x400000, // Now called Promotional.
        Promotional = 0x400000,
        PodcastVideo = 0x500000,
        ViralVideo = 0x600000
    }


Logged

poolshark021

  • Archived User
  • Newbie
  • *
  • Posts: 35
What Container Does Snes360 Use?
« Reply #2 on: January 03, 2010, 08:18:00 AM »

Thanks for that info.  Where did you find that?  I'm assuming the sdk docs?  
There must be some sort of checksum for the file.  I took a quickboot pirs file and hex edited it to show up as a xbox 360 game instead of a demo.  When I transfered it to my content folder it wouldn't show up in the dashboard anymore.  I switched the bytes back and then it showed up as a demo again.
Logged

firebuddie

  • Archived User
  • Newbie
  • *
  • Posts: 45
What Container Does Snes360 Use?
« Reply #3 on: January 04, 2010, 07:50:00 AM »

Poolshark@ did u move the modifed file to the correct content subdirectory, i.e. game as opposed to game demo?

"The content type is a or-ed value of the following flags, it is also the name of the subdirectory which must contain the file":

Source: http://www.free60.or..._File_Container
Logged

EatonZ

  • Archived User
  • Full Member
  • *
  • Posts: 131
What Container Does Snes360 Use?
« Reply #4 on: January 04, 2010, 05:52:00 PM »

QUOTE(poolshark021 @ Jan 3 2010, 10:18 AM) View Post
Thanks for that info.  Where did you find that?  I'm assuming the sdk docs?  
There must be some sort of checksum for the file.  I took a quickboot pirs file and hex edited it to show up as a xbox 360 game instead of a demo.  When I transfered it to my content folder it wouldn't show up in the dashboard anymore.  I switched the bytes back and then it showed up as a demo again.


Lol, it's a public enum.. And no, it is not in the SDK docs.

Does the folder name match the content type? If not, make sure to change it. It won't show up otherwise.
Logged

poolshark021

  • Archived User
  • Newbie
  • *
  • Posts: 35
What Container Does Snes360 Use?
« Reply #5 on: January 04, 2010, 06:04:00 PM »

I don't think modifying the existing game demo file will work.  I don't know much about hash checks but this seems to prevent the content type from being modified:

Offset    Size  Description  
0x32C      20  SHA1 hash of 0x0344 - 0xB000 (0x0344-0xA000 for CON files)  
0x340        4  Entry id for above hash  
0x344        4  Content type (see below)  

I tried calculating a new sha1 hash after changing the content type bytes but it still won't show up in the dashboard.  

@firebuddy:  I'm not sure what you mean by subdirectory?  Are you talking about the content folder on the xbox hdd?  I put it in the same folder as snes360 since that shows up as a game, not a demo.  Should it go somewhere else and if so how to you tell what subdirectories are for which content type?
Logged

EatonZ

  • Archived User
  • Full Member
  • *
  • Posts: 131
What Container Does Snes360 Use?
« Reply #6 on: January 04, 2010, 06:53:00 PM »

QUOTE(poolshark021 @ Jan 4 2010, 08:04 PM) View Post
I don't think modifying the existing game demo file will work.  I don't know much about hash checks but this seems to prevent the content type from being modified:

Offset    Size  Description  
0x32C      20  SHA1 hash of 0x0344 - 0xB000 (0x0344-0xA000 for CON files)  
0x340        4  Entry id for above hash  
0x344        4  Content type (see below)  

I tried calculating a new sha1 hash after changing the content type bytes but it still won't show up in the dashboard.  

@firebuddy:  I'm not sure what you mean by subdirectory?  Are you talking about the content folder on the xbox hdd?  I put it in the same folder as snes360 since that shows up as a game, not a demo.  Should it go somewhere else and if so how to you tell what subdirectories are for which content type?


Here is a small tutorial:

1. Get a clean SNES360.
2. Go to offset 0x344 in Hex Workshop, and on the left hand window, replace the following bytes with these: 00 08 00 00.
3. Save changes and exit Hex Workshop.
4. Download and open the file in this: http://www.filefront...pp-1-0-0-9.zip/
5. Go to the "Security" tab, make sure "Sign for DEV LIVE" is checked, and click the "Fix" button.
6. Close the program, and make sure the directory structure of the folder is like this: TitleID (Don't change!)/00080000/SNES360 File (Name doesn't matter.)
7. Open the device in an explorer and inject that folder into the "Content" folder.
Logged

poolshark021

  • Archived User
  • Newbie
  • *
  • Posts: 35
What Container Does Snes360 Use?
« Reply #7 on: January 04, 2010, 08:02:00 PM »

Thanks for the help.  I finally got it working.  Now all my games saved on the hdd actually show up on the dashboard as Xbox 360 Games.  Thanks!
Logged

MaesterRowen

  • Archived User
  • Newbie
  • *
  • Posts: 39
What Container Does Snes360 Use?
« Reply #8 on: January 04, 2010, 10:17:00 PM »

QUOTE(EatonZ @ Jan 4 2010, 06:53 PM) View Post

Here is a small tutorial:

1. Get a clean SNES360.
2. Go to offset 0x344 in Hex Workshop, and on the left hand window, replace the following bytes with these: 00 08 00 00.
3. Save changes and exit Hex Workshop.
4. Download and open the file in this: http://www.filefront...pp-1-0-0-9.zip/
5. Go to the "Security" tab, make sure "Sign for DEV LIVE" is checked, and click the "Fix" button.
6. Close the program, and make sure the directory structure of the folder is like this: TitleID (Don't change!)/00080000/SNES360 File (Name doesn't matter.)
7. Open the device in an explorer and inject that folder into the "Content" folder.


Hmm, when I try to follow these steps and open the SNES360 file 0001039 in Le Fluffie, it says invalid STFS.  Am I doing something wrong?

Thanks.
Logged

irishwhip

  • Archived User
  • Full Member
  • *
  • Posts: 158
What Container Does Snes360 Use?
« Reply #9 on: January 06, 2010, 08:17:00 AM »

anyone made progress with this? that black eyed peas song is really starting to piss me off, i need to change it with something more nintendo themed.
Logged

dstruktiv

  • Archived User
  • Full Member
  • *
  • Posts: 204
What Container Does Snes360 Use?
« Reply #10 on: January 06, 2010, 08:37:00 PM »

EatonZ is almost right... It is a small hex edit at 0x344 but not to the value he specified smile.gif

If you make the right change you can then open the container in Le Fluffie, extract the xsf image out of it, then using a hex editor (Or perhaps there's another tool that can open xsf files?) you can manually extract each file. Once you've done that you can modify whatever you want and either put it on your hard drive, or if you have the newer sdk, repackage a games on demand container.

An xsf file is what's generated by the game disc layout editor, you then use gdf2content to convert it to the games on demand container.
Logged