how to open .tpk files

Discussion in 'PSP - Hacking & Homebrew' started by kaikaiser, Sep 13, 2015.

  1. kaikaiser
    OP

    kaikaiser GBAtemp Regular

    Member
    145
    52
    Aug 12, 2015
    United States
    Here's a new question, how do you open .tpk files? I have a psp game file that is a script but is .tpk there are other different files that are also the same extension for similar files. Thanks for your help!
     
    Last edited by kaikaiser, Sep 13, 2015
  2. zero_g_monkey

    zero_g_monkey GBAtemp Fan

    Member
    332
    203
    Aug 9, 2013
    United States
    What game is it from? The .tpk file is commonly used by Imageepoch. Sometimes they are compressed, sometimes they are not. But they almost always use utf-8 encoding for dialogs.
     
  3. kaikaiser
    OP

    kaikaiser GBAtemp Regular

    Member
    145
    52
    Aug 12, 2015
    United States
    Bingo it's : final promise story by imageepoch prequel to sol trigger. There are quite a few files with this.
     
  4. JamRules

    JamRules ...

    Member
    428
    421
    Jan 9, 2014
    In this case Final Promise Story files aren't compressed, which actually makes it a pain for sizing.

    The game doesn't have a full English font set, you'll need to modify the games fonts (there's 2). A VWF hack is also needed (if you want it to look any good)

    Example of what I mean by not having a full english set
    [​IMG]

    The .tpk is different to the one in unchained blades, that's most likely a "texture pack", its a set of pointers followed by .gim images
     
    Last edited by JamRules, Sep 14, 2015
  5. zero_g_monkey

    zero_g_monkey GBAtemp Fan

    Member
    332
    203
    Aug 9, 2013
    United States
    I can second what Jam is saying. Final Promise Story is gonna be a pain to work on unless you have some really good programming skills. The space is there for dialog "if" you can add single width latin characters to the font but it is really annoying have to use the 3 byte utf-8 full width characters. Trust, I have this game in my project folder when I want to get pissed off at my computer. A quick way to tell if the file is a typical .tpk is use the search function in your hex editor and look for ZZZ0 <- That is a zero by the way. If you find ZZZ0 somewhere in the file, it's got some compression. It won't always be at the beginning either. There is a QuickBMS script for opening files like that but getting them back together is beyond me at the moment. I will offer any advice I can but I can't offer any hacking help. I have 6 different games I am working on at this moment.
     
    JamRules likes this.
  6. JamRules

    JamRules ...

    Member
    428
    421
    Jan 9, 2014
    There is loads of problems for this game,
    the cutscenes are also 2 lines and randomly mess up depending on the text you use so some asm hacking is needed to fix that.
    It's kinda on my todo list, maybe in 2017...
    I vaguely know what I'm doing

    [​IMG]
     
  7. kaikaiser
    OP

    kaikaiser GBAtemp Regular

    Member
    145
    52
    Aug 12, 2015
    United States
    Wow OK I think I'll pass too I'm still trying to figure all of this out and that's way passed my abilities, but thanks for the info. Maybe latter I could help in a translation or something let me know.