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
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
Thanks guys! Also, I'm having trouble locating the offsets in my Skyrim save for gold, lockpicks and carry weight. Any ideas?
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
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