![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 1
Rep Power: 0
![]() |
Reading Certain Offsets from a File
Hello,
I have been trying to create a program that can read AND edit certain offsets of a meta extracted form a game. So my questions is how would i make the text boxes read thoose certain offsets. I already know all of them but i just need to know how to do this. Velocity = 0x00 Velcoty - to = 0x04 Variation Area - y = 0x08 Variation Area - p = 0x0C Local Variation Weight = 0x10 Local Variation Rate = 0x14 Damping = 0x18 If you'd like to contact me, my aim is DuckM45ter (orginal huh )-Aaron edit: also if you knew how to do this in C# that would be great (i wanna learn C# lol) Last edited by Phenomena; May 26th, 2005 at 3:32 PM. |
|
|
|
|
|
#2 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Once you open the file, you get a FileStream. You can set the Position property to the offset or use the Seek method. Depending on what you are doing, it might help to create a BinaryReader on top of the stream (can get to the original stream via BaseStream to set position). Things are just easier that way
![]() Excuse the code, off the top of my head from memory. Dim file as IO.FileStream = io.file.open("C:\test",IO.FileMode.Open)
Dim reader as new io.binaryreader(f)
reader.basestream.position = 4
reader.closeLast edited by Dameon; May 26th, 2005 at 6:53 PM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|