Download Horizon :: Staff Members :: Save Vault :: XboxMB YouTube


Old 07-26-2011   #1 (permalink)

Mets08123's Avatar
Taylor Swift <3
Join Date: Sep 2010
Location: USA
Posts: 2,954
Thanks: 2,439
Default {Tut} How to Use X360 Extractor Function

I will teach you how to extract a file from a file. For example extracting the Account file from your profile. In this tutorial I'll be using a PGR3 gamesave.

Step 1:
Add 1 Button and Name it Open

Step 2:
Above Public Class Form1 add this code:
Code:
Imports X360.STFS
Imports X360.IO
Then under Public Class Form1 add this code:
Code:
 Dim Filepath As String
    Dim stfs As STFSPackage
    Dim item As FileEntry
Step 3:
Double click the open button and add this code:
Code:
 Dim ofd As New System.Windows.Forms.OpenFileDialog()
        ofd.Filter = "profile.sav (*.*)|*.*"
        ofd.Title = "profie.sav"
        ofd.ShowDialog()
        stfs = New STFSPackage(ofd.FileName, Nothing)
        item = stfs.GetFile("profile.save")
        item.Extract(System.IO.Path.GetTempPath & "\profile.save")
        Me.Filepath = System.IO.Path.GetTempPath & "\profile.save"
        Me.Filepath = System.IO.Path.GetTempPath & "\profile.save"
Now the ofd.Filter = "profile.sav (*.*)|*.*" just change the profile.sav to whatever the first file is named. Do the same for the ofd.Title = "profile.sav"
For item = stfs.GetFile("profile.save") you have to change it to the EXACT name of the file you wanted extracted from the file you opened.
You MUST change everything that says \profile.save to the file you want extracted.
For Me.Filepath = System.IO.Path.GetTempPath this extracts the save to a temporary file location so you will have to change this to location you want it extracted to.

You're Done!
__________________
Taylor Swift<3

Mets08123 is offline Send a message via AIM to Mets08123 Send a message via MSN to Mets08123
Reply With Quote
The following users thanked this post: Derek, KILLER 99997, Kink


Old 07-27-2011   #2 (permalink)

Derek's Avatar
Join Date: Sep 2010
Location: Maryland
Posts: 6,181
Thanks: 3,437
Default Re: {Tut} How to Use X360 Extractor Function

Great tutorial, followed it last night, I hope for more.
__________________
Derek is offline
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:09 PM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2013 - XboxMB - DESIGN BY:
EDENWEBS.COM