From f43d3cd939f6f784b74863cf732b897893e20e52 Mon Sep 17 00:00:00 2001 From: Peter Balaz Date: Thu, 18 Sep 2025 15:33:42 +0200 Subject: [PATCH 1/5] 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/5] 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/5] 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 From 174d32d73f8617413ce822b872be5f30ff532f32 Mon Sep 17 00:00:00 2001 From: David Kindl Date: Sun, 18 Jan 2026 14:37:23 +0100 Subject: [PATCH 4/5] Added new client encryptions (112, 113) --- src/sphereCrypt.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sphereCrypt.ini b/src/sphereCrypt.ini index 6b50d4465..3dcdab69b 100644 --- a/src/sphereCrypt.ini +++ b/src/sphereCrypt.ini @@ -24,6 +24,8 @@ ENC_LOGIN 4 // Rotation cipher used for the Login Server crypt by every client, [SPHERECRYPT] // Classic Clients. +70011300 0374860ED 0ACD9FE7F ENC_TFISH // 7.0.113.00 +70011200 03771A2FD 0ACDF527F ENC_TFISH // 7.0.112.00 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 @@ -235,6 +237,8 @@ ENC_LOGIN 4 // Rotation cipher used for the Login Server crypt by every client, 1232700 0D47BD45C 034081CD6 ENC_LOGIN // 1.23.27 // Enhanced Clients. +6790011300 0154860ED 0BDD9FE7F ENC_TFISH // 4.0.113.00 +6790011200 01571A2FD 0BDDF527F ENC_TFISH // 4.0.112.00 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 From f1454fe63048ebdc5f673a8bd95b0c884af5fd1d Mon Sep 17 00:00:00 2001 From: David Kindl Date: Sun, 18 Jan 2026 23:57:28 +0100 Subject: [PATCH 5/5] Fix github upload release ci permissions --- .github/workflows/build_linux_x86.yml | 4 ++-- .github/workflows/build_linux_x86_64.yml | 4 ++-- .github/workflows/build_osx_arm.yml | 4 ++-- .github/workflows/build_osx_x86_64.yml | 4 ++-- .github/workflows/build_win_x86.yml | 4 ++-- .github/workflows/build_win_x86_64.yml | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_linux_x86.yml b/.github/workflows/build_linux_x86.yml index 534f4ef3e..55b222701 100644 --- a/.github/workflows/build_linux_x86.yml +++ b/.github/workflows/build_linux_x86.yml @@ -134,8 +134,8 @@ jobs: # Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches if: contains(fromJson('["master", "main"]'), github.ref_name) permissions: - contents: read - actions: write + contents: write + actions: read runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build_linux_x86_64.yml b/.github/workflows/build_linux_x86_64.yml index 260c2eb51..bb7ecea64 100644 --- a/.github/workflows/build_linux_x86_64.yml +++ b/.github/workflows/build_linux_x86_64.yml @@ -89,8 +89,8 @@ jobs: # Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches if: contains(fromJson('["master", "main"]'), github.ref_name) permissions: - contents: read - actions: write + contents: write + actions: read runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build_osx_arm.yml b/.github/workflows/build_osx_arm.yml index 416d72397..3de3f25d8 100644 --- a/.github/workflows/build_osx_arm.yml +++ b/.github/workflows/build_osx_arm.yml @@ -79,8 +79,8 @@ jobs: needs: macos-arm64 # Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches if: contains(fromJson('["master", "main"]'), github.ref_name) permissions: - contents: read - actions: write + contents: write + actions: read runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build_osx_x86_64.yml b/.github/workflows/build_osx_x86_64.yml index 281f5e91f..295bad2af 100644 --- a/.github/workflows/build_osx_x86_64.yml +++ b/.github/workflows/build_osx_x86_64.yml @@ -75,8 +75,8 @@ jobs: upload_github_release: needs: macos-x86_64 permissions: - contents: read - actions: write + contents: write + actions: read # Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches if: contains(fromJson('["master", "main"]'), github.ref_name) diff --git a/.github/workflows/build_win_x86.yml b/.github/workflows/build_win_x86.yml index ff9380608..913e10cf2 100644 --- a/.github/workflows/build_win_x86.yml +++ b/.github/workflows/build_win_x86.yml @@ -59,8 +59,8 @@ jobs: # Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches if: contains(fromJson('["master", "main"]'), github.ref_name) permissions: - contents: read - actions: write + contents: write + actions: read runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build_win_x86_64.yml b/.github/workflows/build_win_x86_64.yml index 65aa0b0fd..e20b6e4d8 100644 --- a/.github/workflows/build_win_x86_64.yml +++ b/.github/workflows/build_win_x86_64.yml @@ -59,8 +59,8 @@ jobs: # Upload artifact linked to GitHub RELEASE we are creating - only if the run is for a pull request, or for selected branches if: contains(fromJson('["master", "main"]'), github.ref_name) permissions: - contents: read - actions: write + contents: write + actions: read runs-on: ubuntu-latest steps: