xboxscene.org forums

Author Topic: Extract Savegame Id From Xbe?  (Read 36 times)

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Extract Savegame Id From Xbe?
« on: January 22, 2003, 03:04:00 PM »

QUOTE (DevSpook @ Jan 22 2003, 05:53 PM)
Is it possible to extract the savegame id from the .XBE? I've been looking over the XBE info on caustiks site, but can't really find what I'm looking for.

You mean the mysterious code number of an XBE used in TDATA and UDATA directory names?

Check out my sources for MXM, I have code to get that in my utilities.
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Extract Savegame Id From Xbe?
« Reply #1 on: January 22, 2003, 03:52:00 PM »

QUOTE (DevSpook @ Jan 22 2003, 06:30 PM)
That's the one I'm after. smile.gif

I have been looking at your code, I thought that the GetXbeID() function would return the value I need, but I can't get the values to match. Quite a few of the files also return zero as XbeID.  I also checked out your "SearchForAutos" function, but it looks like the save game thingie isn't implemented smile.gif

   // Last resort... look for save game info and use there, if possible
   if ( pItem.GetValue( szII_Media ).GetLength() == 0 )
   {
   }


Is there another function I should use?

GetXbeID() Should do the trick for you. Seems like I tested it and it worked fine on my system.

You have to pass the COMPLETE filepath, and you also have to make sure the drives are set up (you can find some of those functions there as well) on the partitions. The Xbox doesn't always set things up for you.

Yes, the savegame stuff isn't implemented, but I currently use the ID to get name and manufacturing info from a pre-defined table. It **does** work.

Are you looking at 0.9f code?
Logged

BenJeremy

  • Archived User
  • Hero Member
  • *
  • Posts: 5645
Extract Savegame Id From Xbe?
« Reply #2 on: January 22, 2003, 04:13:00 PM »

QUOTE (DevSpook @ Jan 22 2003, 07:07 PM)
I'm looking at the 0.9g wip code.

I am supplying the full path, and the drives are relinked as needed. I retrieve the title successfully using the same parameter I'm using for the id, so it should be fine.

I'll have another look at it tomorrow, it's getting rather late where I am so I might be missing something obvious. smile.gif

OK. Yeah, I looked at it, and it should work fine. You'll notice it goes through all the motions needed to get the certificate location and grab the ID out of there.

Similarly, the GetXbeTitle() does it's magic everytime I run it on my "development" Xbox. It does the same thing, for the most part.
Logged

DevSpook

  • Archived User
  • Newbie
  • *
  • Posts: 31
Extract Savegame Id From Xbe?
« Reply #3 on: January 23, 2003, 03:11:00 AM »

QUOTE
OK. Yeah, I looked at it, and it should work fine.


Of course it does. smile.gif

I have no idea why it didn't work the first time, I built a string with the path & xbe name, used it successfully to retrieve the title using GetXBETitle, and then it gave me wierd values when using the same param to retrieve the id. Or maybe it was the way I stored it to an member var of CItemInfo that was funky.

Oh well, bygones. Moving on to masking textures.
Logged