Code Monkey home page Code Monkey logo

cpktools's People

Contributors

kamikat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpktools's Issues

Unpack Error: Bakemonogatari Portable, CPKFBSTD1.18.04, DLL2.78.04

羽神你好,化物语PSP cpk解包出错:
T:\cpktools-master\cpktools-master>"F:\Python27\python.exe" cpkunpack.py "T:\Gamersky_Bakemonogatari
.Portable_psp\Bakemonogatari Portable\PSP_GAME\USRDIR\rom\exrom.cpk"
Read T:\Gamersky_Bakemonogatari.Portable_psp\Bakemonogatari Portable\PSP_GAME\USRDIR\rom\exrom.cpk..

.

Schema CpkHeader (CPK)

    56                 UpdateDateTime(0x00000011)
    16                       FileSize(0x00000020)
    56                  ContentOffset(0x00000029)
    56                    ContentSize(0x00000037)
    16                      TocOffset(0x00000043)
    16                        TocSize(0x0000004d)
    14                         TocCrc(0x00000055)
    16                     EtocOffset(0x0000005c)
    16                       EtocSize(0x00000067)
    56                     ItocOffset(0x00000070)
    56                       ItocSize(0x0000007b)
    14                        ItocCrc(0x00000084)
    16                     GtocOffset(0x0000008c)
    16                       GtocSize(0x00000097)
    14                        GtocCrc(0x000000a0)
    56              EnabledPackedSize(0x000000a8)
    56                EnabledDataSize(0x000000ba)
    16                  TotalDataSize(0x000000ca)
    14                           Tocs(0x000000d8)
    54                          Files(0x000000dd)
    54                         Groups(0x000000e3)
    54                          Attrs(0x000000ea)
    14                     TotalFiles(0x000000f0)
    14                    Directories(0x000000fb)
    14                        Updates(0x00000107)
    52                        Version(0x0000010f)
    52                       Revision(0x00000117)
    52                          Align(0x00000120)
    52                         Sorted(0x00000126)
    52                            EID(0x0000012d)
    54                        CpkMode(0x00000131)
    5a                          Tvers(0x00000139)
    1a                        Comment(0x0000013f)
    54                          Codec(0x00000147)
    54                        DpkItoc(0x0000014d)

            UpdateDateTime 0x0000000000000001
             ContentOffset 0x0000000000001000
               ContentSize 0x0000000015e19800
                ItocOffset 0x0000000000000800
                  ItocSize 0x0000000000000590
         EnabledPackedSize 0x0000000015e0b3f2
           EnabledDataSize 0x0000000015e0b3f2
                     Files 0x0000006e
                    Groups 0x00000000
                     Attrs 0x00000000
                   Version 0x0007
                  Revision 0x0000
                     Align 0x0800
                    Sorted 0x0000
                       EID 0x0000
                   CpkMode 0x00000000
                     Tvers CPKFBSTD1.18.04, DLL2.78.04(0x00000155)
                     Codec 0x00000000
                   DpkItoc 0x00000000

Traceback (most recent call last):
File "cpkunpack.py", line 683, in
lib[frame.typename] = frame
File "cpkunpack.py", line 391, in setitem
TableLibrary.__filter[k](s, v)
File "cpkunpack.py", line 353, in __cpk
s.TOC_BASELINE = min(utf.value('ContentOffset')[0], utf.value('TocOffset')[0])
IndexError: tuple index out of range

化物语PSP iso 从游民星空可以下
iso里只有3个cpk文件,都很大,每个四五百MB,羽神有空的话能否下载iso分析看看?

"Unable to recognize frame" when trying to unpack

Hi,

I'm trying to unpack this file: http://www.lucasbustamante.com.br/uploads/ftp/Loca_en_Main_0.cpk

However it's throwing the following error:

vagrant@homestead:~/dev/tmp/cpktools$ python cpkunpack.py ../Loca_en_Main_0.cpk
Read ../Loca_en_Main_0.cpk...
Traceback (most recent call last):
  File "cpkunpack.py", line 640, in <module>
    for frame in readframe(infile):
  File "cpkunpack.py", line 169, in readframe
    typename = identify(header)
  File "cpkunpack.py", line 54, in identify
    raise Exception('Unable to recognize frame for "%s"' % repr(header));
Exception: Unable to recognize frame for "'U\x98C\x01\x1a\x00\x00\x00./\x00\x00\x00\x00\x00\x00'"

I tried with --extract-unknown too:

vagrant@homestead:~/dev/tmp/cpktools$ python cpkunpack.py ../Loca_en_Main_0.cpk --extract-unknown
Read ../Loca_en_Main_0.cpk...
Traceback (most recent call last):
  File "cpkunpack.py", line 640, in <module>
    for frame in readframe(infile):
  File "cpkunpack.py", line 170, in readframe
    data = extract(typename, header, f)
  File "cpkunpack.py", line 149, in extract
    return func(header, f)
  File "cpkunpack.py", line 121, in extract_generic_from_tablelibrary
    row = lib.fromoffset(f.tell()) # lib is a global TableLibrary object, possibly incomplete
  File "cpkunpack.py", line 419, in fromoffset
    return Row(s[FRAME_TOC].utf, s.__OFFSET_ROW_MAP[offset])
KeyError: 'TOC'

And also setting the output dir with -o, but couldn't anyway.

Can you please let me know if this specific file is supported?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.