AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29) (https://forums.alliedmods.net/showthread.php?t=175063)

Thrawn2 12-29-2011 14:37

[EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
This is a very basic (yet threaded) wrapper around libbzip2.
I give no guarantees that this works nor that you won't throw up if you start looking at the code. You have been warned.

This extension registers as the 'bzip2' library.

Natives:
PHP Code:

BZ2_DecompressFile(String:inFile[], String:outFile[], BZ2Callback:cbany:data 0);
BZ2_CompressFile(String:inFile[], String:outFile[], iCompressionLevelBZ2Callback:cbany:data 0); 

Callback: The same for both compression and decompression
PHP Code:

public(BZ_Error:iErrorString:inFile[], String:outFile[], any:data

Source, changelog and binaries
are on github.
Direct link to the include file: here.

Peace-Maker 12-29-2011 22:05

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
Thank you. Exactly what's needed for a sourcetv demo uploader.

zeroibis 01-06-2012 18:59

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
Quote:

Originally Posted by Peace-Maker (Post 1621987)
Thank you. Exactly what's needed for a sourcetv demo uploader.

Or even a demo saver for that matter. I would love to see an updated version of this plugin with support for this: http://forums.alliedmods.net/showthread.php?p=824438

Peace-Maker 01-18-2012 07:03

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
Would it be hard to do just the same for gunzip compression?
I'd like to try to read .smx files directly in sourcepawn :D

+ Options to compress/decompress just sets of binary data directly instead of whole files.

Corneus 03-16-2012 05:11

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
Great, thanks i needed this.

kv.acid 08-30-2012 06:04

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
Не загружается расширение, в чем проблема?
Not load the extension, what is the problem?
server info

Thrawn2 08-31-2012 13:23

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
Quote:

Originally Posted by kv.acid (Post 1786806)
Not load the extension, what is the problem?

I've rebuilt the extension using -Wl,--hash-style=sysv. Re-download and try again.

kv.acid 09-02-2012 13:42

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
Quote:

Originally Posted by Thrawn2 (Post 1787944)
I've rebuilt the extension using -Wl,--hash-style=sysv. Re-download and try again.

Does not work, maybe I have something wrong?
Не работает, может быть я что то не так делаю?
info

Thrawn2 09-15-2012 10:35

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
1 Attachment(s)
Quote:

Originally Posted by kv.acid (Post 1789744)
Invalid ELF header

Try the attached binary.

kv.acid 09-16-2012 12:44

Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
 
Quote:

Originally Posted by Thrawn2 (Post 1799894)
Try the attached binary.

Now it works. Thank you.
sm exts list


All times are GMT -4. The time now is 17:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.