- Hybrid Python/Node.js architecture with WebSocket bridge - PySide6 desktop app with smoky blue futuristic theme - Dashboard, Create Doug, Settings screens - bedrock-protocol connection to BDS (offline + Xbox Live auth) - Realm support (auth flow with device code + browser auto-open) - Ollama integration with lean persona prompt (~95 tokens) - 40 personality traits (15 sliders + 23 quirks + 2 toggles) - SQLite + MariaDB database with 12 tables - Chat working in-game with proper Bedrock text packet format - RakNet protocol 11 patch for newer BDS versions - jsp-raknet backend (native crashes on ARM64 macOS) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
676 B
JavaScript
15 lines
676 B
JavaScript
// Patch jsp-raknet to use RakNet protocol version 11
|
|
// Newer BDS servers (1.26+) require protocol 11 instead of 10
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
const clientFile = path.join(__dirname, '..', 'node_modules', 'jsp-raknet', 'js', 'Client.js');
|
|
if (fs.existsSync(clientFile)) {
|
|
let content = fs.readFileSync(clientFile, 'utf8');
|
|
if (content.includes('RAKNET_PROTOCOL = 10')) {
|
|
content = content.replace('RAKNET_PROTOCOL = 10', 'RAKNET_PROTOCOL = 11');
|
|
fs.writeFileSync(clientFile, content);
|
|
console.log('Patched jsp-raknet to RakNet protocol 11');
|
|
} else {
|
|
console.log('jsp-raknet already patched');
|
|
}
|
|
}
|