Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 26th, 2005, 3:18 PM   #1
Phenomena
Newbie
 
Join Date: May 2005
Posts: 1
Rep Power: 0 Phenomena is on a distinguished road
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.
Phenomena is offline   Reply With Quote
Old May 26th, 2005, 6:50 PM   #2
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
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.close

Last edited by Dameon; May 26th, 2005 at 6:53 PM.
Dameon is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:02 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC