Welcome, Guest. Please Login
Back to main page
  News:
Welcome to the ShadowFlare's Realm Forums.  New registrations are by request only.  To be considered for a new forum account, send an e-mail with the user name and display name you want and the reason you want to register.
  Home SFRealm HelpSearchLogin  
 
Pages: 1
Send Topic Print
How to decompress w3g file on Delphi? (Read 2208 times)
Wi34rD
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 1

How to decompress w3g file on Delphi?
Sep 21st, 2005, 10:31am
 
I bad speak english, so exuse me, plz.
Back to top
 
 
  IP Logged
wulfskin
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 30
Germany
Gender: male
Re: How to decompress w3g file on Delphi?
Reply #1 - Sep 22nd, 2005, 9:20pm
 
Hello,

an extract out of my program: Code:
		for I := 1 to FBlockCount do begin
		  BlockSize := ReadWord;
		  Seek(6, soFromCurrent);
		  ZipStream := TMemoryStream.Create;
		  ZipStream.CopyFrom(FileStream, BlockSize);
		  DezipStream := TZDecompressionStream.Create(ZipStream);
		  ReplayStream.CopyFrom(DezipStream, 0);
		  DezipStream.Free;
		  ZipStream.Free;
		end; 

Google for Ziblib and Delphi to get the unit for extraction.

Regards,
Hape
Back to top
 
 
82940309   IP Logged
Wird
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 1

Re: How to decompress w3g file on Delphi?
Reply #2 - Aug 28th, 2006, 10:40am
 
Who can give me source-code on Delphi?
Back to top
 
 
  IP Logged
wulfskin
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 30
Germany
Gender: male
Re: How to decompress w3g file on Delphi?
Reply #3 - Aug 28th, 2006, 11:13am
 
Hello,

my program "Replay Explorer" is open source and written in delphi. The source code is not documented/commented, sorry.
You may want to look at my source:
http://sourceforge.net/projects/rep-ex.
Extraction is in unit "w3g.pas".
If you got any further question, you're welcome to ask!

Regards,
Hape
Back to top
 
 
82940309   IP Logged
Pages: 1
Send Topic Print