Author Topic: Compress Files?  (Read 8952 times)

0 Members and 1 Guest are viewing this topic.

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Compress Files?
« 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
« Last Edit: March 20, 2007 by Hotshot »

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: Compress Files?
« Reply #1 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 :)
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Compress Files?
« Reply #2 on: March 20, 2007 »
I have drag  B3D executable over this one (kkrunchy.exe) and nothing happend.....

I am missing somethings?

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: Compress Files?
« Reply #3 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.
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Compress Files?
« Reply #4 on: March 20, 2007 »
The Blitz 3D.exe files is the same  1.24MB 
The library run on window 2000(just let u know)

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: Compress Files?
« Reply #5 on: March 20, 2007 »
hm..

Strange.

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

Code: [Select]
@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)
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Compress Files?
« Reply #6 on: March 20, 2007 »
I understand everythings apart from .bat folder (where that is unless I make my own .bat folder?)


Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Compress Files?
« Reply #7 on: March 20, 2007 »
Do I have create .bat files?

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: Compress Files?
« Reply #8 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.
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Compress Files?
« Reply #9 on: March 20, 2007 »
thank you very much and I let u know how I get on.  :goodpost:

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: Compress Files?
« Reply #10 on: March 20, 2007 »
Good luck  :buddies:
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline mike_g

  • Amiga 1200
  • ****
  • Posts: 435
  • Karma: 34
    • View Profile
Re: Compress Files?
« Reply #11 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:
Code: [Select]
@kkrunchy.exe [TestProg.exe]
@pause
Where TestProg is a Blitz3D exe I made thats in the same directory.

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: Compress Files?
« Reply #12 on: March 20, 2007 »
Remove the brackets. Those were just in there to show it's a filename.
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline mike_g

  • Amiga 1200
  • ****
  • Posts: 435
  • Karma: 34
    • View Profile
Re: Compress Files?
« Reply #13 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:
Code: [Select]
- 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 ???

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: Compress Files?
« Reply #14 on: March 20, 2007 »
No ideas, sorry bud.

I use kkrunchy on my freebasic and C prods and I've never got that error.
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Compress Files?
« Reply #15 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
Code: [Select]
#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
Challenge Trophies Won:

Offline mike_g

  • Amiga 1200
  • ****
  • Posts: 435
  • Karma: 34
    • View Profile
Re: Compress Files?
« Reply #16 on: March 20, 2007 »
Thanks for the explanation jim :)

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Compress Files?
« Reply #17 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 =)

Offline Paul

  • Pentium
  • *****
  • Posts: 1490
  • Karma: 47
    • View Profile
Re: Compress Files?
« Reply #18 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
I will bite you - http://s5.bitefight.se/c.php?uid=31059
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Compress Files?
« Reply #19 on: March 21, 2007 »
474 kb ? it still big files as it would be nice if go down to 64K !

 :cheers: