Unpack .LFD/LFI files?

Discussion in 'Sony Programming and Development' started by americandad, Jun 14, 2016.

  1. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    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!IPYTI6tExhJAVEg0kEmCZUWu9UctMsnjF8Jd4BouJ5g
    [​IMG]
    [​IMG]
     
    Last edited: Jun 14, 2016
  2. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    BUMP!
    Maybe someone can point me to some computer wiz forum where I can ask about this?
     
  3. rso

    rso Gone. See y'all elsewhere, maybe.

    Joined:
    Mar 26, 2010
    Messages:
    2,190
    Likes Received:
    447
    The PC version (not sure about the others) of Discworld is supported by ScummVM, maybe the PS files have a similar structure (or are already supported, even)? See what the Scumm guys came up with.
     
  4. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    Thank you, but I think you misunderstood the problem.
    I'm looking to extract files from the ".LFD/.LFI" archive. The normal EU version of the game has the files unpacked and easily accesible
    The German version (and the russian bootleg based on it) has all of the files packed into a".LFD/.LFI" archive.
    I want to unpack this archive.
    I don't see how the SCUMM team could help me with this, unless I'm missing something.

    [​IMG] [​IMG]
     
  5. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    Update, got a reply from a guy on another site:
    http://encode.ru/threads/2528-HELP-Unknown-archive-type

    This tells me absolutely nothing, as I'm a total noob at programming/etc. Can someone tell me how this information is useful and how exactly I can use it?
     
    gwald likes this.
  6. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    Ok, then. Problem solved.
    Shelwien @ encode.ru made an app to unpack the LFD archive.
     
  7. Decapicitated

    Decapicitated Site Supporter 2011-13 Lara Croft

    Joined:
    Apr 17, 2011
    Messages:
    399
    Likes Received:
    33
    Those are audio files, stored in some container-like format.
     
    Last edited: Jun 15, 2016
  8. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    No, my man, they're not audio files. There are, however, audio files amongst other files.
    This question has been solved, thanks to Shelwien @ encode.ru.
     
    gwald likes this.
  9. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    New, question. Semi related to this. How do you find and extract fonts in PSX games?
     
  10. gwald

    gwald Net Yaroze '99

    Joined:
    Jan 6, 2016
    Messages:
    105
    Likes Received:
    36
    IMO a vram view on an emulator would be the easiest way to find it, to extract it, you'd have to guess the CLUT for it
     
    americandad likes this.
  11. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    What's clut? I've been playing around with nop$x, psX and ppv for this very reason.
    I just don't know where to look, or what CLUT is..
     
    Last edited: Jun 16, 2016
  12. rso

    rso Gone. See y'all elsewhere, maybe.

    Joined:
    Mar 26, 2010
    Messages:
    2,190
    Likes Received:
    447
    colour look-up table. aka palette.
     
    americandad likes this.
  13. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    Thanks. So what, if I don't know the clut I might not see the font?
     
  14. Gemini

    Gemini Retro developer

    Joined:
    Apr 1, 2008
    Messages:
    406
    Likes Received:
    88
  15. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    Ok. Thing is I don't see the font by just viewing vram in no$psx. Is there some particular way of looking for it?
     
  16. Gemini

    Gemini Retro developer

    Joined:
    Apr 1, 2008
    Messages:
    406
    Likes Received:
    88
    VRAM inspection can be useful or not, depends on how the game actually handles the font itself. It could be caching on demand, which means font glyph data is stored somewhere in RAM and uploaded on demand with only the necessary symbols. Alternatively it's just there somewhere stored entirely in a couple pages, possibly using clut tricks to achieve overlapping pages.
     
    gwald and americandad like this.
  17. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    Ah. Ok.
     
  18. gwald

    gwald Net Yaroze '99

    Joined:
    Jan 6, 2016
    Messages:
    105
    Likes Received:
    36
    Screenshot from 2016-06-16 17:56:24.png Screenshot from 2016-06-16 17:15:43.png

    Check the poly list, on no$psx, it shows the texture tpage with the clut used applied to the image.
    I often take screenshots and zoom in to it, to find stuff.
     
    Last edited: Jun 16, 2016
    americandad likes this.
  19. americandad

    americandad Familiar Face

    Joined:
    Jul 4, 2011
    Messages:
    1,439
    Likes Received:
    275
    Thanks alot for this useful info.
    Someone showed me another way. Using Patch Maker and Total Commander to compare files for differences. That worked too.
     
    gwald likes this.
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page