-
Notifications
You must be signed in to change notification settings - Fork 3
Testing
If you'd like to test Karazeh's patching process, you can simulate my environment and try it. Here's how:
- In your root, create a test folder and create an empty file called "modify_test.txt" in it.
- If you didn't change the patch hosts in Downloader.cpp, skip to step #4.
- We need to tell Karazeh to pull the patch script from my server, so instead of recompiling we can use the Mirrors feature. Create a "patch_mirrors.txt" in the same directory as the Karazeh binary, and add the following line to it:
http://www.vertigo-game.com/patches/
- Now run Karazeh, it should pull the patch, create some files in test/, modify the modify_test.txt to write something in it, rename a file, and report back to u!
To rerun the test, you need to do the equivalent of this:
rm test/create* test/rename* bin/Karazeh.dat
Which basically removes all the files named create_XX.txt and rename_XX.txt in the test/ folder, and the external resource Karazeh.dat found in the same directory as the Karazeh binary.
Either use Kiwi to generate a patch script for you, or manually write your own. In any case, once you have a functional patch script, you need to host it on a web server. Either a local one (at localhost/127.0.0.1) or a remote one would work. Once it's hosted, tell Karazeh to look for it by either modifying the mirrors file or by hardcoding it in the binary and recompiling.