Skip to content

fix: make bf2_runtime_pair link again (WorldPref::mTickCount) - #66

Merged
matthias-hoste merged 1 commit into
B2BF:mainfrom
AndreasLauvhjell:fix/runtime-pair-link
Nov 1, 2026
Merged

matthias-hoste merged 1 commit into
B2BF:mainfrom
AndreasLauvhjell:fix/runtime-pair-link

Conversation

@AndreasLauvhjell

@AndreasLauvhjell AndreasLauvhjell commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the red x86 CI job on main. bf2_runtime_pair fails to link with LNK2019
dice::hfe::WorldPref::mTickCount: GrenadeTrace.h (added in e44067b) logs the tick count, and
PointPhysicsNode.cpp, which is in the test's source list, includes it. The real definition is in
Core/System.cpp, which the test does not link.

Adds a [TEMP] test-only definition of WorldPref::mTickCount in Code/Tests/runtime_pair.cpp. The
grenade trace is not armed in the tests, so the counter only has to exist. No game code changed;
runtime_pair.cmd uses the same .cpp, so it is covered without changes.

Local CI check

Local mirror of the Windows jobs in .github/workflows/build.yml, run on main (ccf3099)
plus #64, #65 and #66 together (not one by one), from empty build dirs:

Step Result
x64 python / configure / bf2_w64ded pass
x86 python / configure pass
x86 bf2_run_checks (incl. bf2_runtime_pair, 5/5) + bf2_editor_run_checks (926 passed, 0 failed) pass
x86 bf2_w32ded pass
x86 bf2_aidll + bf2_client pass
x86 bf2_editor pass

Toolchain: VS 2026 (MSVC 19.51); CI uses VS 2022. Linux job not run locally.

The grenade trace compiled into PointPhysicsNode.cpp reads the tick
count, whose definition lives in Core/System.cpp. The harness does not
link that file, so bf2_runtime_pair failed with LNK2019 and
bf2_run_checks never ran. Add a test-only [TEMP] definition.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

@matthias-hoste matthias-hoste left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@matthias-hoste
matthias-hoste merged commit 9f55229 into B2BF:main Nov 1, 2026
2 of 3 checks passed
@matthias-hoste

Copy link
Copy Markdown
Contributor

Thanks for contributing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants