A reimplementation of the DOS game The legend of Jin Yong Heroes(金庸群侠传)
- Install cmake and C++ compiler (either GCC 8+, Clang 7+ or MSVC 2019+)
- Clone the project:
git clone --recurse-submodules https://github.com/soarqin/HeroesOfJinYong
- (optional after pull new commits from repository) Update submodules:
git submodule update --init
- Use cmake to compile the project (recommended steps):
mkdir build && cd build
cmake ..
- (UNIX OSes/MinGW/CygWIN)
make
- (WIN32) Open project to build
Name | Default Value | Description |
---|---|---|
BUILD_SHARED_LIBS | ON | Build shared libraries |
USE_STATIC_CRT | OFF | Use static C runtime |
USE_FREETYPE | OFF | Use freetype instead of stb_truetype |
USE_SOXR | OFF | Use soxr instead of zita-resampler(better quality with more cpu use) |
BUILD_TOOLS | OFF | Build tools(mergepic ) |
- Get original game files (you can download from here)
- Copy compiled
bin/hojy.exe
and maybe other dll/so's to your own game root folder - Copy
src/config.toml
to root folder - Create a subfolder
data
in game root folder - Copy
src/strings.toml
todata
folder - Create a subfolder
font
indata
folder - Copy a chinese ttf/otf to
font
folder (config.tml: fonts = "data/font/chinese.otf" ) - Extract downloaded game into
data
(do not create any 2nd-level subfolder) - Run
hojy.exe
and enjoy!
- Add
-DBUILD_TOOL=ON
tocmake
command and build the whole project, you will getmergepic
inbin
folder - Run
mergepic
in original game data folder using following commands to generate 4 files:SDX
,SMP
,WDX
,WMP
:mergepic SDX SMP
mergepic WDX WMP
- Once done, you can remove all
SDX???
,SMP???
,SDX???
,WMP???
files from resource folder
- This software is licensed under GPLv3, Check LICENSE for details.
- External/3rd-party libraries are following their own license, see CREDITS below.
- Public Domain:
- MIT licensed:
- FTL licensed:
- FreeType (found in OSes)
- GPLv3 licensed:
- LGPLv2.1 licensed:
- Zlib licensed:
- SDL2 (use deps/SDL2 in Windows for Input Method support, and find system SDL2 in other OSes)
- SDL2_gfx (deps/SDL2_gfx)