{"id":18180,"date":"2025-12-15T07:32:12","date_gmt":"2025-12-15T07:32:12","guid":{"rendered":"https:\/\/www.xmodhub.cn\/news\/?p=18180"},"modified":"2025-12-15T07:32:12","modified_gmt":"2025-12-15T07:32:12","slug":"%e3%80%8a%e7%8e%8b%e5%9b%bd%ef%bc%9a%e4%b8%a4%e4%bd%8d%e5%90%9b%e4%b8%bb%e3%80%8b%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b-kingdom-two-crowns-dev-tools-tutorial","status":"publish","type":"post","link":"https:\/\/www.xmodhub.cn\/news\/18180.html","title":{"rendered":"\u300a\u738b\u56fd\uff1a\u4e24\u4f4d\u541b\u4e3b\u300b\u5f00\u53d1\u5de5\u5177\u4f7f\u7528\u6559\u7a0b Kingdom Two Crowns Dev Tools  tutorial"},"content":{"rendered":"<h2 id=\"description_tab_h2\" data-game-id=\"2695\" data-mod-id=\"6\"><span dir=\"auto\">\u5173\u4e8e\u6b64\u6a21\u7ec4<\/span><\/h2>\n<p><span dir=\"auto\">\u5f00\u53d1\u8005\u5de5\u5177\u6a21\u7ec4\u3002\u5305\u542b\u4e00\u4e9b\u65b9\u4fbf\u5236\u4f5cMOD\u7684\u529f\u80fd\u3002<\/span><\/p>\n<p><span dir=\"auto\">\u73b0\u5728\u652f\u6301\u5408\u4f5c\u6a21\u5f0f\u548c\u5728\u7ebf\u6a21\u5f0f\uff01<\/span><\/p>\n<p><span dir=\"auto\">\u540c\u65f6\u652f\u6301IL2CPP\u548cMono\u7248\u672c\u7684\u6e38\u620f\uff01\uff082.2.0\u7248\u672c\u4e4b\u540e\uff09<\/p>\n<p>\u6ce8\u610f<\/span><\/p>\n<ul class=\"disc\">\n<li><span dir=\"auto\">\u67d0\u4e9b\u529f\u80fd\u4f1a\u4e25\u91cd\u5f71\u54cd\u6e38\u620f\u5e73\u8861\uff0c\u5f3a\u70c8\u5efa\u8bae\u666e\u901a\u73a9\u5bb6\u4e0d\u8981\u4f7f\u7528\u6b64\u6a21\u7ec4\u3002<\/span><\/li>\n<li><span dir=\"auto\">\u51fa\u4e8e\u5e73\u8861\u6027\u8003\u8651\uff0c\u6240\u6709\u529f\u80fd\u4ec5\u5728 `Debug` \u7248\u672c\u4e2d\u53ef\u7528\u3002<\/span><\/li>\n<\/ul>\n<p><span dir=\"auto\"><br \/>\n\u5feb\u6377\u952e<\/span><\/p>\n<ul class=\"content_list content_list_ordered\">\n<li><span dir=\"auto\">\u4e3b\u9875\u663e\u793a\u8c03\u8bd5\u4fe1\u606f<\/span><\/li>\n<li><span dir=\"auto\">\u7ed3\u675f\u663e\u793a\u5bf9\u8c61\u4fe1\u606f<\/span><\/li>\n<li><span dir=\"auto\">\u63d2\u5165\u6d4b\u8bd5\u4e00\u4e9b\u6709\u8da3\u7684\u529f\u80fd<\/span><\/li>\n<li><span dir=\"auto\">X \u5c06\u6e38\u620f\u5bf9\u8c61\u8f6c\u50a8\u5230 JSON \u6587\u4ef6<\/span><\/li>\n<li><span dir=\"auto\">P \u6253\u5370\u9884\u8bbe\u5230\u63a7\u5236\u53f0<\/span><\/li>\n<li><span dir=\"auto\">L \u5c06\u5173\u5361\u6a21\u5757\u6253\u5370\u5230\u63a7\u5236\u53f0\u3002<\/span><\/li>\n<li><span dir=\"auto\">\u5220\u9664 \u780d\u5012\u5f53\u524d\u9009\u4e2d\u7684\u6811<\/span><\/li>\n<li><span dir=\"auto\">F1 \u6dfb\u52a0\u6d41\u6d6a\u6c49<\/span><\/li>\n<li><span dir=\"auto\">F2 \u6dfb\u52a0\u683c\u91cc\u82ac<\/span><\/li>\n<li><span dir=\"auto\">F9 \u6fc0\u6d3b\u6e38\u620f\u5f00\u53d1\u8005\u8c03\u8bd5\u5de5\u5177\u5305<\/span><\/li>\n<li><span dir=\"auto\">F10 \u8bbe\u7f6e\u786c\u5e01\u9650\u989d\u4e3a 1000<\/span><\/li>\n<li><span dir=\"auto\">\u592a\u7a7a\u6295\u63b7\u5de8\u77f3<\/span><\/li>\n<\/ul>\n<p><span dir=\"auto\"><br \/>\n\u624b\u52a8\u5b89\u88c5<br \/>\n<\/span><\/p>\n<ul class=\"content_list content_list_ordered\">\n<li><span dir=\"auto\">\u9996\u5148\u786e\u5b9a\u60a8\u7684\u6e38\u620f\u7248\u672c\u662f\u201cIL2CPP\u201d\u7248\u672c\u8fd8\u662f\u201cMono\u201d\u7248\u672c\u3002<\/span><br \/>\n<span dir=\"auto\">\u00a0 * \u201cIL2CPP\u201d\u7248\u672c\u4e2d\uff0c\u6e38\u620f\u76ee\u5f55\u4e0b\u5305\u542b\u6587\u4ef6\u5939\u201cKingdomTwoCrowns_Data\\il2cpp_data\u201d\uff1b<\/span><br \/>\n<span dir=\"auto\">\u00a0 * \u201cMono\u201d\u7248\u672c\u4e2d\uff0c\u6e38\u620f\u76ee\u5f55\u4e0b\u5305\u542b\u6587\u4ef6\u5939\u201cKingdomTwoCrowns_Data\\Managed\u201d\u3002<\/span><\/li>\n<li><span dir=\"auto\">\u6839\u636e\u60a8\u7684\u6e38\u620f\u7248\u672c\uff0c\u4e0b\u8f7d\u76f8\u5e94\u7248\u672c\u7684\u6a21\u7ec4\u52a0\u8f7d\u5668\u3002\u5c06\u6240\u6709\u6587\u4ef6\u89e3\u538b\u5230\u6e38\u620f\u6839\u76ee\u5f55\uff0c\u5e76\u786e\u4fdd\u201cBepInEx\u201d\u6587\u4ef6\u5939\u548c\u201cwinhttp.dll\u201d\u6587\u4ef6\u4e0e\u6e38\u620f\u4e3b\u7a0b\u5e8f\u201cKingdomTwoCrowns.exe\u201d\u4f4d\u4e8e\u540c\u4e00\u76ee\u5f55\u4e0b\u3002<\/span><br \/>\n<span dir=\"auto\">\u00a0 * \u201cIL2CPP\u201d\u7248\u672c\uff0c\u8bf7\u4e0b\u8f7d\u00a0<\/span><a href=\"https:\/\/builds.bepinex.dev\/projects\/bepinex_be\/735\/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.735%2B5fef357.zip\" rel=\"nofollow\"><span dir=\"auto\">BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.735\u3002<\/span><br \/>\n<\/a><span dir=\"auto\">\u00a0 * \u7531\u4e8e\u6e38\u620f\u66f4\u65b0\u5bfc\u81f4\u7684\u4e0d\u517c\u5bb9\u95ee\u9898\uff0c\u201cIL2CPP\u201d\u7248\u672c\u8fd8\u9700\u8981\u4e0b\u8f7d\u00a0<\/span><a href=\"https:\/\/github.com\/abevol\/KingdomMod\/releases\/download\/2.4.0\/Cpp2IL.Patch.zip\" rel=\"nofollow\"><span dir=\"auto\">Cpp2IL.Patch<\/span><\/a><span dir=\"auto\">\uff0c\u5c06\u5176\u89e3\u538b\u5230\u6e38\u620f\u6839\u76ee\u5f55\uff0c\u5e76\u8986\u76d6 BepInEx \u6a21\u7ec4\u52a0\u8f7d\u5668\u4e2d\u540c\u540d\u7684\u6587\u4ef6\u3002<\/span><br \/>\n<span dir=\"auto\">\u00a0 * \u201cMono\u201d\u7248\u672c\uff0c\u8bf7\u4e0b\u8f7d\u00a0<\/span><a href=\"https:\/\/builds.bepinex.dev\/projects\/bepinex_be\/735\/BepInEx-Unity.Mono-win-x64-6.0.0-be.735%2B5fef357.zip\" rel=\"nofollow\"><span dir=\"auto\">BepInEx-Unity.Mono-win-x86-6.0.0-be.735\u3002<\/span><\/a><\/li>\n<li><span dir=\"auto\">\u6839\u636e\u60a8\u7684\u6e38\u620f\u7248\u672c\u4e0b\u8f7d\u76f8\u5e94\u7248\u672c\u7684\u6a21\u7ec4\u3002\u4ece\u00a0<\/span><a href=\"https:\/\/github.com\/abevol\/KingdomMod\/releases\" rel=\"nofollow\"><span dir=\"auto\">Releases<\/span><\/a><span dir=\"auto\">\u4e0b\u8f7d\u6a21\u7ec4\u6587\u4ef6\uff0c\u5e76\u5c06\u6240\u6709\u6587\u4ef6\u89e3\u538b\u5230\u201cKingdom Two Crowns\\BepInEx\\plugins\u201d\u76ee\u5f55\u3002<\/span><br \/>\n<span dir=\"auto\">\u00a0 * \u201cIL2CPP\u201d \u7248\u672c\uff0c\u8bf7\u4e0b\u8f7d\u6587\u4ef6\u540d\u4e2d\u5305\u542b\u201cBIE6_IL2CPP\u201d\u7684\u6a21\u7ec4\u3002<\/span><br \/>\n<span dir=\"auto\">\u00a0 * \u201cMono\u201d \u7248\u672c\uff0c\u8bf7\u4e0b\u8f7d\u6587\u4ef6\u540d\u4e2d\u5305\u542b\u201cBIE6_Mono\u201d\u7684\u6a21\u7ec4\u3002<\/span><\/li>\n<li><span dir=\"auto\">\u6587\u4ef6\u8def\u5f84\u793a\u4f8b\uff1a<\/span>\n<ul class=\"disc\">\n<li><span dir=\"auto\">X:\\SteamLibrary\\steamapps\\common\\Kingdom Two Crowns\\KingdomTwoCrowns.exe<\/span><\/li>\n<li><span dir=\"auto\">X:\\SteamLibrary\\steamapps\\common\\Kingdom Two Crowns\\BepInEx\\core\\0Harmony.dll<\/span><\/li>\n<li><span dir=\"auto\">X:\\SteamLibrary\\steamapps\\common\\Kingdom Two Crowns\\BepInEx\\plugins\\KingdomMod.OverlayMap\\KingdomMod.OverlayMap.dll<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span dir=\"auto\">\u73b0\u5728\u6a21\u7ec4\u5df2\u5b89\u88c5\u5b8c\u6bd5\u3002\u542f\u52a8\u6e38\u620f\u540e\uff0c\u6a21\u7ec4\u53ef\u4ee5\u81ea\u52a8\u52a0\u8f7d\u3002<\/span><\/li>\n<\/ul>\n<p><span dir=\"auto\"><\/p>\n<p><\/span><\/p>\n<h2 id=\"description_tab_h2\" data-game-id=\"2695\" data-mod-id=\"6\">About this mod<\/h2>\n<p>Developer tools mod. Contains some functions that are convenient for making MODs.<\/p>\n<p>It&#8217;s supported CO-OP and ONLINE modes now!<\/p>\n<p>Both IL2CPP and Mono versions of the game are now supported! (After the version of 2.2.0)<\/p>\n<p>Attention<\/p>\n<ul class=\"disc\">\n<li>Some functions seriously affect the game balance, and it is strongly not recommended for ordinary players to use this mod.<\/li>\n<li>For balance reasons, all features are only available in `Debug` builds.<\/li>\n<\/ul>\n<p>Hotkeys<\/p>\n<ul class=\"content_list content_list_ordered\">\n<li>Home\u00a0 \u00a0 Displays debug information<\/li>\n<li>End\u00a0 \u00a0 \u00a0 \u00a0\u00a0Displays objects information<\/li>\n<li>Insert\u00a0 \u00a0\u00a0Tests some interesting features<\/li>\n<li>X\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0Dumps game objects to JSON file<\/li>\n<li>P\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0Print presets to console<\/li>\n<li>L\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0Prints the level module to the console<\/li>\n<li>Delete\u00a0 \u00a0Cut down the currently selected tree<\/li>\n<li>F1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0Add vagrant<\/li>\n<li>F2\u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0Add Griffin<\/li>\n<li>F9\u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0Activate the Game Developer Debug Toolkit<\/li>\n<li>F10\u00a0 \u00a0 \u00a0\u00a0\u00a0Set coin limit to 1000<\/li>\n<li>Space\u00a0 \u00a0Throws a boulder<\/li>\n<\/ul>\n<p><span dir=\"auto\">Manual\u00a0install<br \/>\n<\/span><\/p>\n<ul class=\"content_list content_list_ordered\">\n<li>First determine whether your game version is &#8220;IL2CPP&#8221;, or the &#8220;Mono&#8221;\u00a0version.<br \/>\n* &#8220;IL2CPP&#8221; version, the game directory contains the folder &#8220;KingdomTwoCrowns_Data\\il2cpp_data&#8221;<br \/>\n* &#8220;Mono&#8221; version, the game directory contains the folder &#8220;KingdomTwoCrowns_Data\\Managed&#8221;<\/li>\n<li>According to your game version, download the mod loader of a specific version. Unzip all files to the root directory of the game, and ensure that the &#8220;BepInEx&#8221;\u00a0folder and &#8220;winhttp.dll&#8221;\u00a0file are in the same directory with the game main program &#8220;KingdomTwoCrowns.exe&#8221;.<br \/>\n* &#8220;IL2CPP&#8221;\u00a0version, download\u00a0<a href=\"https:\/\/builds.bepinex.dev\/projects\/bepinex_be\/735\/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.735%2B5fef357.zip\" rel=\"nofollow\">BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.735<br \/>\n<\/a>\u00a0 *\u00a0Due to incompatibility caused by game updates, for &#8220;IL2CPP&#8221;\u00a0version you also need to download\u00a0<a href=\"https:\/\/github.com\/abevol\/KingdomMod\/releases\/download\/2.4.0\/Cpp2IL.Patch.zip\" rel=\"nofollow\">Cpp2IL.Patch<\/a>, extract it to the game root directory, and overwrite the files with the same name in the BepInEx mod loader.<br \/>\n* &#8220;Mono&#8221;\u00a0version, download\u00a0<a href=\"https:\/\/builds.bepinex.dev\/projects\/bepinex_be\/735\/BepInEx-Unity.Mono-win-x64-6.0.0-be.735%2B5fef357.zip\" rel=\"nofollow\">BepInEx-Unity.Mono-win-x86-6.0.0-be.735<\/a><\/li>\n<li>Download the mod of a specific version according to your game version. Download the mod file from\u00a0<a href=\"https:\/\/github.com\/abevol\/KingdomMod\/releases\" rel=\"nofollow\">Releases<\/a>, unzip all files to the directory &#8220;Kingdom Two Crowns\\BepInEx\\plugins&#8221;.<br \/>\n* &#8220;IL2CPP&#8221; version, download mods with &#8220;BIE6_IL2CPP&#8221;\u00a0in the file name.<br \/>\n* &#8220;Mono&#8221; version, download mods with &#8220;BIE6_Mono&#8221;\u00a0in the file name.<\/li>\n<li>Some file path examples:\n<ul class=\"disc\">\n<li>X:\\SteamLibrary\\steamapps\\common\\Kingdom Two Crowns\\KingdomTwoCrowns.exe<\/li>\n<li>X:\\SteamLibrary\\steamapps\\common\\Kingdom Two Crowns\\BepInEx\\core\\0Harmony.dll<\/li>\n<li>X:\\SteamLibrary\\steamapps\\common\\Kingdom Two Crowns\\BepInEx\\plugins\\KingdomMod.OverlayMap\\KingdomMod.OverlayMap.dll<\/li>\n<\/ul>\n<\/li>\n<li>Now mods are installed. After starting the game, mods can be automatically loaded.<\/li>\n<\/ul>\n<p><span dir=\"auto\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8e\u6b64\u6a21\u7ec4 \u5f00\u53d1\u8005\u5de5\u5177\u6a21\u7ec4\u3002\u5305\u542b\u4e00\u4e9b\u65b9\u4fbf\u5236\u4f5cMOD\u7684\u529f\u80fd\u3002 \u73b0\u5728\u652f\u6301\u5408\u4f5c\u6a21\u5f0f\u548c\u5728\u7ebf\u6a21\u5f0f\uff01 \u540c\u65f6\u652f\u6301IL2CPP\u548cMono\u7248\u672c\u7684\u6e38\u620f\uff01\uff082.2.0\u7248\u672c\u4e4b\u540e\uff09 \u6ce8\u610f \u67d0\u4e9b\u529f\u80fd\u4f1a\u4e25\u91cd\u5f71\u54cd\u6e38\u620f\u5e73\u8861\uff0c\u5f3a\u70c8\u5efa\u8bae\u666e<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-18180","post","type-post","status-publish","format-standard","hentry","category-b"],"_links":{"self":[{"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/posts\/18180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/comments?post=18180"}],"version-history":[{"count":1,"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/posts\/18180\/revisions"}],"predecessor-version":[{"id":18181,"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/posts\/18180\/revisions\/18181"}],"wp:attachment":[{"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/media?parent=18180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/categories?post=18180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xmodhub.cn\/news\/wp-json\/wp\/v2\/tags?post=18180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}