From 98755c5a4050fac8d4e628714a66f723b8e7282d Mon Sep 17 00:00:00 2001 From: ENDERMANYK Date: Mon, 12 Aug 2024 16:29:24 +0800 Subject: [PATCH] v1.4.4 --- .github/workflows/build.yml | 9 ++--- BetterRenderDragon/GUI.cpp | 1 + BetterRenderDragon/MCHooks.cpp | 12 ++++-- BetterRenderDragon/Version.h | 2 +- README.md | 72 +++++++++++++++++++++++----------- README_CN.md | 29 ++++++++++++++ README_US.md | 36 ----------------- 7 files changed, 94 insertions(+), 67 deletions(-) create mode 100644 README_CN.md delete mode 100644 README_US.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd6b8d1..dc1fbe0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,24 +23,23 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Add MSBuild to PATH - uses: microsoft/setup-msbuild@v1.3.1 - + uses: microsoft/setup-msbuild@v2 - name: Build working-directory: ${{env.GITHUB_WORKSPACE}} run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{ matrix.abi }} ${{env.SOLUTION_FILE_PATH}} - name: Upload dll - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: BetterRenderDragon.dll path: ./build/BetterRenderDragon.dll - name: Upload pdb - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: BetterRenderDragon.pdb path: ./build/BetterRenderDragon.pdb \ No newline at end of file diff --git a/BetterRenderDragon/GUI.cpp b/BetterRenderDragon/GUI.cpp index b55aeee..74d0d98 100644 --- a/BetterRenderDragon/GUI.cpp +++ b/BetterRenderDragon/GUI.cpp @@ -216,6 +216,7 @@ void updateImGui() { ImGui::Text("V1.4.1\n Support 1.20.80.20 preview and 1.20.80.21 preview"); ImGui::Text("V1.4.2\n Support 1.20.71.01"); ImGui::Text("V1.4.3\n Support 1.20.80.05\n Removed key binding for reload shaders"); + ImGui::Text("V1.4.4\n Support 1.21.2.02\n Added key binding for reload shaders"); } ImGui::End(); } diff --git a/BetterRenderDragon/MCHooks.cpp b/BetterRenderDragon/MCHooks.cpp index 1e23151..e99506a 100644 --- a/BetterRenderDragon/MCHooks.cpp +++ b/BetterRenderDragon/MCHooks.cpp @@ -281,7 +281,9 @@ void initMCHooks() { //1.20.10.23 preview "48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 45 0F B6 F1 49 8B F8 48 8B F2 48 8B D9", //1.20.30.21 preview - "4C 8B DC 53 55 56 57 41 56 48 81 EC ? ? ? ? 41 0F B6 E9 49 8B D8 48 8B F2 48 8B F9" + "4C 8B DC 53 55 56 57 41 56 48 81 EC ? ? ? ? 41 0F B6 E9 49 8B D8 48 8B F2 48 8B F9", + //1.21.20.24 preview + "4C 8B DC 53 55 56 57 41 56 48 81 EC ? ? ? ? 41 0F B6 E9 49 8B F0 48 8B FA 48 8B D9" ); TrySigHook(readFile, @@ -300,7 +302,9 @@ void initMCHooks() { //1.20.80.21 preview "48 89 5C 24 ? 48 89 74 24 ? 55 57 41 54 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 49 8B C0", //1.20.80.05 - "48 89 5C 24 ? 55 56 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 49 8B C0 48 8B FA" + "48 89 5C 24 ? 55 56 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 49 8B C0 48 8B FA", + //1.21.20.24 preview + "48 89 5C 24 ? 55 56 57 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 49 8B F8 48 8B F2 48 89 55 ? ? ? ?" ); if (TrySigHookNoWarning(mce_framebuilder_BgfxFrameBuilder_endFrame, "48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 4C 8B FA 48 89 55 ? 4C 8B F1")) { @@ -310,7 +314,9 @@ void initMCHooks() { //1.20.60.04 "48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 4C 8B EA", //1.21.0.03 - "48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B F2 48 89 55" + "48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B F2 48 89 55", + //1.21.20.24 preview + "48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? B8 ? ? ? ? E8 ? ? ? ? 48 2B E0 0F 29 B4 24 ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 48 8B F2 48 8B F9" )) { offsetToMaterialsManager = 816; } else { diff --git a/BetterRenderDragon/Version.h b/BetterRenderDragon/Version.h index ec812e1..d6ddda2 100644 --- a/BetterRenderDragon/Version.h +++ b/BetterRenderDragon/Version.h @@ -1,3 +1,3 @@ #pragma once -#define BetterRDVersion "v1.4.3" \ No newline at end of file +#define BetterRDVersion "v1.4.4" \ No newline at end of file diff --git a/README.md b/README.md index 1d8f92f..dd85d23 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,57 @@ -简体中文 | [English](README_US.md) +# English | [简体中文](README_CN.md) -# BetterRenderDragon -为渲染龙添加更多功能 +## BetterRenderDragon -## 功能 -* 启用延迟渲染 -* 禁用光线追踪以获得更好的性能 -* 从资源包加载渲染龙着色器 -* 热重载渲染龙着色器 -* 可配置功能的ImGui +Enhancement Mod for the RenderDragon Engine of _**Minecraft: Bedrock Edition**_ -## 支持的版本 -MCBE正式版或预览版1.20.10以上 +## Functions -## 使用 -1. 安装MCBE 1.20.10及以上版本 -2. 从[Releases](https://github.com/ddf8196/BetterRenderDragon/releases/latest)中下载`BetterRenderDragon.zip`并解压 -3. 双击`LaunchMinecraft.bat`启动正式版MC, 或双击`LaunchMinecraftPreview.bat`启动预览版MC +* Enable deferred rendering +* Disable raytracing for better performance +* Loads RenderDragon shaders from the resource pack +* Hot reload RenderDragon shaders +* Configurable ImGui -### ImGui -* `F6` 开启或关闭ImGui显示 +## Support Versions -### MaterialBinLoader -* `R` 重新加载着色器 +MCBE Official version 1.20.30+ -## 最低要求 -* Direct3D 11 (无法启用延迟渲染) -* 启用延迟渲染最低需要Direct3D 12 +## Installation + +_**YOU HAVE TO DO THIS EVERYTIME YOU WANT TO USE BRD!**_ + +* Not doing these steps wll result in Vanilla Minecraft being launched! + +1. **Check your Minecraft Version** + * BetterRenderDragon currently supports stable versions 1.20.30+ + **(You do need a copy of Minecraft on your computer!)** +2. **Get BetterRenderDragon!** + * Download BetterRenderDragon From [here](https://github.com/ddf8196/BetterRenderDragon/releases/latest). For Beta version please download from [here](https://github.com/ddf8196/BetterRenderDragon/actions) +3. **Unzip the file!** + * Unzip the file `BetterRenderDragon.zip` to an empty folder! +4. **Start It!** + * In the BetterRenderDragon folder, double-Click _**`LaunchMinecraft.bat`**_ to launch Stable versions, or Double-click _**`LaunchMinecraftPreview.bat`**_ to launch Preview versions. + +## Usage + +* Press **`F6`** to show or hide the BetterRenderDragon Menu! + +## Minimum requirements + +* Direct3D 11 (cannot enable deferred rendering) +* To enable deferred rendering, the minimum requirement is Direct3D 12(FL 12.1) + +## Troubleshooting + +* My antivirus software blocked BetterRenderDragon, what should I do? +* **You can add BetterRenderDragon to your antivirus software's whitelist.**. Just the software doesnt have a valid signature. + +* I can't find the BetterRenderDragon Menu! +* **Press `F6` to show or hide the BetterRenderDragon Menu** + +* FindFirstFileW failed: error [00000002] The system cannot find the file specified. +* Most likely is your antivirus deleted the BetterRenderDragon dll file inside dlls folder, you can add BetterRenderDragon to your antivirus software's whitelist. + +## Note + +**This Program is not affiliated with Mojang Studios**. diff --git a/README_CN.md b/README_CN.md new file mode 100644 index 0000000..ef0b794 --- /dev/null +++ b/README_CN.md @@ -0,0 +1,29 @@ +简体中文 | [English](README.md) + +# BetterRenderDragon +为渲染龙添加更多功能 + +## 功能 +* 启用延迟渲染 +* 禁用光线追踪以获得更好的性能 +* 从资源包加载渲染龙着色器 +* 热重载渲染龙着色器 +* 可配置功能的ImGui + +## 支持的版本 +MCBE正式版或预览版1.20.10以上 + +## 使用 +1. 安装MCBE 1.20.10及以上版本 +2. 从[Releases](https://github.com/ddf8196/BetterRenderDragon/releases/latest)中下载`BetterRenderDragon.zip`并解压 +3. 双击`LaunchMinecraft.bat`启动正式版MC, 或双击`LaunchMinecraftPreview.bat`启动预览版MC + +### ImGui +* `F6` 开启或关闭ImGui显示 + +### MaterialBinLoader +* `R` 重新加载着色器 + +## 最低要求 +* Direct3D 11 (无法启用延迟渲染) +* 启用延迟渲染最低需要Direct3D 12 \ No newline at end of file diff --git a/README_US.md b/README_US.md deleted file mode 100644 index bdf6d98..0000000 --- a/README_US.md +++ /dev/null @@ -1,36 +0,0 @@ -English | [简体中文](README.md) - -# BetterRenderDragon -Enhancement Mod for the RenderDragon Engine of _**Minecraft: Bedrock Edition**_ - -## Functions -* Enable deferred rendering -* Disable raytracing for better performance -* Loads RenderDragon shaders from the resource pack -* Hot reload RenderDragon shaders -* Configurable ImGui - -## Support Versions -MCBE Official version 1.20.10+, Preview version 1.20.10+ - -## Installation -_**0. YOU HAVE TO DO THIS EVERYTIME YOU WANT TO USE BRD!**_ - - Not doing these steps wll result in Vanilla Minecraft being launched! -1. **Check your Minecraft Version** - - BetterRenderDragon currently supports stable versions 1.20.10+ - **(ONLY YOU HAVE VERSIONS 1.20.10+)** -2. **Get BetterRenderDragon!** - - Download BetterRenderDragon From [here](https://github.com/ddf8196/BetterRenderDragon/releases/latest)! - - Unzip the file `BetterRenderDragon.zip` to an empty folder! -3. **Start It!** - - In the BetterRenderDragon folder, double-Click _**`LaunchMinecraft.bat`**_ to launch Stable versions, or Double-click _**`LaunchMinecraftPreview.bat`**_ to launch Preview versions. - -### Usage -* Press **`F6`** to show or hide the BetterRenderDragon Menu! - -### MaterialBinLoader -* Press **`R`** to reload shaders - -## Minimum requirements -* Direct3D 11 (cannot enable deferred rendering) -* To enable deferred rendering, the minimum requirement is Direct3D 12