xboxscene.org forums

Author Topic: Save Game Data?  (Read 35 times)

Zak0

  • Archived User
  • Newbie
  • *
  • Posts: 29
Save Game Data?
« on: December 02, 2003, 10:38:00 AM »

I'd like to have a PC app that can FTP save game data back and forth from the Xbox hard drive.  I can write this myself except for one bit - I'd like to display the little icons that the MS dash displays.  I assume these are in the SaveImage.xbx and TitleImage.xbx and such, but don't know how to decipher them.

Any documentation out there I can look at?

-Zak
Logged

koryherzinger

  • Archived User
  • Newbie
  • *
  • Posts: 3
Save Game Data?
« Reply #1 on: December 07, 2003, 12:50:00 PM »

The XDK has a tool called the Bundler Utility.  It is a command line utility which opens a resource definition file and performs whatever tasks the RDF file says to.

Suppose a file called "bmptoxbx.rdf" existed and had the following content:

Texture
{
   Source title.bmp
   Format D3DFMT_DXT1
   Width 128
   Height 128
}


At the command line, typing "bundler bmptoxbx.rdf -o titleimage.xbx" will convert the file "title.bmp" to "titleimage.xbx".

Now suppose you had a file called "xbxtobmp.rdf" with the following content:

Texture
{
   Source titleimage.xbx
   Format D3DFMT_R8G8B8
   Width 128
   Height 128
}


Then by running "bundler xbxtobmp.rdf -o title.bmp" it will convert it back into a 24 bit bitmap which you can then use in your application.

The other option is to create a surface in memory with the format D3DFMT_DXT1, load the XBX file into the surface using D3DXLoadSurfaceFromFileA, create a second surface in memory with the format D3DFMT_R8G8B8 and then run D3DXLoadSurfaceFromSurface.  I think this function will automatically adjust the formats of the source surface to match the destination surface.

Hope this helps!
Logged