目前只支持1.31和1.32。
JHCR原理并不是Memory Hack,而是把jass翻译成字节码 通过地图脚本并注入运行时间并转换地图脚本,使运行时间能够与它配合使用 原作者博客解释了运行原理:jhcr,一个高级概述
Wurst 有完整的支持 JHCR 在地图运行时 reload 代码 这使得你能快速迭代,because it is not necessary to test the map from the beginning after every code change.
If you have not installed Wurst and Visual Studio Code yet, you should first check out the Setup Guide.
Then to setup JHCR:
wurst.jhcrExe
to the jhcr executable you extracted in step 1. For example C:\apps\jhcr.exe
. (This step is not necessary if you make jhcr.exe available on your system path)Allow Local Files
by changing your registry.wurst.customMapDataPath
to point to the path where Warcraft stores custom map data. This is usually something like C:\Users\YourName\Documents\Warcraft III\CustomMapData
or C:\Users\YourName\OneDrive\Dokumente\Warcraft III\CustomMapData
. This path will be passed to the --preload-path
option of Jass Hot Code Reload (JHCR). If you do not specify this path, Wurst will try to find the correct folder automatically.To use Hot Code Reload, simply run your map using your map with the wurst.hotstartmap
command:
F1
wurst: Run a Wurst map with Jass Hot Code Reload (JHCR)
and hit Enter
Enter
After Warcraft has started you can edit your code and when you want to load your changes into the running WC3 instance you simply run the the wurst.hotreload
command:
F1
wurst: Reload code for a Wurst map started with Jass Hot Code Reload (JHCR)
and hit Enter
ESC
to trigger the reload.If you want to use these commands often, you can assign keyboard shortcuts for them in Visual Studio Code.