Skip to content

Pin CS2 2000872 hl2sdk for native rebuild#1

Open
tomastaker wants to merge 1 commit into
mainfrom
codex/cs2-2000872-hl2sdk-fix
Open

Pin CS2 2000872 hl2sdk for native rebuild#1
tomastaker wants to merge 1 commit into
mainfrom
codex/cs2-2000872-hl2sdk-fix

Conversation

@tomastaker

@tomastaker tomastaker commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Что меняется

  • Переключает submodule libraries/hl2sdk-cs2 на tomastaker/hl2sdk.
  • Фиксирует commit ff95a570 из ветки codex/cs2-2000872-metamod-css-fix.

Зачем

После CS2 2000872 официальный CounterStrikeSharp v1.0.370 native binary импортировал устаревшие symbols g_bUpdateStringTokenDatabase / RegisterStringToken и не мог загрузиться вместе с исправленным Metamod. Rebuild against patched hl2sdk убирает эти imports.

Проверка

  • На game собран counterstrikesharp.so из исходников v1.0.370 against этого hl2sdk commit.
  • nm -D не показывает g_bUpdateStringTokenDatabase / RegisterStringToken.
  • В проде после deploy и docker restart CounterStrikeSharp стартует, CounterStrikeSharp.API Loaded Successfully, Hooks added.
  • CommendBoostPlugin слушает http://*:2479/.
  • /api/health возвращает status=ok, nativeAuthAvailable=true.
  • /api/server-state возвращает loggedOnToSteam=true, vacSecure=true, mapTimelimitMinutes=60, mapTimeLeftSource=mp_timelimit.

Оставшийся риск

CounterStrikeSharp всё ещё пишет missing signatures для Host_Say, CEntityInstance_AcceptInput, CBaseEntity_TakeDamageOld. Текущий CommendBoostPlugin эти API не использует; для полного upstream CSS health нужно отдельно обновить gamedata signatures.

Summary by CodeRabbit

  • Chores
    • Updated the bundled CS2 SDK dependency to a newer upstream revision.
    • Switched the source tracking for that dependency to a different upstream branch and repository.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Updated the hl2sdk-cs2 submodule configuration in .gitmodules to point to a new repository URL and branch, and bumped the pinned submodule commit hash to reflect the new source.

Changes

Submodule source and commit update

Layer / File(s) Summary
Submodule config and commit pointer update
.gitmodules, libraries/hl2sdk-cs2
The hl2sdk-cs2 submodule URL and branch are changed to a new fork/branch, and the pinned commit hash is updated to match the new source.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: pinning the CS2 hl2sdk revision to support a native rebuild.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/cs2-2000872-hl2sdk-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78bdd12294

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gitmodules
Comment on lines +3 to +4
url = https://github.com/tomastaker/hl2sdk
branch = codex/cs2-2000872-metamod-css-fix

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Stop auto-tracking a personal hl2sdk fork

In the roflmuffin/CounterStrikeSharp repo, Dependabot is already configured to update libraries/hl2sdk-cs2 daily and the workflow auto-approves/merges any Dependabot PR whose dependency list contains that submodule (.github/dependabot.yaml:3-11, .github/workflows/pr-auto-approve-dependabot.yaml:20-24). With this URL/branch now pointing at a personal fork, any future update published there can be proposed by Dependabot and merged automatically into the native build; if this is meant to pin one temporary SDK commit, avoid tracking the fork for automated updates or disable the hl2sdk auto-merge until it is back on a trusted upstream.

Useful? React with 👍 / 👎.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
libraries/hl2sdk-cs2 (1)

1-1: 🔒 Security & Privacy | 🔵 Trivial | ⚖️ Poor tradeoff

Avoid pinning libraries/hl2sdk-cs2 to a personal fork. It’s tied to tomastaker/hl2sdk on codex/cs2-2000872-metamod-css-fix; if that fork or branch goes away, git submodule update --init breaks. Move it to an org-owned mirror or upstream the patch when possible.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@libraries/hl2sdk-cs2` at line 1, The hl2sdk-cs2 submodule is pinned to a
personal fork/branch, so update the submodule reference to an org-owned mirror
or upstream source instead of tomastaker/hl2sdk. Adjust the submodule
configuration and any commit reference used by git submodule update --init so
the dependency is no longer tied to that personal branch and remains fetchable
long term.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@libraries/hl2sdk-cs2`:
- Line 1: The hl2sdk-cs2 submodule is pinned to a personal fork/branch, so
update the submodule reference to an org-owned mirror or upstream source instead
of tomastaker/hl2sdk. Adjust the submodule configuration and any commit
reference used by git submodule update --init so the dependency is no longer
tied to that personal branch and remains fetchable long term.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 925b8f1e-c237-44c1-9ff6-0c34ee31b9c3

📥 Commits

Reviewing files that changed from the base of the PR and between a932022 and 78bdd12.

📒 Files selected for processing (2)
  • .gitmodules
  • libraries/hl2sdk-cs2

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.

1 participant