VB.Net | How To Use X360 Extractor Function |

Jet2020 Feb 13, 2012

  1. Je

    Jet2020 HeXtra Creator XPG Developer
    0/47

    Joined:
    Feb 13, 2012
    Messages:
    146
    Likes Received:
    24
    Trophy Points:
    0
    Console:
    Xbox
    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:

    Imports X360.STFS
    Imports X360.IO

    Then under Public Class Form1 add this code:

    Dim Filepath As String
    Dim stfs As STFSPackage
    Dim item As FileEntry

    Step 3:
    Double click the open button and add this 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!
     
    • Like Like x 1

Share This Page

Close