Dark Bit Factory & Gravity

GENERAL => General chat => Topic started by: Hotshot on March 20, 2007

Title: Compress Files?
Post by: Hotshot on March 20, 2007
hey all

There are so many compress files but I am looking for UPX compress for Blitz 3D. if there any compress files better than UPX compress files then I am all ear (with hearing aids lol)

cheers
Title: Re: Compress Files?
Post by: ferris on March 20, 2007
kkrunchy by Ryg of Farbrausch is the best executable packer I know.

http://www.pouet.net/prod.php?which=26088

All you do is drag youy B3D executable over this one and it will be compressed better than UPX :)
Title: Re: Compress Files?
Post by: Hotshot on March 20, 2007
I have drag  B3D executable over this one (kkrunchy.exe) and nothing happend.....

I am missing somethings?
Title: Re: Compress Files?
Post by: ferris on March 20, 2007
It should quickly open and close a DOS window.

The filesize might not seem to have been affected because of the way Windows Explorer doesn't ever want to refresh :)

Try right-clicking the B3D executable and clicking properties and see if the size has changed.
Title: Re: Compress Files?
Post by: Hotshot on March 20, 2007
The Blitz 3D.exe files is the same  1.24MB 
The library run on window 2000(just let u know)
Title: Re: Compress Files?
Post by: ferris on March 20, 2007
hm..

Strange.

put this into a .bat file in the same folder as your B3D executable and kkrunchy.exe:


@kkrunchy.exe [b3dexecutablename.exe]
@pause


and replace "[b3dexecutablename.exe]" with whatever your b3d executable is called.

This should allow you to read the error that's occurring (if any)
Title: Re: Compress Files?
Post by: Hotshot on March 20, 2007
I understand everythings apart from .bat folder (where that is unless I make my own .bat folder?)

Title: Re: Compress Files?
Post by: Hotshot on March 20, 2007
Do I have create .bat files?
Title: Re: Compress Files?
Post by: ferris on March 20, 2007
Yeah. Just use notepad, and save it as type "all files" as compress.bat .

When you run the batch file it should do the same thing as dragging the B3D exe over kkrunchy, but also keeps the window up until you press a key.

Just be sure you read what the DOS window says and have the .bat file in the same folder as the B3D and kkrunchy executables.
Title: Re: Compress Files?
Post by: Hotshot on March 20, 2007
thank you very much and I let u know how I get on.  :goodpost:
Title: Re: Compress Files?
Post by: ferris on March 20, 2007
Good luck  :buddies:
Title: Re: Compress Files?
Post by: mike_g on March 20, 2007
Hey kkrunchy looks like a nice little program. I tried using it on a Blitz3d exe and I got the same problem as hotshot.

If I drag the exe over kkrunchy I get a beep sound and a message flashes up which I can barely read before the window closes. Something like 'no symbol info present' and some other stuff.

Then I made a batch file but when I run it, it gives me a message saying that it couldent open the input file.

This was my what was in my batch file:
@kkrunchy.exe [TestProg.exe]
@pause

Where TestProg is a Blitz3D exe I made thats in the same directory.
Title: Re: Compress Files?
Post by: ferris on March 20, 2007
Remove the brackets. Those were just in there to show it's a filename.
Title: Re: Compress Files?
Post by: mike_g on March 20, 2007
Sorry I dont know much about DOS commands. Now it goes back to the original error message, but at least I can read it this time:

- using good packer frontend
- no symbol info present
- preprocessing, filtering & reslicing
- ERROR: files with exports or tls data are not supported

I am not sure what exports or tls data means, any ideas ???
Title: Re: Compress Files?
Post by: ferris on March 20, 2007
No ideas, sorry bud.

I use kkrunchy on my freebasic and C prods and I've never got that error.
Title: Re: Compress Files?
Post by: Jim on March 20, 2007
It's basically saying that Blitz EXEs are wierd.  And they are - they're all encrypted.  If you write a C program like this

#include <stdio.h>
int main(void) {
printf("Hello");
return 0;
}

and build it, then load the exe in notepad you will be able to see the 'Hello' in there.  Try that with a Blitz exe and all the strings are hidden.

Exports are symbols (functions and data) that Blitz3D is providing to other programs.  TLS is 'thread local storage'.  I'm not sure why a Blitz EXE would use either of those - possibly due to the somewhat braindead way it links in the blitz runtime with your program.

Just have to stick with RAR or UPX.

Jim
Title: Re: Compress Files?
Post by: mike_g on March 20, 2007
Thanks for the explanation jim :)
Title: Re: Compress Files?
Post by: Hotshot on March 21, 2007
The UPX work very well with Blitz 3D.exe files( the files u have made) but when come to KCUNTKY....it doesnt work but it does work for blitzmax. Like what jim say....just stick what u got =)
Title: Re: Compress Files?
Post by: Paul on March 21, 2007
UPX worked perfectly, got my b3d exe from 1.27 mb to 474 kb :)

I get the same error with kkrunchy
Title: Re: Compress Files?
Post by: Hotshot on March 21, 2007
474 kb ? it still big files as it would be nice if go down to 64K !

:cheers:
Title: Re: Compress Files?
Post by: ferris on March 21, 2007
Lol..for 64k the original usually needs to start under 200k.
Title: Re: Compress Files?
Post by: Jim on March 21, 2007
For programs a 2:1 compression ratio is excellent, so 64Kb from a 1.2Mb exe (20:1) isn't going to happen unless it's all full of zeros!

Jim