Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 12-29-2011 , 14:37   [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #1

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.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 12-29-2011 , 22:05   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #2

Thank you. Exactly what's needed for a sourcetv demo uploader.
__________________
Peace-Maker is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 01-06-2012 , 18:59   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #3

Quote:
Originally Posted by Peace-Maker View Post
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
__________________
zeroibis is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-18-2012 , 07:03   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #4

Would it be hard to do just the same for gunzip compression?
I'd like to try to read .smx files directly in sourcepawn

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

Last edited by Peace-Maker; 01-18-2012 at 07:28.
Peace-Maker is offline
Corneus
SourceMod Donor
Join Date: Feb 2012
Location: iFrame
Old 03-16-2012 , 05:11   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #5

Great, thanks i needed this.

Last edited by Corneus; 03-16-2012 at 05:15.
Corneus is offline
kv.acid
New Member
Join Date: Apr 2012
Old 08-30-2012 , 06:04   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #6

Не загружается расширение, в чем проблема?
Not load the extension, what is the problem?
server info

Last edited by kv.acid; 08-30-2012 at 06:25.
kv.acid is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 08-31-2012 , 13:23   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #7

Quote:
Originally Posted by kv.acid View Post
Not load the extension, what is the problem?
I've rebuilt the extension using -Wl,--hash-style=sysv. Re-download and try again.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
kv.acid
New Member
Join Date: Apr 2012
Old 09-02-2012 , 13:42   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #8

Quote:
Originally Posted by Thrawn2 View Post
I've rebuilt the extension using -Wl,--hash-style=sysv. Re-download and try again.
Does not work, maybe I have something wrong?
Не работает, может быть я что то не так делаю?
info
kv.acid is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 09-15-2012 , 10:35   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #9

Quote:
Originally Posted by kv.acid View Post
Invalid ELF header
Try the attached binary.
Attached Files
File Type: so smbz2.ext.so (101.0 KB, 1146 views)
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
kv.acid
New Member
Join Date: Apr 2012
Old 09-16-2012 , 12:44   Re: [EXTENSION] bzip2 Compression v0.0.2 (2011-12-29)
Reply With Quote #10

Quote:
Originally Posted by Thrawn2 View Post
Try the attached binary.
Now it works. Thank you.
sm exts list
kv.acid is offline
Reply


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


All times are GMT -4. The time now is 19:11.


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