From 3253d8fb1504a31ba087910662c8aba84a516a56 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Tue, 27 Oct 2026 15:04:16 +0000 Subject: [PATCH] DB2: a record only in the database shows its enUS text in every language An item that the client files do not have (the 5,305 items the Forever beta sends only as hotfixes, such as Sorcerer Drape or Nightsky Armor) got its name only in the enUS slot. With a Russian client the data is ruRU, so the server sent the item with an empty name: random enchant items showed only their suffix ("of the Whale") and other items had no name line at all. The other language slots of such a record now start with the enUS text, and a *_locale row still replaces it. --- src/server/shared/DataStores/DB2DatabaseLoader.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server/shared/DataStores/DB2DatabaseLoader.cpp b/src/server/shared/DataStores/DB2DatabaseLoader.cpp index 3f345b920a..67ffac9c97 100644 --- a/src/server/shared/DataStores/DB2DatabaseLoader.cpp +++ b/src/server/shared/DataStores/DB2DatabaseLoader.cpp @@ -129,6 +129,13 @@ char* DB2DatabaseLoader::Load(bool custom, uint32& records, char**& indexTable, if (char* str = AddString(&slot->Str[LOCALE_enUS], fields[f].GetStringView())) stringPool.push_back(str); + // A record the client files do not have (an item sent only as a hotfix) has no text in the other + // languages: show the enUS text there until a *_locale row gives its own, instead of an empty string + // (a ruRU client got items without a name, only the random suffix "of the Whale") + if (isNew) + for (char const*& localeStr : slot->Str) + localeStr = slot->Str[LOCALE_enUS]; + offset += sizeof(LocalizedString); break; }