Architecture & Tracking: Modding, Multi-Instance, VFS Overlay & Opt-In Networking Foundations (20 Core Milestones) #3045
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3045
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@hyperland956-lgtm on GitHub · 2026-11-26 05:13 UTC · original
Architecture & Tracking: Modding, Multi-Instance, VFS Overlay & Opt-In Networking Foundations
Context & Open-Ended Goal
As
VIctoryand its forks rapidly converge toward full single-player playability, the core runtime interfaces (victory-loader,victory-hle,victory-gpu,victory.toml) are stabilizing right now. Laying down clean, opt-in extensibility foundations now — while contributor velocity is high — ensures future community mods, scripting frameworks, and user-hosted multiplayer layers (LAN, P2P, or dedicated client-server) can plug intoVIctorycleanly instead of maintaining invasive forks later.The 20 milestones below (
MOD-001–MOD-020) are a starting baseline, not a ceiling. Contributors and agents analyzing real workloads are encouraged to think beyond this list, refine designs where the codebase warrants it, and introduce any additional clean runtime seams (e.g., richer memory/thread hooks, crash diagnostics, hot-reloadable shaders/assets, audio/voice routing, or custom sync primitives) needed to makeVIctorya rock-solid modding and multiplayer host. Everything remains opt-in (offline/single-player default behavior unchanged).MOD-001–MOD-003)MOD-004–MOD-006)game_dirMOD-007–MOD-010)MOD-011–MOD-014)XNetworkingconnectivity, and a dedicated plugin transport layerMOD-015–MOD-019)MOD-020)Pillar 1 — Plugin & Runtime Hook Architecture
MOD-001— Versioned Native Plugin Host &[mods]ConfigP1| Area: Newcrates/victory-mod,apps/victory/src/run.rs,victory.example.toml[mods]config +--mod-dir/--no-modsCLI overrides, disabled by default) exposing host logging, lifecycle registration, and graceful ABI mismatch handling so mods load cleanly without DLL injection.MOD-002— Loader Lifecycle & HLE Import-Chaining SeamsP1| Area:crates/victory-loader/src/{lib.rs,prepare.rs,resolve.rs}on_image_loaded) and prior to entry (on_before_entry), and provide a thread-safe mechanism for plugins to wrap or chain specific Win32/GDK HLE imports cleanly rather than manually patching IATs.MOD-003— Safe Runtime Memory, Module & Thread Query API for PluginsP1| Area:crates/victory-mod,crates/victory-loaderPillar 2 — Non-Destructive VFS & Asset Override Stack
MOD-004— Priority-Ordered VFS File Override LayerP0| Area:crates/victory-hle/src/modules/files.rs,victory.example.toml[mods] overlay_dirs = [...]) checked beforegame_diron read opens (CreateFileW/CreateFileA/GetFileAttributesExW), falling back togame_diron miss while routing all writes todata_dir.MOD-005— DirectStorage VFS IntegrationP0| Area:crates/victory-hle/src/modules/dstorage.rs,crates/victory-hle/src/modules/files.rsIDStorageFactoryX::OpenFilethrough the same VFS overlay resolution path as Win32 file opens so overridden streamed archives and assets work seamlessly through DirectStorage.MOD-006— Merged Directory Enumeration Across OverlaysP2| Area:crates/victory-hle/src/modules/files.rsFindFirstFileW/FindNextFileWresults across configured overlay roots andgame_dirwith case-insensitive deduplication (highest-priority overlay wins) so mods can add brand-new files discovered via directory scans.Pillar 3 — Multi-Instance & Profile Isolation
MOD-007— Per-Instance--profile <name>Data & Save IsolationP0| Area:apps/victory/src/run.rs,crates/victory-hle/src/modules/{storage.rs,xgamesave.rs}--profile <name>(andVICTORY_PROFILE) to isolatedata_dir(saves, settings, logs) per instance while allowing concurrent local instances to share read-onlygame_dirandcache_dir.MOD-008— Configurable Local User Identity (XUID, Gamertag, Display Name)P1| Area:crates/victory-hle/src/modules/xuser.rs,victory.example.toml[profile]/ CLI overrides (--gamertag,--xuid, or deterministic hash derived from--profile) so multiple local clients have distinct identities.MOD-009— Concurrent Cache File Locking & Atomic WritesP1| Area:crates/victory-gpu/src/shader_cache.rs,crates/victory-gpu/src/pipeline/library.rs.tmpfilename collisions (e.g.,host-pipelines.tmp) using per-process/thread unique temp paths before atomic rename so simultaneous local instances sharingcache_dirnever fail with sharing violations or corrupt caches.MOD-010— Multi-Client Window & Audio FlagsP2| Area:apps/victory/src/run.rs,crates/victory-gpu/src/dxgi.rs,crates/victory-hle/src/modules/audio.rs--window-title,--window-pos X,Y,W,H, and--muteflags for running side-by-side local clients cleanly during multiplayer development and testing.Pillar 4 — Opt-In Local, LAN & Custom-Server Networking
MOD-011— Opt-In[network]Mode & Endpoint PolicyP0| Area:crates/victory-hle/src/modules/net.rs,victory.example.tomlloopbackas the default mode, and add opt-inlan(RFC1918 / ULA / link-local) andallowlist(explicit user-configuredip:port/ CIDR entries for user-hosted servers or peers) modes so mods aren't locked to127.0.0.1when the user opts in.MOD-012— Local/LAN Interface Bind & Port-Offset SupportP1| Area:crates/victory-hle/src/modules/net.rs127.0.0.1, and add--net-port-offset <N>so multiple local instances on the same host don't collide on fixed UDP/TCP ports.MOD-013— Opt-In Local Connectivity Provider inxnetworking.rsP1| Area:crates/victory-hle/src/modules/xnetworking.rs[network]is opted out of strict loopback, report local connectivity inXNetworkingGetConnectivityHint, honor configured UDP ports / offsets inQueryPreferredLocalUdpMultiplayerPort, and fireConnectivityHintChangedcallbacks properly.MOD-014— Dedicated Host-Side Transport Layer for Mod PluginsP1| Area:crates/victory-mod,crates/victory-hle/src/modules/net.rsPillar 5 — Overlay Rendering, Input & Sync Primitives
MOD-015— Pre-Present D3D12 Overlay Hook & Resize LifecycleP1| Area:crates/victory-gpu/src/{host.rs,queue.rs,dxgi.rs}Host::present(with device, queue, command list, backbuffer RTV, dimensions, and frame index) pluson_before_resize/on_after_resizenotifications so mod UIs (server browsers, chat, nametags, debug HUDs) render cleanly without DXGI hook conflicts.MOD-016— Mod Input-Capture GateP1| Area:crates/victory-hle/src/modules/{gameinput.rs,lifecycle.rs}MOD-017— Per-Instance Controller Slot (--pad-index) &--background-inputP2| Area:crates/victory-hle/src/modules/gameinput.rs,apps/victory/src/run.rs0..3) and optionally keep receiving controller input when unfocused, enabling effortless single-PC dual-client testing.MOD-018— Frame-Boundary, Monotonic Clock & Sync HooksP1| Area:crates/victory-gpu/src/queue.rs,crates/victory-hle/src/modules/kernel.rson_frame_end(frame_index, delta_us)callback alongside host QPC epoch/time-scale hooks so multiplayer mods have a deterministic tick and shared timebase for interpolation, prediction, and replay debugging.MOD-019— Low-Overhead--headless&--fps-capSecond-Client ModeP2| Area:apps/victory/src/run.rs,crates/victory-gpu/src/{host.rs,dxgi.rs}--headless(combinable with WARP and--mute) and--fps-capso developers and CI can spin up a lightweight second client without desktop window overhead or full GPU load.Pillar 6 — Local IPC & Multi-Client Test Harness
MOD-020— Opt-In Local IPC Control/Telemetry Bus & Dual-Instance HarnessP1| Area: Newcrates/victory-ipc,apps/victory/src/run.rs,crates/victory-hle/tests/[ipc] enabled = false) for external launchers/server browsers, paired with a dual-instance loopback integration harness verifying profile isolation, VFS overlays, concurrent cache safety, and local packet exchange.@Marvisak on GitHub · 2026-11-26 06:45 UTC · original
Automated triage for the maintainers.
A roadmap proposal for plugin hooks, file overlays, multi-instance profiles, overlays and opt-in networking. On scope: the README states the project is offline by design ("the title cannot reach the network"), and
crates/victory-hle/src/modules/net.rsenforces it by allowing loopback only and narrowing binds to loopback. The networking pillar (MOD-011 to MOD-014, and the multi-client parts that depend on it) therefore runs against the stated scope. Modding hooks, file overlays and multi-instance support are not covered by the README either way, so whether any of this belongs here is left to the maintainers.If parts of it are wanted, separate issues or PRs per change are easier to review than one tracking list.
Generated by Claude Code