Grazfather / pokehack

Pokemon Generation 3 save state editor
7 stars 1 forks source link

pokehack

Pokemon Generation 3 .sav file editor

How to Use

GUI

Pokehack is compatible with GCC and MSVC. The steps in common before compiling are as follows:

  1. Download CMake (http://www.http://cmake.org/cmake/resources/software.html)

  2. Make a build directory in which to compile the files.

  3. From the build directory, run:

    cmake <source directory>

    Note: Alternatively, run the CMake GUI and do this process there.

  4. Compile:

    a. GCC

      cd <build directory>
      make

    b. MSVC (command line)

      cd <build directory>
      devenv pokehack.sln /build Release /project ALL_BUILD

    c. Visual Studio (GUI)

    1. Open pokehack.sln in Visual Studio.
    2. In the top toolbars, make sure the build is set to 'Release'.
    3. From the top menu, select Build -> Build Solution.

NOTE: If you want to install Pokehack somewhere instead of simply building it, use this CMake command instead:

cmake -DCMAKE_INSTALL_PREFIX=<install directory> <source directory>

In GCC:

cd <build directory>
make install

In MSVC (command line):

cd <build directory>
devenv pokehack.sln /build release /project ALL_BUILD

Command line

  1. Edit main() in pkc3.c and change whatever attributes of the six pokemon_t. See include/pokestructs.h to see their structure.

  2. Compile:

    (In root repo directory)

    make
  3. Run:

    • Game = 0 for Ruby, Sapphire, or Emerald
    • Game = 1 for FireRed or LeafGreen
    pokehack_cmd <path/to/savefile> [outfile] <game>

Feature Wish List

GUI