From a49dec1c876f0fd0ae63a716eb823f7db408d74d Mon Sep 17 00:00:00 2001 From: Mind Rapist Date: Fri, 14 Nov 2025 18:42:07 +0200 Subject: [PATCH 1/2] fix: Locale selection for RelWithDebInfo and dragon_rock/mobs textures --- README.md | 27 +++++++++++++++++++++++++-- src/UserInterface/Locale.cpp | 2 +- src/UserInterface/UserInterface.cpp | 2 ++ 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index feead66..9f312a2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,25 @@ -# m2dev-client-src -[![build](https://github.com/d1str4ught/m2dev-client-src/actions/workflows/main.yml/badge.svg)](https://github.com/d1str4ught/m2dev-client-src/actions/workflows/main.yml) +# Client Source Repository + +This repository contains the source code necessary to compile the game client executable. + +## How to build + +> cmake -S . -B build +> +> cmake --build build + +--- + +## ✨ Key Source Code Fixes + +The following fixes address critical issues related to locale compilation and texture loading, ensuring compatibility with new content and correct language output. + +### 🖼️ Texture and Resource Loading Fix + +* **Fix: Missing Texture Cache:** Resolved an issue in `UserInterface/UserInterface.cpp` by adding the necessary missing resource directory names (`"_texcache"`) within the `PackInitialize` function. + * **Impact:** This ensures that texture files for new mobs and maps are correctly included and loaded by the client, preventing potential display errors or crashes related to missing resources. + +### 🌐 Build Configuration Fix + +* **Fix: Locale Build Typos:** Corrected a critical typo in `UserInterface/locale.cpp` where the `RelWithDebInfo` build configuration incorrectly referenced `tr (1253)`. + * **Impact:** The value was updated to **`gr (1253)`** to correctly reference the Greek locale option before game launch. \ No newline at end of file diff --git a/src/UserInterface/Locale.cpp b/src/UserInterface/Locale.cpp index 012907e..b01a2ff 100644 --- a/src/UserInterface/Locale.cpp +++ b/src/UserInterface/Locale.cpp @@ -266,7 +266,7 @@ struct SLOCALEDATA { LSS_EUROPE, "it", 1252, "1234abcd5678efgh" }, // GameForge (Italy) { LSS_EUROPE, "fr", 1252, "1234abcd5678efgh" }, // GameForge (France) { LSS_EUROPE, "pt", 1252, "1234abcd5678efgh" }, // GameForge (Portugal) - { LSS_EUROPE, "tr", 1253, "1234abcd5678efgh" }, // GameForge (Greece) + { LSS_EUROPE, "gr", 1253, "1234abcd5678efgh" }, // GameForge (Greece) { LSS_EUROPE, "pl", 1250, "1234abcd5678efgh" }, // GameForge (Poland) { LSS_EUROPE, "tr", 1254, "1234abcd5678efgh" }, // GameForge (Turkey) { LSS_EUROPE, "dk", 1252, "1234abcd5678efgh" }, // GameForge (Demmark) diff --git a/src/UserInterface/UserInterface.cpp b/src/UserInterface/UserInterface.cpp index f87977d..3e77961 100644 --- a/src/UserInterface/UserInterface.cpp +++ b/src/UserInterface/UserInterface.cpp @@ -164,6 +164,8 @@ bool PackInitialize(const char * c_pszFolder) "metin2_patch_w20_etc", "metin2_patch_dragon_rock", "metin2_patch_dragon_rock_mobs", + "metin2_patch_dragon_rock_texcache", + "metin2_patch_dragon_rock_mobs_texcache", "metin2_patch_etc", "metin2_patch_xmas", "metin2_patch_eu3", From d5c8f0545792a946532f8f591ad3333767ab0b16 Mon Sep 17 00:00:00 2001 From: Mind Rapist Date: Sat, 15 Nov 2025 16:23:18 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f312a2..8427814 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ The following fixes address critical issues related to locale compilation and te ### 🖼️ Texture and Resource Loading Fix * **Fix: Missing Texture Cache:** Resolved an issue in `UserInterface/UserInterface.cpp` by adding the necessary missing resource directory names (`"_texcache"`) within the `PackInitialize` function. - * **Impact:** This ensures that texture files for new mobs and maps are correctly included and loaded by the client, preventing potential display errors or crashes related to missing resources. + * **Impact:** This ensures that texture files for mobs and terrain for the new maps (Cape, Bay, Dawn, Thunder) are displayed. ### 🌐 Build Configuration Fix * **Fix: Locale Build Typos:** Corrected a critical typo in `UserInterface/locale.cpp` where the `RelWithDebInfo` build configuration incorrectly referenced `tr (1253)`. - * **Impact:** The value was updated to **`gr (1253)`** to correctly reference the Greek locale option before game launch. \ No newline at end of file + * **Impact:** The value was updated to **`gr (1253)`** to correctly reference the Greek locale option before game launch.