npatch, a patcher for ragnarok online made with nodejs.
- Download the repository as zip.
- Extract that zip file.
- Make sure you have nodejs and a text editor for .js files.
- Open up cmd and go to the main directory of the project.
- Run
npm install
to install dependencies. - Run
npm install pkg -g
so you can create the .exe client (cmd only) for the patcher.
This is required so that the patcher can download the files from the web.
- Edit config.yml on the main directory, and change the patchKey to the desired patch key you want and the port you want.
- Run
node patchServer
on your cmd
DO NOT CLOSE THE PATCH SERVER OR YOU WON'T BE ABLE TO DOWNLOAD THE PATCH FILES
- Go to the
/src/encoder
folder and place all your files that you want to patch inside thecontent
folder. - Once done, open up
data.yml
and change thePatchFileName
to the desired file name of the patch that you want. - Then, add the file names that you would want to be included in that patch. For example,
patches:
# this would be the name of the output file
- PatchFileName1:
# an array of the files to add to the patch
- FileToPatch1.txt
- FileToPatch2.txt
# Second patch
- Patch2:
# an array of files to add to this patch
- File1.txt
- File2.lua
- You could add any kind of file that you want on the array.
- After doing all that, go back to the main directory and run
node encode
. - Once that is done, go to the
src/encoder/output
folder and place all the.npatch
files to thesrc/server/patches
folder. - Open up
patchList.yml
file inside thesrc/server
folder and add the names of the patch files. Example
- PatchFileName1
- Patch2
- After that, close the patch server and open it up again for the new patch file changes.
- Make sure you have
pkg
installed, if not simply runnpm install -g pkg
on cmd. - Open up
config.js
and place the patchKey and port of the one that you placed on theconfig.yml
file on the main directory. - The host is the ip of where the patch server is being run on.
- After all that, go back to
src/client
folder and runpkg index.js --target=all --output=patcher.exe