ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Sep 26, 2017 12:05 am

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Help (solved)
PostPosted: Thu May 05, 2016 11:23 pm 
User avatar

Joined: Thu May 05, 2016 10:53 pm
Posts: 12
Solved

_________________
The most glorious ideas born of the most humble feathers


Last edited by Racial on Thu Dec 01, 2016 11:41 am, edited 1 time in total.

Top
   
 Post subject: Re: BPE compression
PostPosted: Fri May 06, 2016 6:28 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6718
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


Top
   
 Post subject: Solved
PostPosted: Fri May 06, 2016 11:04 am 
User avatar

Joined: Thu May 05, 2016 10:53 pm
Posts: 12
Solved


Attachments:
Files BPE.zip [156.52 KiB]
Downloaded 105 times

_________________
The most glorious ideas born of the most humble feathers


Last edited by Racial on Thu Dec 01, 2016 11:41 am, edited 1 time in total.
Top
   
 Post subject: Re: BPE compression
PostPosted: Sat May 07, 2016 9:14 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6718
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


Top
   
 Post subject: Re: BPE compression
PostPosted: Sat May 07, 2016 5:19 pm 
User avatar

Joined: Thu May 05, 2016 10:53 pm
Posts: 12
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) ?

_________________
The most glorious ideas born of the most humble feathers


Top
   
 Post subject: Re: BPE compression
PostPosted: Sat May 07, 2016 5:46 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6718
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


Top
   
 Post subject: Re: BPE compression
PostPosted: Thu Jun 29, 2017 10:17 pm 

Joined: Thu Jun 29, 2017 7:19 pm
Posts: 1
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

--------------------------------------------------


Top
   
 Post subject: Re: Help (solved)
PostPosted: Mon Jul 17, 2017 4:53 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 6718
@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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited