Giter VIP home page Giter VIP logo

khpcpatchmanager's Introduction

KHPCPatchManager

How to apply a patch:

  1. Download the latest release or compile the binary yourself
  2. Make sure you have a "resources" folder (in the same directory as the tool) with all the .txt containing the files' names (you can get one along with a release)
  3. Drag a pcpatch (.kh1pcpatch, .kh2pcpatch, etc.) file onto the exe and follow the instructions

How to extract game files:

  1. Download the latest release or compile the binary yourself
  2. Make sure you have a "resources" folder (in the same directory as the tool) with all the .txt containing the files' names (you can get one along with a release)
  3. Extract a PKG file by dragging its .hed onto the exe
  4. A folder <pkg_name>.hed_out will be created containing all extracted files from that PKG

How to extract RAW game files:

RAW files contain the header data for both original and remastered assets, as well as the assets' data itself (encrypted and compressed where applicable)

  1. Download the latest release or compile the binary yourself
  2. Make sure you have a "resources" folder (in the same directory as the tool) with all the .txt containing the files' names (you can get one along with a release)
  3. Open a command line (CMD, PowerShell) in the directory where the exe is located
  4. Use the following command: KHPCPatchManager -raw (eg: KHPCPatchManager kh2_sixth.hed -raw
  5. A folder <pkg_name>.hed_out will be created containing all the extracted RAW files from that PKG

How to create a patch:

  1. Download the latest release or compile the binary yourself
  2. Make sure you have a "resources" folder (in the same directory as the tool) with all the .txt containing the files' names (you can get one along with a release)
  3. Create a folder for your patch, let's call it "MyPatch" for example
  4. Place your edited files in that folder, under <pkg_name>, and then under "original" or "remastered" (based on where the unedited files were located when you extracted them) following the initial folders and files structure. For instance, if you wanted to edit Sora's high-poly 3D model and textures (which are located in kh2_sixth), your "MyPatch" folder would have to look like this:
MyPatch
└── kh2_sixth
    ├── original
    │   └── obj
    │       └── P_EX100.mdlx
    └── remastered
        └── obj
            └── P_EX100.mdlx
                ├── -0.dds
                ├── -1.dds
                ├── -2.dds
                ├── -3.dds
                ├── -4.dds
                └── -5.dds

Note: You can also patch RAW files if necessary

MyPatch
└── kh2_sixth
    ├── original
    ├── remastered
    └── raw
        └── obj
            └── P_EX100.mdlx
  1. Drag your "MyPatch" folder onto the exe
  2. A "MyPatch" with the game's patch extension will be created

Using custom file names (hashes):

These should be automatically added to "resources/custom_filenames.txt" when patching (filenames exist in the patches, so the tool will simply write the ones that aren't natively listed) As long as the user keeps these new entries in their "custom_filenames.txt" file, KHPCPatchManager will be able to handle these new files (extraction, re-patching, etc.).

A huge thank you to:

Financial support

paypal

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.