From b054cfc990c060d7843642a42ab69100cc5f6a33 Mon Sep 17 00:00:00 2001 From: LJW-Dev Date: Fri, 31 Oct 2025 16:28:12 +0800 Subject: [PATCH] Updated missing image and colour only image asset names to use materials loaded by the game. --- src/ObjLoading/Game/T6/BSP/BSP.h | 4 ++-- src/ObjLoading/Game/T6/BSP/Linker/GfxWorldLinker.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ObjLoading/Game/T6/BSP/BSP.h b/src/ObjLoading/Game/T6/BSP/BSP.h index f64f738a..b4854134 100644 --- a/src/ObjLoading/Game/T6/BSP/BSP.h +++ b/src/ObjLoading/Game/T6/BSP/BSP.h @@ -101,8 +101,8 @@ namespace BSP // These values are BSP linking constants that are required for the link to be successful namespace BSPLinkingConstants { - constexpr const char* MISSING_IMAGE_NAME = "missing_image"; - constexpr const char* COLOR_ONLY_IMAGE_NAME = "color_only_image"; + constexpr const char* MISSING_IMAGE_NAME = ",mc/lambert1"; + constexpr const char* COLOR_ONLY_IMAGE_NAME = ",white"; constexpr const char* DEFAULT_SPAWN_POINT_STRING = R"({ "attackers": [ diff --git a/src/ObjLoading/Game/T6/BSP/Linker/GfxWorldLinker.cpp b/src/ObjLoading/Game/T6/BSP/Linker/GfxWorldLinker.cpp index bcfae3bb..a8bd50b6 100644 --- a/src/ObjLoading/Game/T6/BSP/Linker/GfxWorldLinker.cpp +++ b/src/ObjLoading/Game/T6/BSP/Linker/GfxWorldLinker.cpp @@ -89,7 +89,7 @@ namespace BSP surfMaterialAsset = m_context.LoadDependency(missingImageName); if (surfMaterialAsset == nullptr) { - con::error("unable to find the missing image texture!"); + con::error("unable to load the missing image texture {}!", missingImageName); return false; } }