XGameRuntime: with XCL_NETWORK=0 the connectivity hint says no network #489
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/494"
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?
Imported from ivall/xcl. Originally posted by notdxbi on 2026-11-24T01:02:41Z.
With
XCL_NETWORK=0every request of the title fails, butXNetworkingGetConnectivityHintstill answered with the host's connectivity (InternetAccess). A retail game then took itself to be online and kept asking its online service for a ticket (CreateTicketXbl3, "no Xbox Live", with growing gaps). With the hint atNone, as on a console without a network, it asks for no token at all and goes on to stream its world. Part of #175 (comment with the runs: https://github.com/ivall/xcl/issues/175#issuecomment-7118129089).What is in it
hle/xgameruntime/networking.rs: the level is worked out inconnectivity_level(host, network_off); withXCL_NETWORK=0it is 1 (None). WithoutXCL_NETWORK=0nothing changes.connectivity_level_without_network_is_none. Without the change it fails ("host None, network off").Tested
from_ifacechecks relaxed and-Db_ndebug=true, as in #257; DXVK 3.1.1 dxgi), Rust stablex86_64-pc-windows-gnu(cross-built), releasemain2997c9a+ this commit): CPU tests--skip gpu:: --test-threads=4: 364 passed, 0 failed, 3 ignored; GPU testsgpu:: --test-threads=1: 271 passed, 0 failed, 18 ignored (run serially: with 4 threads this card sometimes loses the device, NVRM Xid 109, in tests this change does not touch).mesh_dispatch::tests::gpu_*/paired_*were excluded: they hang this GPU onmaintoo.SKIPPEDon this adapter:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)XCL_NETWORK=0, A pressed at the account prompt: before, token requests every ~16 s; after, none, and the title streams its world after the intro and the loading screen.Regression run
scripts/smoke.ps1needs Windows (see Not tested).Not tested
scripts/smoke.ps1blocks and no MSVC build; this PR needs someone to run the regression on Windows before it can be merged.AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by nullmarsh on 2026-11-24T01:32:42Z.
Windows / MSVC run, since Not tested asks for one:
bf21fd8merged ontomain7ebf1b8(clean merge) builds and passes.Tested
x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug build..\scripts\test.ps1: 678 passed, 0 failed, 41 ignored; noSKIPPEDGPU tests.cargo test -p xcl --lib connectivity_level_without_network:connectivity_level_without_network_is_nonepasses.Not tested
smoke.ps1(no retail title here yet).AI use
Imported from ivall/xcl. Originally posted by vibryxcx on 2026-11-24T02:00:57Z.
Windows regression run with a retail title, which Not tested asks for (the comment above ran the suite only). The fix shows on Windows too: no token requests with the PR.
Tested
cargo clean --release -p xclbefore each build.bf21fd8as it is, against its base,main2997c9a. No uncommitted changes.scripts/smoke.ps1setsXCL_NETWORK=0.scripts/smoke.ps1 -Game <folder> -Seconds 60, no input. Menu run:XCL_PRESS_A_AT=14,17,21,40,60,66,72,-Seconds 180.2997c9abf21fd8XUser: token …lines, 60 s runXUser: token …lines, 180 s menu runOn
2997c9athe first token lines areCreateTicketXbl3andros.rockstargames.com,none: no Xbox Live (0x80072EFD), as in the description.Regression run
main2997c9a:This PR
bf21fd8:Not tested
AI use
Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-24T02:16:58Z.
Regression run for this PR's head on Windows, as asked in #175.
Tested
cargo build --release -p xcl) from clean checkouts2997c9aca6ebf4577fed34ebdb3cb0a77dd9ec21(this PR's base); PR head:bf21fd8eff8aef2fed3de4a321673f85a01c7588, no uncommitted changesscripts/smoke.ps1 -Game <title folder> -Seconds 60on a retail title, main first, after one 60 s warm-up run of main; both sides start from the same learned coherent-window sizeXUser: token #0-#5, five of themnone: no Xbox Live, at 10.7, 10.8, 24.6, 45.6 and 59.2 s); the PR's run logged noneRegression run
main:
PR:
Not tested
cargo test --workspace(not run for this report)🤖 Claude Opus 5.5
Imported from ivall/xcl. Originally posted by OrangeCrane1738 on 2026-11-24T15:59:47Z.
Test report for
bf21fd8on the retail title: one 120 s smoke run without this PR and one with it.Tested
scripts/smoke.ps1 -Seconds 120on the retail title, no input.maindies early on the XAsync routing that #235 fixes. Both builds therefore include #235:main930e8b4+ #235, and the same + this PR (bf21fd8). Their commits are local merges, so the blocks below can't stand in for the main / PR-head pair the PR check needs.title:line is the game folder's name, shortened.XUser: token ... CreateTicketXbl3 - none: no Xbox Live, at 21, 25, 27, 48, 55 and 112 s). With it: none.Smoke runs
main
930e8b4+ #235main
930e8b4+ #235 + #494 (bf21fd8)Not tested
mainand of this PR's head as they are (no Gaming Services here, see above).AI use
Imported from ivall/xcl. Originally posted by LukaManstein on 2026-11-25T01:12:42Z.
Test report on Windows (the PR was tested under Wine only so far).
Setup: NVIDIA RTX 3080 Ti 12 GB (wave32), Windows 10 21H2 (19044), 32 GB RAM, retail title 1.0.2.1 (package complete). This PR's commit merged onto
mainde36462(no conflicts),cargo build --release -p xcl. Same scripted A presses in both runs (XCL_PRESS_A_AT=130,140,150),XCL_NETWORK=0.Result: with the PR the title asks for no Xbox Live token at all; on
mainit asked 9 times (XUser: token #n for POST …/auth.asmx/CreateTicketXbl3 – none: no Xbox Live (0x80072EFD)) in the same 300 s. No regression: more frames, lower peak commit, no device removal or crash.mainde36462Earlier, longer runs on an older base (
main47efa2e, no PR): DirectStorage requests dropped to 0 at about 245 s, while the token requests went on, and the title stayed on its dark loading screen for 6 min. With this PR (onmain6567c5f) it kept streaming for 17 min, through the full-colour loading art and ~19,000 shaders, until video memory (12 GB) was full; it did not reach the world in that time. In the 300 s pair above,mainde36462was still streaming at the end too, so this pair does not show the stall itself.Regression run
(
8515bfais this PR'sbf21fd8merged ontode36462, not the PR's own head.)Not tested: the full test suite on this merge; reaching the world (video memory runs out first on this card).
AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and wrote this text; I reviewed it.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T14:05:07Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:41:42Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:36:17Z.
Triage (#1607) – head
bf21fd8No open or merged PR makes the same change. The other #175 PRs (#669, #793, #794, #1462, #3492) are about Wine, presentation and the console window, not the connectivity hint.
connectivity_levelreturns None (1) only whennetoff::enabled()(XCL_NETWORK=0) is set, so default behaviour is unchanged. No problems found in the diff.The PR is a draft, and its description check fails because it has no Windows smoke run.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.