This repository has been archived on 2026-10-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
SashegDev b8e5df778e Модлоадер RustexRemake: агент, патч лаунчера, установщик и сборка
Моды грузятся через -javaagent, game.jar не патчится, переживают ре-обфускацию.

Что внутри:
- агент rsx-bridge.jar: профиль сборки игры, патчи A2/A6, загрузка модов
  через родной загрузчик игры (ilxq -> special.Main)
- патч лаунчера: окно выбора «С модами / Ванилла» по кнопке «Играть»
  и защита от автоапдейта лаунчера
- install/uninstall: всё ставится в %LOCALAPPDATA%\rsx-mod, пути не хардкодятся
- build: три готовых артефакта в dist, нужен только JDK
- testserver: локальный сервер, принимает любой ник и токен

Проверено на живом клиенте: мод грузится и выполняется в игровом потоке,
в логе видно игрока и мир.
2026-10-17 00:32:10 +03:00

20 lines
966 B
PowerShell

# Removes the hosts entry added by install-hosts.ps1.
$ErrorActionPreference = 'Stop'
$hosts = Join-Path $env:SystemRoot 'System32\drivers\etc\hosts'
$marker = '# rsx modloader test server'
$id = [Security.Principal.WindowsIdentity]::GetCurrent()
$isAdmin = (New-Object Security.Principal.WindowsPrincipal($id)).IsInRole(
[Security.Principal.WindowsBuiltInRole]::Administrator)
if (-not $isAdmin) {
Write-Host ' Нужны права администратора: запусти PowerShell от администратора.' -ForegroundColor Red
exit 1
}
$content = @(Get-Content -LiteralPath $hosts |
Where-Object { $_ -notmatch [regex]::Escape($marker) -and
$_ -notmatch '^\s*127\.0\.0\.1\s+185\.207\.214\.85' })
Set-Content -LiteralPath $hosts -Encoding ASCII -Value $content
Write-Host ' Запись удалена, клиент снова ходит на официальный сервер.' -ForegroundColor Green