HeroesOfJinYong
HeroesOfJinYong copied to clipboard
A reimplementation of the DOS game `The legend of Jin Yong Heroes(金庸群侠传)`
Heroes Of JinYong
A reimplementation of the DOS game The legend of Jin Yong Heroes(金庸群侠传)
How to build
- 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
-
CMake build options
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 ) |
How to use compiled binaries
- 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!
How to merge Submap and Warfield pictures/textures
- 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
License
- This software is licensed under GPLv3, Check LICENSE for details.
- External/3rd-party libraries are following their own license, see CREDITS below.
CREDITS
- Public Domain:
- stb_feetype & stb_rect_pack (src/external/stb_*.h)
- MIT licensed:
- FTL licensed:
- FreeType (found in OSes)
- GPLv3 licensed:
- libADLMIDI (deps/libADLMIDI)
- zita-resampler (deps/zita-resampler)
- LGPLv2.1 licensed:
- soxr (deps/soxr)
- Zlib licensed: