Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Compression and Decompression plugin DLL?

Author
Message
Zodiara
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location:
Posted: 30th Jul 2004 08:39
I'm looking for a plugin DLL that can do both compression and decompression of binary files. I want to use this to compress the save files in my DarkBASIC pro game and then obviously decompress them when the user loads the file. I've seen some posts about such plugins, but they seem to lack the compression part of it and only focus on decompression.
Oak
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location:
Posted: 31st Jul 2004 05:27
Yes, I'm looking for the same kind of thing that will compress game turns to keep them small for emailing. Some kind of plugin would be ideal that supports any format of compression. I don't want to compress the game exe itself, just the files it makes, kind of like making a zip program out of DB. Anyone?

Thanks,

Oak

There are 10 kinds of people in this world. Those that understand binary and those that don't.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 31st Jul 2004 05:40
Only Americans have the ZIP compression and decompression plug-ins - although I dont see why isn't shouldn't be made availiable for all now.


I came, I saw and I forgot all about it... or something...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Jul 2004 05:42
How about you both describe the functionality that you require - what you want to do, and how you see it working, suggestions on the commands that you want to see.

I can't promise anything, but I might be able to start taking a look at it later on next week.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 31st Jul 2004 05:43
Zip compression/decompression


I came, I saw and I forgot all about it... or something...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Jul 2004 07:37
Is that all you want? Then call winzip using the system command

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 31st Jul 2004 07:42
And what if they dont have it (I dont...) ?


I came, I saw and I forgot all about it... or something...
Zodiara
20
Years of Service
User Offline
Joined: 30th Jul 2004
Location:
Posted: 3rd Aug 2004 02:05 Edited at: 3rd Aug 2004 02:10
In reply to: "...suggestions on the commands that you want to see."

I'd like to see 2 function calls, which are:

Compress file(input_file$, output_file$)
Decompress file(input_file$, output_file$)

If adding in a little more functionality wouldn't be too difficult I'd even like to see this:

Compress file(input_file$, output_file$, compression_strength as int)
Decompress file(input_file$, output_file$, compression_strength as int)

I know ZIP has multiple compression levels, as do several other compression types as well. Basically I don't really need to have any specific compression type since several kinds seem to do just fine. I've tested ZIP, RAR, and GZIP just on the file itself and all seem to perform the same.
Oak
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location:
Posted: 3rd Aug 2004 03:18
I think Zodiara has the right idea there. On the compression strength, I'd just default it to max and if you want less specify a value. Other than that, I'm in agreement 100%. It'll have to be internal to DB in the exe though because like has been posted, no one can tell what someone's going to have on their machine for compression utilities.

Thanks for considering this. It would be really awesome to have in DB.


Oak

There are 10 kinds of people in this world. Those that understand binary and those that don't.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 3rd Aug 2004 03:29
Quote: "Only Americans have the ZIP compression and decompression plug-ins - although I dont see why isn't shouldn't be made availiable for all now."


Hehe don't get me started on that issue :p

On the old RGT I said that I didn't think it was a good idea (other users chose better ways to put it - indi's reply to the topic was great).
What do I get? A massive long reply and the topic locked. Later I'm called a moaning kid by somebody. Hmm.

Anyway I'm dragging this off-topic. I'll stop

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Fallout
22
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 3rd Aug 2004 04:52
I might give a standard huffman encoding compression system a whirl. It's very simple, and might be quite successful. I'm just curious as how I'm going to read and create binary code in db. I guess that's where DLLs from other languages comes in handy.

Oak
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location:
Posted: 10th Aug 2004 03:07 Edited at: 10th Aug 2004 03:09
Perhaps this link will be useful for someone looking to create a DB tool.
http://www.componentace.com
There are several tools listed here that do compression in software but they're designed to be used in Delphi or C++. I'd love to have something made for DB like one of these.

Oak

There are 10 kinds of people in this world. Those that understand binary and those that don't.
Mike Johnson
TGC Developer
22
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 10th Aug 2004 05:20
Commands to do what you want are included in the Enhancements Expansion Pack. More info on this will be released soon.

Mike

Login to post a reply

Server time is: 2025-06-18 04:53:09
Your offset time is: 2025-06-18 04:53:09