Emulate the cockpit RIO board natively inside the DOSBox-X fork, driven by
an SDL game controller + host keyboard -- no external vRIO process and no
named pipe. The game<->board round trip runs in-process at the emulated
UART's own cadence, so the serial round-trip dropouts (livelock, TXMAXIDLE,
rxburst, 15s retry) can't occur.
- serialrio.{cpp,h}: RIO 9600-8N1 device state machine + protocol codec +
input mapping, transcribed from the vRIO app (VRioDevice + Protocol +
InputRouter/BindingProfileFormat), minus transport/pacer/UI/locks.
B0 = gamepad (5 axes + joystick column). B1 = keyboard field: MFD banks on
the letter rows, F-keys = Secondary/Screen, numpad = flight controls,
LShift/LCtrl throttle slew; PAUSE/ScrollLock toggle panel<->DOS; vRIO-
grammar bindings file via bindings:/VWE_RIO_BINDINGS.
- vpx-device/README.md: device notes + apply steps (the DOSBox-X src tree is
git-ignored, so this dir is the tracked source of truth; the three sdlmain
keyboard-hook edits are documented there).
- net_{loop,rp}_rio.conf + deploy templates; render-bridge/
gauge_arena_rio_sound.conf (standalone -egg trim); pod-launch --rio
(mutually exclusive with --pipe).
Additive: real pods keep directserial realport:COM1; vRIO-over-pipe keeps
namedpipe pipe:vrio. Validated live 2026-07-22 (pad + keyboard field +
console networking) on the dist install.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
69 lines
1.8 KiB
Cheetah
69 lines
1.8 KiB
Cheetah
# DEPLOY TEMPLATE -- rendered to net_loop_rio.conf by deploy/configure.ps1 at install.
|
|
# IN-FORK RIO TRIM: the RIO cockpit board is emulated NATIVELY inside DOSBox-X
|
|
# (serial1=rio) and driven by an SDL game controller -- no vRIO process, no
|
|
# pipe (launch: pod-launch <mode> --rio). Self-contained standalone/dev trim;
|
|
# arcade cockpits with the REAL RIO/plasma on COM ports use the non-suffixed
|
|
# confs, the vRIO-app dev rig uses the _pipe confs.
|
|
# Tokens (filled by postinstall): @@ROOT@@ = package dir (C:\games\<folder>),
|
|
# @@REALNIC@@ = this pod's NIC GUID fragment, @@MACADDR@@ = stable derived MAC.
|
|
# BattleTech, GO.BAT-style netnub loop (pod stays connected + picks up missions).
|
|
[sdl]
|
|
output=opengl
|
|
priority=highest,highest
|
|
[dosbox]
|
|
memsize=32
|
|
machine=svga_s3
|
|
[cpu]
|
|
core=dynamic
|
|
cputype=pentium
|
|
cycles=max
|
|
[ne2000]
|
|
ne2000=true
|
|
nicbase=340
|
|
# IRQ 10, NOT 3: COM2 (plasma) owns IRQ 3 in-game.
|
|
nicirq=10
|
|
macaddr=@@MACADDR@@
|
|
backend=pcap
|
|
[ethernet, pcap]
|
|
realnic=@@REALNIC@@
|
|
[sblaster]
|
|
sbtype=sb16
|
|
sbbase=220
|
|
irq=5
|
|
dma=1
|
|
hdma=5
|
|
[mixer]
|
|
rate=44100
|
|
blocksize=1024
|
|
prebuffer=60
|
|
[joystick]
|
|
# the in-fork RIO owns the game controller (SDL); keep the DOS gameport +
|
|
# mapper auto-binding off so nothing else grabs the pad.
|
|
joysticktype=none
|
|
[serial]
|
|
# in-fork virtual RIO board on COM1 (pad:<n> and inverty are optional args)
|
|
serial1=rio
|
|
serial2=namedpipe pipe:vplasma
|
|
[autoexec]
|
|
mount c "@@ROOT@@\ALPHA_1"
|
|
mount d "@@ROOT@@\net-boot"
|
|
d:
|
|
echo === loading NE2000 packet-driver stack (pcap/bridge, port 340) ===
|
|
d:\lsl
|
|
d:\ne2000
|
|
d:\odipkt
|
|
c:
|
|
cd \rel410\bt
|
|
set VIDEOFORMAT=svga
|
|
set BLASTER=A220 I5 D1 H5 P330 T6
|
|
c:\sb16\diagnose /s
|
|
set BLASTER=A240 I7 D3 H6 P300 T6
|
|
c:\sb16\diagnose /s
|
|
set BLASTER=A220 I5 D1 H5 P330 T6
|
|
set TEMP=c:\
|
|
set HEAPSIZE=15000000
|
|
set L4GAUGE=640x480x16
|
|
call setenv.bat r f s p
|
|
echo === entering GO.BAT-style netnub loop (waits for console missions) ===
|
|
call d:\loop.bat
|