From f43d3cd939f6f784b74863cf732b897893e20e52 Mon Sep 17 00:00:00 2001 From: Peter Balaz Date: Thu, 18 Sep 2025 15:33:42 +0200 Subject: [PATCH 1/3] CChar: added ResetVisualRange method To reset visual range in case supporting client versions before and after VisualRange support --- src/game/chars/CChar.cpp | 5 +++++ src/game/chars/CChar.h | 3 ++- src/game/clients/CClientMsg.cpp | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/game/chars/CChar.cpp b/src/game/chars/CChar.cpp index c712e956e..ea7ed578c 100644 --- a/src/game/chars/CChar.cpp +++ b/src/game/chars/CChar.cpp @@ -907,6 +907,11 @@ void CChar::SetVisualRange(byte newSight) } } +void CChar::ResetVisualRange() +{ + m_iVisualRange = g_Cfg.m_iMapViewSize; +} + // Clean up weird flags. // fix Weirdness. // NOTE: diff --git a/src/game/chars/CChar.h b/src/game/chars/CChar.h index 6f2c5eec0..191817f1c 100644 --- a/src/game/chars/CChar.h +++ b/src/game/chars/CChar.h @@ -383,8 +383,9 @@ public: void StatFlag_Mod(uint64 uiStatFlag, bool fMod) noexcept; CRegion * GetRoom() const; virtual int GetVisualRange() const override; void SetVisualRange(byte newSight); + void ResetVisualRange(); - virtual bool IsResourceMatch( const CResourceID& rid, dword dwArg ) const override; + virtual bool IsResourceMatch( const CResourceID& rid, dword dwArg ) const override; bool IsResourceMatch( const CResourceID& rid, dword dwArg, dword dwArgResearch ) const; bool IsSpeakAsGhost() const; diff --git a/src/game/clients/CClientMsg.cpp b/src/game/clients/CClientMsg.cpp index adfafa2e8..fd527e3bc 100644 --- a/src/game/clients/CClientMsg.cpp +++ b/src/game/clients/CClientMsg.cpp @@ -1470,6 +1470,7 @@ void CClient::addPlayerStart( CChar * pChar ) */ new PacketPlayerStart(this); + pChar->ResetVisualRange(); addMapDiff(); m_pChar->MoveToChar(pt, true, false, false, false); // make sure we are in active list m_pChar->Update(); From c21a4bae723ec0ab5b49bcc333f7bc066d172f35 Mon Sep 17 00:00:00 2001 From: Peter Balaz Date: Mon, 29 Sep 2025 18:11:21 +0200 Subject: [PATCH 2/3] chore(ci): empty commit to retrigger GitHub Actions From da5c8e25fbdb530d77c4e35e68f6c61b27e7a9de Mon Sep 17 00:00:00 2001 From: David Kindl Date: Mon, 6 Oct 2025 13:20:26 +0200 Subject: [PATCH 3/3] Added new client encryptions (109,110,111) --- src/sphereCrypt.ini | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/sphereCrypt.ini b/src/sphereCrypt.ini index b503fd5a8..6b50d4465 100644 --- a/src/sphereCrypt.ini +++ b/src/sphereCrypt.ini @@ -23,7 +23,10 @@ ENC_LOGIN 4 // Rotation cipher used for the Login Server crypt by every client, // it's also used for client->server encryption by clients < 1.26.0. [SPHERECRYPT] -//Classic Clients +// Classic Clients. +70011100 037BBE10D 0ACB53E7F ENC_TFISH // 7.0.111.00 +70011000 037DD2B1D 0ACEFA27F ENC_TFISH // 7.0.110.00 +70010900 03817712D 0AB101E7F ENC_TFISH // 7.0.109.00 70010800 03868833D 0AB22127F ENC_TFISH // 7.0.108.00 70010700 038A2D14D 0AB7C9E7F ENC_TFISH // 7.0.107.00 70010600 038F46B5D 0AB46A27F ENC_TFISH // 7.0.106.00 @@ -231,7 +234,10 @@ ENC_LOGIN 4 // Rotation cipher used for the Login Server crypt by every client, 1233100 0D759E41C 03597BCD6 ENC_LOGIN // 1.23.31 1232700 0D47BD45C 034081CD6 ENC_LOGIN // 1.23.27 -//Enhanced Clients +// Enhanced Clients. +6790011100 015BBE10D 0BDB53E7F ENC_TFISH // 4.0.111.00 +6790011000 015DD2B1D 0BDEFA27F ENC_TFISH // 4.0.110.00 +6790010900 01A17712D 0BA101E7F ENC_TFISH // 4.0.109.00 6790010800 01A68833D 0BA22127F ENC_TFISH // 4.0.108.00 6790010700 01AA2D14D 0BA7C9E7F ENC_TFISH // 4.0.107.00 6790010600 01AF46B5D 0BA46A27F ENC_TFISH // 4.0.106.00