Commit Graph

13 Commits

Author SHA1 Message Date
sanasol
2efecd168f fix: Ultra-minimal patching - only main domain
Only patch hytale.com -> anasol.ws
Skip ALL subdomain patches (sessions, account-data, tools, telemetry, sentry)

Testing if fewer patches = no crash.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 06:10:08 +01:00
sanasol
225bc662b3 fix: Minimal patching mode - only essential auth patches
Reduced patches from 6 to 3:
- Skip sentry (not needed for auth)
- Skip tools (not needed for auth)
- Skip telemetry (not needed for auth)
- Keep: domain, sessions, account-data

Fewer patches = less chance of triggering race condition.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 06:06:00 +01:00
sanasol
778ed11f87 fix: Revert null-padding - was corrupting adjacent data
The null-fill before overwrite was likely corrupting data after
the string, causing crashes. Reverted to develop behavior: only
overwrite the bytes we need to change.

Also re-enabled sentry patching.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 05:24:43 +01:00
sanasol
24a919588e fix: Disable sentry URL patching to prevent crash
The sentry URL string appears to be near executable code in the binary.
Patching it may corrupt memory layout on glibc 2.41+ systems.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 05:19:34 +01:00
sanasol
4c059f0a6b fix: Steam Deck/Ubuntu crash with jemalloc allocator
Root cause: glibc 2.41 has stricter heap validation that catches a
pre-existing race condition triggered by binary patching.

Changes:
- Add jemalloc auto-detection and usage on Linux
- Add auto-install via pkexec (graphical sudo prompt)
- Clean up clientPatcher.js (remove debug env vars)
- Add null-padding fix for shorter domain replacements
- Document investigation and solution

The launcher now:
1. Auto-detects jemalloc if installed
2. Offers to auto-install if missing (password prompt)
3. Falls back to MALLOC_CHECK_=0 if jemalloc unavailable

Install manually: sudo pacman -S jemalloc (Arch/Steam Deck)
                  sudo apt install libjemalloc2 (Debian/Ubuntu)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 05:01:06 +01:00
AMIAY
9e54e07b22 R2 cdn added 2026-01-25 21:26:46 +01:00
AMIAY
ad3c73563d temp jar patcher 2026-01-25 17:02:02 +01:00
sanasol
d87db04653 feat(patcher): Implement DualAuth patcher with enhanced server patching
- Introduce DualAuthPatcher with support for hybrid authentication
- Update default auth domain to `auth.sanasol.ws`
- Integrate Java detection and bundled JRE handling for patcher execution
- Add server patch flag for avoiding redundant patching
- Automate DualAuthPatcher setup: download, compile, and execute with dependencies
- Enhance patching logic for extended logging and modularity
2026-01-25 01:27:19 +01:00
sanasol
3d54cea9e7 feat(patcher): Support variable-length domains (4-16 chars)
- Add support for domains from 4 to 16 characters
- Domains <= 10 chars: direct replacement, subdomains stripped
- Domains 11-16 chars: split mode (first 6 chars -> subdomain prefix)
- Add length-prefixed byte format encoding for client binary
- Verify binary contents when checking if already patched
- Detect file updates and archive old backups with timestamps
- Fallback to legacy UTF-16LE format for older binaries
- Update patcher version to 2.0.0

Based on patching approach from Mollomm1/Hytale-EMULATOR

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 21:11:20 +01:00
AMIAY
87b168dd4c fix 2026-01-24 12:22:15 +01:00
AMIAY
c900129c1f fix patch 2026-01-24 12:05:10 +01:00
AMIAY
72a151930e Patch Discord invite URLs in client binary 2026-01-21 13:30:49 +01:00
AMIAY
21f8527ed4 update 2.0.2 2026-01-19 23:15:29 +01:00