aPACK compression

Results 1 to 7 of 7
  1. #1
    Member AcarX is offline
    MemberRank
    Aug 2015 Join Date
    79Posts

    aPACK compression

    aPACK compression
    Hi everyone. So I built this map viewer for an old MMORPG called Archlord. I would like to add an editing feature to it. The map files are compressed and currently I'm using the binary code I got from client to uncompress them. I was told by @lastfun that it's compressed using aPACK. However I cannot seem to find a matching implementation of this compression algorithm. The one I've got from the official website is working only for a small part of the file. I'll leave a compressed and uncompressed version of a sample file in the attachments.

    If you know of an implementation which works with the files I have or if you know how the algorithm works I would appreciate your help.map_sample.rar


  2. #2
    only asm, only hardcore! lastfun is offline
    DeveloperRank
    Apr 2012 Join Date
    RussiaLocation
    422Posts

    Re: aPACK compression

    hi)
    R345,438_uncompressed.dff - completely and correctly unpacked?

  3. #3
    Member AcarX is offline
    MemberRank
    Aug 2015 Join Date
    79Posts

    Re: aPACK compression

    Hey. Yes I've rendered the contents and it looks correct.

  4. #4
    only asm, only hardcore! lastfun is offline
    DeveloperRank
    Apr 2012 Join Date
    RussiaLocation
    422Posts

    Re: aPACK compression

    bro) i forgot that it was about a year ago, but this (*.dff) is not aplib ))) -> header 0x16, 0xE1
    or i forgot something really)
    p/s/ need debug client and see....

  5. #5
    Member AcarX is offline
    MemberRank
    Aug 2015 Join Date
    79Posts

    Re: aPACK compression

    All good I'm not in a rush as you might've noticed :)

    I couldn't find it but perhaps it's possible that compress function is also somewhere in the client?

  6. #6
    only asm, only hardcore! lastfun is offline
    DeveloperRank
    Apr 2012 Join Date
    RussiaLocation
    422Posts

    Re: aPACK compression

    ...possible that compress function is also somewhere in the client?
    looking in the client at now time)

  7. #7
    Member AcarX is offline
    MemberRank
    Aug 2015 Join Date
    79Posts

    Re: aPACK compression

    Oh my god I actually found the function!!

    I searched for a similar signature with original aP_pack from the dll and managed to find it after a few hours. It starts at "alefclient.exe + 0x4526F9"(at least in my version). I've tested it and it works perfectly.

    However I got no clue how to extract it as bin code since it's calling a few other functions.

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

    I just found this version of the library:
    ftp://mindcandydvd.com/pub/ANORMAL%2...b.019-jibz/vc/

    It produces a completely different packed file(same size) but somehow when unpacked it gives the same output. I will share the results once I write a complete unpacker/packer and test it.
    Last edited by AcarX; 19-11-16 at 04:01 PM.



Advertisement