# DER AntiCheat**Version:** 1.3.0 **Godot Version:** 4.6+ **Author:** 222 **License:** MIT ---## Overview**English**DER AntiCheat is a professional anti-cheat plugin for Godot 4.6+ that protects your game from memory editors, debuggers, and cheat tools. Version 1.3.0 introduces a complete configuration system with presets, templates, validation, and diff tools, alongside the existing cache system, replay protection, time synchronization, runtime value encryption, cheat detection, and network protection features. All core features are stable and production-ready.**中文**DER AntiCheat 是 Godot 4.6+ 的专业反作弊插件,保护你的游戏免受内存修改器、调试器和作弊工具的侵害。1.3.0 版本新增完整的配置系统,包含预设、模板、验证和差异比对工具,配合原有的缓存系统、重放防护、时间同步、运行时数值加密、作弊检测和网络保护功能。所有核心功能均已稳定,可直接用于生产环境。---## Features### Value Protection**English**- Memory Encryption: Automatically encrypt integers, floats, booleans, and strings in memory- Value Pool: Centralized management of protected values- Access Detection: Detect unauthorized memory access attempts**中文**- 内存加密:自动加密内存中的整数、浮点数、布尔值和字符串- 值池管理:集中管理受保护的数值- 访问检测:检测未授权的内存访问尝试### Cheat Detection**English**- Debugger Detection: Detect if debuggers are attached to your game- Memory Scanner Detection: Identify memory scanning tools- Speed Hack Detection: Detect game speed modifications- Integrity Checks: Verify game file integrity at runtime**中文**- 调试器检测:检测是否有调试器附加到游戏进程- 内存扫描检测:识别内存扫描工具- 变速器检测:检测游戏速度修改- 完整性检查:运行时验证游戏文件完整性### Network Protection**English**- Packet Encryption: All network data is automatically encrypted- HMAC Signatures: Prevent packet tampering- Replay Attack Prevention: Timestamp and nonce validation- Connection Pooling: Manage multiple connections efficiently- Auto Reconnect: Automatically reconnect on disconnection- WebSocket Support: Real-time bidirectional communication- Resume Downloads: Support for broken download recovery- Bandwidth Control: Limit bandwidth usage per second- Request Prioritization: Critical requests bypass rate limits**中文**- 数据包加密:所有网络数据自动加密传输- HMAC签名:防止数据包被篡改- 重放攻击防护:时间戳和随机数验证- 连接池管理:高效管理多个网络连接- 自动重连:断线后自动重新连接- WebSocket支持:实时双向通信- 断点续传:支持下载中断后继续- 带宽控制:限制每秒带宽使用- 请求优先级:关键请求绕过频率限制### Cache System**English**- TTL-based auto cleanup- LRU eviction strategy (expired first, then least recently used)- Thread-safe operations- Batch get/set support- Optional encrypted persistence- Hit ratio and eviction statistics**中文**- 基于 TTL 的自动清理- LRU 淘汰策略(优先淘汰过期项,再淘汰最久未使用)- 线程安全操作- 批量读写支持- 可选加密持久化- 命中率和淘汰统计### Replay Protection**English**- Nonce + RequestID双重验证双重 validation- Time window validation (default 60 seconds)- HMAC-SHA256 signature verification- Cryptographically secure random numbers- Auto cleanup of expired nonces- Batch validation interface**中文**- Nonce + RequestID 双重验证- 时间窗口验证(默认 60 秒)- HMAC-SHA256 签名验证- 密码学安全随机数- 自动清理过期的 nonce- 批量验证接口### Time Synchronization**English**- NTP-style time synchronization algorithm- HTTPS enforcement (prevents MITM attacks)- Optional certificate pinning- Optional request signing (HMAC-SHA256)- Latency sampling (keeps 70% lowest latency samples)- Median offset calculation- Security status monitoring**中文**- NTP 风格时间同步算法- 强制 HTTPS(防止中间人攻击)- 可选证书锁定- 可选请求签名(HMAC-SHA256)- 延迟采样(保留 70% 低延迟样本)- 中位数偏移计算- 安全状态监控### Configuration System (New in v1.3.0)**English**- Config Manager: Load, save, and manage configurations with auto-save- Config Diff: Compare configurations with deep recursion and array modes- Config Preset: 7 ready-to-use presets (Development, Testing, Production, Light, Balanced, Strict)- Config Template: Reusable configuration templates with import/export- Config Validator: Validate configurations with custom rules and auto-fix**中文**- 配置管理器:加载、保存和管理配置,支持自动保存- 配置差异比对:深度递归比对,支持多种数组模式- 配置预设:7 种即用预设(开发、测试、生产、轻量、平衡、严格)- 配置模板:可复用的配置模板,支持导入导出- 配置验证器:自定义规则验证,支持自动修复---## Installation**English**1. Download from GitHub Releases or Godot Asset Library2. Copy the `addons/DER AntiCheat` folder to your project's `addons/` directory3. Open Godot Editor -> Project -> Project Settings -> Plugins4. Enable "DER AntiCheat"5. Restart the editor**中文**1. 从 GitHub Releases 或 Godot Asset Library 下载2. 将 `DER AntiCheat` 文件夹复制到项目的 `addons/` 目录3. 打开 Godot 编辑器 -> 项目 -> 项目设置 -> 插件4. 启用 "DER AntiCheat"5. 重启编辑器---## Quick Start```gdscript# Create a protected valuevar pool = DERPool.new()var player_hp = VanguardValue.new(100)pool.set_value("hp", player_hp)# Use it normallyfunc take_damage(amount): var current = pool.get_value("hp").value pool.get_value("hp").value = current - amount# Scan for threatsvar threats = pool.scan_for_threats()if threats.size() > 0: print("Cheat detected!")# Network protectionvar client = DERNetworkClient.new("https://yourserver.com", self)client.handshake(func(success, result): if success: print("Connected to server"))client.send("/api/player/move", {"x": 100, "y": 200}, func(success, result): if success: print("Move successful"))# Cache examplevar cache = DERCacheManager.new()cache.set("player_data", {"level": 10, "exp": 1500})var data = cache.get("player_data")# Replay protection examplevar replay = DERReplayProtector.new()var nonce = replay.generate_nonce()var valid = replay.validate_request(nonce, timestamp, request_id, path, fingerprint, signature)# Time sync examplevar time_sync = DERTimeSync.new("https://api.yourserver.com", self)time_sync.sync_time(func(success, offset, latency): if success: print("Time synced, offset:", offset))# Configuration system example (New in v1.3.0)var config = DERConfigManager.new()config.load_config("user://anticheat.json")config.set_value("protect_level", 2)DERConfigPreset.apply_preset(config, DERConfigPreset.PresetType.STRICT)config.add_listener("protect_level", func(key, old, new): print("Protection level changed: %s -> %s" % [old, new]))var diff = DERConfigDiff.new()var diffs = diff.compare_files("old.json", "new.json")print(diff.generate_report(diffs))var validator = DERConfigValidator.new()if not validator.validate_config(config.get_all(), true): print("Config has errors, auto-fixed")```---ChangelogVersion 1.3.0English· Added Configuration System with Manager, Diff, Preset, Template, and Validator· Added 7 ready-to-use presets (Development, Testing, Production, Light, Balanced, Strict)· Added config file import/export with JSON format· Added config validation with custom rules and auto-fix· Added config diff comparison with deep recursion and array modes· Added config change listeners for real-time updates· Removed deprecated v1.2 network scripts (cache_manager, replay_protector, time_sync)中文· 新增配置系统,包含管理器、差异比对、预设、模板、验证器· 新增 7 种即用预设(开发、测试、生产、轻量、平衡、严格)· 新增配置文件导入导出,支持 JSON 格式· 新增配置验证,支持自定义规则和自动修复· 新增配置差异比对,支持深度递归和多种数组模式· 新增配置变更监听器,支持实时更新· 移除已弃用的 v1.2 网络脚本(cache_manager、replay_protector、time_sync)Version 1.2.0English· Added Cache System (DERCacheManager) with TTL, LRU, and encrypted persistence· Added Replay Protection System (DERReplayProtector) with Nonce + RequestID双重验证双重 validation and HMAC-SHA256· Added Time Synchronization System (DERTimeSync) with NTP algorithm and HTTPS enforcement· Improved thread safety across all modules· Added comprehensive statistics for all new systems中文· 新增缓存系统(DERCacheManager),支持 TTL、LRU 和加密持久化· 新增重放防护系统(DERReplayProtector),支持 Nonce + RequestID 双重验证和 HMAC-SHA256· 新增时间同步系统(DERTimeSync),支持 NTP 算法和强制 HTTPS· 优化所有模块的线程安全性· 为所有新系统添加完整的统计功能Version 1.1.0English· Added network protection module with encrypted packet transmission· Added WebSocket support for real-time communication· Added resume broken downloads feature· Added connection pooling and auto-reconnect· Added bandwidth control and request prioritization· Improved thread safety and performance· Added adaptive data compression中文· 新增网络保护模块,支持加密数据包传输· 新增 WebSocket 实时通信支持· 新增断点续传功能· 新增连接池管理和自动重连· 新增带宽控制和请求优先级· 优化线程安全和性能· 新增自适应数据压缩Version 1.0.0English· Initial release with core anti-cheat features中文· 首次发布,包含核心反作弊功能---LicenseMIT License - Free for personal and commercial use