Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

BPE Compression

Featured Replies

  • Author
  • Localization

Racial, posted Thu May 05, 2016 11:23 pm (13153)


Solved
  • Author
  • Localization

aluigi, posted Fri May 06, 2016 6:28 am (13159)


quickbms supports the comtype bpe_compress which is just the recompression algorithm of comtype bpe (the known version of Philip Gage).
So if that's the algorithm you are looking for:
Code:
comtype bpe_compress
get SIZE asize
clog "new_file.bpe" 0 SIZE SIZE
  • Author
  • Localization

Racial, posted Fri May 06, 2016 11:04 am (13177)


Solved
  • Author
  • Localization

aluigi, posted Sat May 07, 2016 9:14 am (13195)


As I told you, the comtype to use is bpe_compress.
The following is a full script for creating a compressed file with the same format:
Code:
comtype bpe_compress
get SIZE asize
clog MEMORY_FILE2 0 SIZE SIZE
get ZSIZE asize MEMORY_FILE2
log MEMORY_FILE 0 0
put SIZE long MEMORY_FILE
put ZSIZE long MEMORY_FILE
append
log MEMORY_FILE 0 ZSIZE MEMORY_FILE2
append
get SIZE asize MEMORY_FILE
get NAME filename
string NAME ".compressed"
log NAME 0 SIZE MEMORY_FILE
  • Author
  • Localization

Racial, posted Sat May 07, 2016 5:19 pm (13201)


I used that script an works. Thanks you very much for your help.

Is there a source code for bpe_compress and bpe (for uncompress) ?
  • Author
  • Localization

aluigi, posted Sat May 07, 2016 5:46 pm (13202)


decompress: http://www.csse.monash.edu.au/cluster/R ... ress/bpd.c
compress: http://www.csse.monash.edu.au/cluster/R ... ress/bpe.c

If you prefer the code that uses the memory instead of file then check src\compression\bpd.c and src\compression\bpe.c in the source code of quickbms: http://aluigi.org/papers/quickbms_src.zip
  • Author
  • Localization

Destro, posted Thu Jun 29, 2017 10:17 pm (24352)


aluigi wrote:
decompress: http://www.csse.monash.edu.au/cluster/R ... ress/bpd.c
compress: http://www.csse.monash.edu.au/cluster/R ... ress/bpe.c

If you prefer the code that uses the memory instead of file then check src\compression\bpd.c and src\compression\bpe.c in the source code of quickbms: http://aluigi.org/papers/quickbms_src.zip


Sorry, I did not get it. How would a script be built to unzip these files?

download/file.php?id=1195

-------------------------------------------------------
Thanks for leaving the compression script =D

comtype bpe_compress
get SIZE asize
clog MEMORY_FILE2 0 SIZE SIZE
get ZSIZE asize MEMORY_FILE2
log MEMORY_FILE 0 0
put SIZE long MEMORY_FILE
put ZSIZE long MEMORY_FILE
append
log MEMORY_FILE 0 ZSIZE MEMORY_FILE2
append
get SIZE asize MEMORY_FILE
get NAME filename
log NAME 0 SIZE MEMORY_FILE

--------------------------------------------------
  • Author
  • Localization

aluigi, posted Mon Jul 17, 2017 4:53 pm (24775)


@Racial
please don't edit your first post deleting its content or others people with the same problem will not found the solution. thanks

@Destro
not sure if you found the solution or not, it looks like you used the script I posted so I guess it's solved
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.