Pokehack is compatible with GCC and MSVC. The steps in common before compiling are as follows:
Download CMake (http://www.http://cmake.org/cmake/resources/software.html)
Make a build directory in which to compile the files.
From the build directory, run:
cmake <source directory>
Note: Alternatively, run the CMake GUI and do this process there.
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)
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
Edit main() in pkc3.c and change whatever attributes of the six pokemon_t. See include/pokestructs.h to see their structure.
Compile:
(In root repo directory)
make
Run:
pokehack_cmd <path/to/savefile> [outfile] <game>