Results 1 to 14 of 14

Thread: [HELP] Unknown archive type

  1. #1
    Member
    Join Date
    Aug 2015
    Location
    Internet
    Posts
    12
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Question [HELP] Unknown archive type

    Hello there.


    I've got two files which need to be unpacked.
    Or rather one file (.LFD), as the other one (.LFI) seems to be an index file for the archive.


    These two files contain the bulk of a russian bootleg translation of the Discworld (SLES-00193) game.


    A file identifier app (TrIDNet) gives a 100% positive I.D. of the LFD file as an LPAQ archive.
    However, after talking to LPAQ's author (and mentioning to him that the files in question are dated 1996) he told me that they can't be LPAQ files, as he first released the format in 2007.


    So, could anyone help me unpack these files?


    I hope it's ok to post them here, otherwise I'll remove the link.
    https://mega.nz/#!oMlVUAiB!IPYTI6tEx...snjF8Jd4BouJ5g


  2. #2
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    I don't think that it uses any general-purpose compression at all.
    The first part (.VB-files etc) consists of 16-byte chunks which look like output from some G.7xx audiocodec
    And the later part (.SCN-files) looks like uncompressed 32-bit images.

  3. The Following User Says Thank You to Shelwien For This Useful Post:

    bugmenot (16th June 2016)

  4. #3
    Member
    Join Date
    Aug 2015
    Location
    Internet
    Posts
    12
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Question

    Quote Originally Posted by Shelwien View Post
    I don't think that it uses any general-purpose compression at all.
    The first part (.VB-files etc) consists of 16-byte chunks which look like output from some G.7xx audiocodec
    And the later part (.SCN-files) looks like uncompressed 32-bit images.
    Maybe it's not compressed, like you say. Maybe it's just archived in to a single file, without compression.
    However, how would one unpack this archive?

  5. #4
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    the .LFI index has a really simple structure:
    Code:
    0000: db '0000.SEQ',0,0,0,0
    000C: dd 0E8Ch
    0010: dd 0
    0014: db '0000.VB',0,0,0,0,0
    0020: dd 270F0h
    0024: dd 2
    0028: db '0000.VH',0,0,0,0,0
    0034: dd 1830h
    0038: dd 81
    003C: db '0001.SEQ',0,0,0,0
    0048: dd 0E03h
    004C: dd 85
    0050: db '0001.VB',0,0,0,0,0
    005C: dd 20E30h
    0060: dd 87
    In other words, there's 12-byte filename, 32-bit filesize, 32-bit index of a 2k block (ie index*2048 is file position in .LFD archive).

    Finding the right audiocodec for VB-files might be hard though - but maybe there're some hints in other game files?

  6. The Following User Says Thank You to Shelwien For This Useful Post:

    bugmenot (16th June 2016)

  7. #5
    Member
    Join Date
    Aug 2015
    Location
    Internet
    Posts
    12
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by Shelwien View Post
    the .LFI index has a really simple structure:
    Code:
    0000: db '0000.SEQ',0,0,0,0
    000C: dd 0E8Ch
    0010: dd 0
    0014: db '0000.VB',0,0,0,0,0
    0020: dd 270F0h
    0024: dd 2
    0028: db '0000.VH',0,0,0,0,0
    0034: dd 1830h
    0038: dd 81
    003C: db '0001.SEQ',0,0,0,0
    0048: dd 0E03h
    004C: dd 85
    0050: db '0001.VB',0,0,0,0,0
    005C: dd 20E30h
    0060: dd 87
    In other words, there's 12-byte filename, 32-bit filesize, 32-bit index of a 2k block (ie index*2048 is file position in .LFD archive).

    Finding the right audiocodec for VB-files might be hard though - but maybe there're some hints in other game files?
    I should be clear, I have no idea about these things. I'm a total noob when it comes to programming/computer science.

    The audiocodec is not important because they didn't translate the audio. They only translated the text. That should be in "GERMAN.TXT" + a russian font (wherever that is stored).

    Here's the thing I just want to unpack the .LFD archive to get plain files, but how do I do this (being the utter noob that I am)? Where do I begin?

  8. #6
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    ok, here's a dumper.
    Attached Files Attached Files

  9. The Following User Says Thank You to Shelwien For This Useful Post:

    bugmenot (16th June 2016)

  10. #7
    Member
    Join Date
    Aug 2015
    Location
    Internet
    Posts
    12
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Lightbulb

    Quote Originally Posted by Shelwien View Post
    ok, here's a dumper.
    Great Scott!!
    Thank you very much!
    Last edited by bugmenot; 16th June 2016 at 00:52.

  11. #8
    Member
    Join Date
    Aug 2015
    Location
    Internet
    Posts
    12
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Question

    One last question (I promise), how would I go about if I wanted to repack those files into .LFD?

  12. #9
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    Well, if its just this one file, it would be easier to just paste it back into archive with any binary file editor, like winhex or something.

    Or, alternatively, somebody would have to write another script like that one.

  13. The Following User Says Thank You to Shelwien For This Useful Post:

    bugmenot (16th June 2016)

  14. #10
    Member
    Join Date
    Aug 2015
    Location
    Internet
    Posts
    12
    Thanks
    6
    Thanked 0 Times in 0 Posts
    I see. So following your explanation above about "32bit index of a 2k block" I could paste a file back into the .LFD?
    Would it be possible to paste a +300MB file this way?
    Could you maybe write another script?

  15. #11
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    This worked for me, although it was tricky to get it to make _exactly_ the same .lfd file - for 9 files paddings are different.
    Its probably the ones modified by translators or something.
    Attached Files Attached Files

  16. The Following User Says Thank You to Shelwien For This Useful Post:

    bugmenot (16th June 2016)

  17. #12
    Member
    Join Date
    Aug 2015
    Location
    Internet
    Posts
    12
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Talking r

    Quote Originally Posted by Shelwien View Post
    This worked for me, although it was tricky to get it to make _exactly_ the same .lfd file - for 9 files paddings are different.
    Its probably the ones modified by translators or something.
    Very cool.
    I wonder, do I have to edit the filesize in "lfd.log" for the files I want to replace?
    Because the new files are of a different size.

  18. #13
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Location
    Kharkov, Ukraine
    Posts
    3,134
    Thanks
    179
    Thanked 921 Times in 469 Posts
    No, lfd_pack only takes the filenames from the log

  19. The Following User Says Thank You to Shelwien For This Useful Post:

    bugmenot (16th June 2016)

  20. #14
    Member
    Join Date
    Aug 2015
    Location
    Internet
    Posts
    12
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Thanks a lot, man! Really appreciate it.

Similar Threads

  1. File Type Identity Quandry
    By william.thompsonj in forum The Off-Topic Lounge
    Replies: 2
    Last Post: 23rd November 2011, 00:33
  2. Unknown compression.
    By yjme in forum Data Compression
    Replies: 7
    Last Post: 21st January 2011, 12:11
  3. Unknown archive
    By Surfer in forum The Off-Topic Lounge
    Replies: 6
    Last Post: 15th July 2010, 00:59
  4. What type of hashing is this.
    By Earl Colby Pottinger in forum Data Compression
    Replies: 11
    Last Post: 22nd June 2010, 05:23
  5. MM type detector
    By Bulat Ziganshin in forum Forum Archive
    Replies: 10
    Last Post: 5th April 2007, 15:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •