Me and my FSH files again xD
Posted: Thu Feb 24, 2005 5:25 pm
Hey people 
I've continued to research about the FSH file format. I know now a friend who has deciphered that code in Delphi. I might have a little chat with him about this later. Now, for what he has been telling me and such, the file format is organized, so I won't have some problems, but, I was wondering...
I noticed the PeekB function, and as the file is made in binary, meaning it's just some ascii gibberish, I was wondering if with that, and a special instruction, it would be possible to join those bytes and read them as an image, sorta like a CatchImage. If that's so, anyone have a little example of how is that done and if it's possible also to "move" the starting position from where PeekB starts?
Edit:
Okay I spoke with my friend and he showed me the Delphi source (which is downloadable
) I noticed he uses hex positions to place the "reading" cursor and uses words and bytes as data types for reading too. Any help with that? I can show the source of the whole function if any of you wish (which has implemented other file types I need, as FBJ and FS2, but he reads it the same way as FSHs
.
Edit 2:
This is from the convo:
"TMemoryStream is a TStream varient. That's an object set that abtracts basic read/write functions. Filestream loads/saves to a file, Memorystream uses memory blocks, Resourcestream works from EXE resources and so on."
I hope some of this information is useful
I've continued to research about the FSH file format. I know now a friend who has deciphered that code in Delphi. I might have a little chat with him about this later. Now, for what he has been telling me and such, the file format is organized, so I won't have some problems, but, I was wondering...
I noticed the PeekB function, and as the file is made in binary, meaning it's just some ascii gibberish, I was wondering if with that, and a special instruction, it would be possible to join those bytes and read them as an image, sorta like a CatchImage. If that's so, anyone have a little example of how is that done and if it's possible also to "move" the starting position from where PeekB starts?
Edit:
Okay I spoke with my friend and he showed me the Delphi source (which is downloadable
Edit 2:
This is from the convo:
"TMemoryStream is a TStream varient. That's an object set that abtracts basic read/write functions. Filestream loads/saves to a file, Memorystream uses memory blocks, Resourcestream works from EXE resources and so on."
I hope some of this information is useful