Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The only reason that you want to modify paracraft package is that you want to fix bug or add new features to the core Paracraft application. In most cases, you also need to build NPLRuntime from source code, so that you can debug both C++ and NPL code of Paracraft.
http://www.paracraft.cn/and keep it update to date.
- In the root installation directory of paracraft, install paracraft package
mkdir npl_packages cd npl_packages git clone https://github.com/NPLPackages/paracraft
please pull paracraft package from git regularly to stay up to date.
Run with NPL packages
Please note, according to NPL package, paracraft will still use the files in *.pkg files, if you do not start paracraft in dev mode. (in other words,
main*.pkgcontains precompiled NPL code of paracraft package).
So, to run in dev mode, you can create a
run.bat file or in your visual studio to add following command line.
paraengineclient.exe dev="." loadpackage="npl_packages/paracraft/"
dev="." with the your dev root directory or just use "." to use the current working directory as dev directory.
loadpackage="npl_packages/paracraft/" is optional, since
NPL.load("npl_packages/paracraft/") is called in the bootstrapper, we just leave it there in case you installed your package in a different folder.
When you start paracraft in dev mode, you will see in
log.txt the following line
search path: [your directory]/npl_packages/paracraft/
If you see these lines, then
Congratulations! you have just loaded paracraft via source code in paracraft package.
Contributing to paracraft
Fork this project on github, send me pull request and discuss with me any issue.