VB Error [Help]

Discussion in 'VB' started by SexyDev, Dec 2, 2013.

  1. Se

    SexyDev Queen of Darkness
    0/47

    ReadFile()

    Readfile is not declared?

    Will someone please give me a hand.
     
  2. gold972

    gold972 团队XPG影响 Effect XPG Developer TeamXPG
    205/282

    Public Sub ReadFile()
    Try
    Dim reader As New PackageIO.Reader(Filepath, Endian.Big)

    reader.Close()
    Catch ex As Exception
    MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
    End Try
    End Sub
     
  3. slyfuldragon

    slyfuldragon 360Revolution Developer XPG Moderator
    195/282

    To clarify:
    It is as Obyto stated




    In other words, as an example since your are using PackageIO:
    Code:
    Public Sub ReadFile()
            Try
                Dim reader As New PackageIO.Reader(Filepath, Endian.Big)
               
                Reader.Position = &H23941 : NumericUpDown1.value = Reader.ReadInt32
                '&H represents Hexadecimal, so you are pointing at the Hex offset position you want the tool to read, in this case I am pointing the reader at the offset 0x23941 which is Int32 long hence the Reader.ReadInt32'
    
                reader.Close()
            Catch ex As Exception
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
            End Try
        End Sub
     
  4. Se

    SexyDev Queen of Darkness
    0/47

    Thanks guys!

    Also, I'm having trouble locating the offsets in my Skyrim save for gold, lockpicks and carry weight. Any ideas?
     
  5. Iamcoolz

    Iamcoolz Forum Administrator Staff Member XPG Administrator
    205/282

    Mostly everything in a save, can be found at the adress of using a hex editor.. but you have to know how to work a hex editor to understand the max amount of strings and so on. Get the gold you have, and then open your save in a Hex Editor and use this converter - http://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html, and use the decimal column, enter it in and you will get a hex code like - 303F and then search for it in your hex editor and you will find it. Read more about hex editing and how to do it here - http://www.flexhex.com/docs/howtos/hex-editing.phtml
     
  6. Se

    SexyDev Queen of Darkness
    0/47

    This is annoying! I put &1101D and it says "Expression Expected"

    Starting to irritate me....
     
  7. slyfuldragon

    slyfuldragon 360Revolution Developer XPG Moderator
    195/282

    The offsets are extremely tricky for Skyrim, They are compress upon encrypted (of sorts) in character blocks of the game/save.
    So far people have only been able to hex editor gold located in barrels.

    Something I would not recommend a novice to tackle without the help of a reverse engineer.

    Best bet (in regards to Skyrim) would be to Console Modify the save on the PC then transfer the save over to the 360, vise versa.

    you need &H before the offset

    Like this:
    Code:
    Reader.Position = &H1101D : NumericUpDown1.value = Reader.ReadInt32
     
  8. Se

    SexyDev Queen of Darkness
    0/47

    That's what it was, thanks so much :D
     
  9. KillerVidz

    KillerVidz Rocky BANNED
    0/47

    Beat me to it dude haha ;)
     

Share This Page