跳到正文
cccskills
免费在 GitHub 公开

find-CCSBotManager_AddBot_BotNavIgnore

Find and patch the g_pNavMesh null-check inside CCSBotManager_AddBot in CS2 binary using IDA Pro MCP. This patch removes the navigation mesh requirement so bots can be added even without a nav mesh loaded. Use this skill when reverse engineering CS2 server.dll or libserver.so to locate and patch the nav mesh check in AddBot. Trigger: bot nav ignore, AddBot nav mesh patch, bot without nav, CCSBotManager nav ignore

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

CCSBotManager_AddBot_BotNavIgnore Patch Workflow

Overview

Locate the g_pNavMesh null-check at the beginning of CCSBotManager_AddBot and generate a patch that converts the conditional jz (jump-if-zero) into an unconditional jmp past the early-return, so bots can be added even when no navigation mesh is loaded.

The target code pattern in pseudocode:

if ( !g_pNavMesh || !*(_BYTE *)(g_pNavMesh + 264) )   // <-- patch target: skip this check
    return 0;

In assembly, the first branch of this check is:

mov     rax, cs:g_pNavMesh
...
test    rax, rax
jz      loc_XXXXXXXX         ; <-- patch this: jz -> jmp to loc after the nav check

The jz is a near conditional jump (0F 84 rel32 — 6 bytes). Patching it to jmp rel32 (E9 <new_rel32> 90 — 5 bytes + 1 NOP) makes it always jump past both the null-pointer check and the g_pNavMesh + 264 byte check, landing at the code that continues bot creation.

The jump target should be the loc_ label that is reached after both nav mesh checks pass (the code right after the second jz that also targets the same early-return).

Prerequisites

  • CCSBotManager_AddBot must already be identified. Use SKILL /get-func-from-yaml with func_name=CCSBotManager_AddBot to load its address. If YAML does not exist, run SKILL /find-CCSBotManager_AddBot-AND-g_pCSBotManager-AND-g_pNavMesh first.

Location Steps

1. Get CCSBotManager_AddBot Function Address

ALWAYS Use SKILL /get-func-from-yaml with func_name=CCSBotManager_AddBot.

If the skill returns an error, stop and report to user.

2. Decompile and Locate the Nav Mesh Check

Decompile the function:

mcp__ida-pro-mcp__decompile(addr="<func_va>")

In the decompiled output, search for the nav mesh check pattern at the very beginning of the function body. The key indicators are:

  • if ( !g_pNavMesh || !*(_BYTE *)(g_pNavMesh + 264) ) or equivalent
  • Immediately followed by return 0;

Note the address annotation on the if-statement line.

3. Disassemble the Function Prologue

Disassemble the first ~30 instructions of the function to find the exact test rax, rax + jz pair:

mcp__ida-pro-mcp__disasm(addr="<func_va>", max_instructions=30)

Look for this assembly pattern:

mov     rax, cs:g_pNavMesh
...
test    rax, rax
jz      loc_XXXXXXXX         ; early return if g_pNavMesh == NULL
cmp     byte ptr [rax+108h], 0
jz      loc_XXXXXXXX         ; early return if nav mesh not loaded

Record:

  • patch_va: Address of the first jz instruction (the test rax, rax / jz pair)
  • jump_target: The address of the code right AFTER the second jz — this is where execution continues when both checks pass. This is the label we want to jump to unconditionally.

4. Determine Patch Bytes

Read the original bytes of the jz instruction:

mcp__ida-pro-mcp__get_bytes(regions={"addr": "<patch_va>", "size": 6})

The jz is a near conditional jump: 0F 84 rel32 (6 bytes).

Compute the new unconditional jump to the target (the code after both nav checks):

  • new_rel32 = jump_target - (patch_va + 5)
  • patch_bytes = E9 <new_rel32_le> 90

Where <new_rel32_le> is the 4-byte little-endian encoding of new_rel32.

5. Generate Patch Signature

ALWAYS Use SKILL /generate-signature-for-patch to generate and validate the signature.

Required context for the skill:

  • func_name: CCSBotManager_AddBot
  • func_va: From step 1
  • patch_va: Address of the jz instruction from step 3
  • original_instruction: e.g., jz loc_1802A1485
  • patched_instruction: e.g., jmp loc_1802A104F + nop
  • description: Remove g_pNavMesh null-check in CCSBotManager_AddBot - patch conditional jz to unconditional jmp to skip nav mesh validation

6. Write YAML Output

ALWAYS Use SKILL /write-patch-as-yaml to persist the results.

Required parameters:

  • patch_name: CCSBotManager_AddBot_BotNavIgnore
  • patch_sig: The validated signature from step 5
  • patch_bytes: The computed patch bytes from step 4
  • patch_sig_disp: From step 5 result (omit if 0)

Output YAML Files

  • CCSBotManager_AddBot_BotNavIgnore.windows.yaml
  • CCSBotManager_AddBot_BotNavIgnore.linux.yaml

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Clean up the local workspace after a dev branch has been merged into main. Verifies the current dev branch is fully merged into origin/main, then switches to main, pulls the latest, deletes the local dev branch, and deletes the remote dev branch if it still exists. STOPS and warns the user if the current branch is not yet merged. Triggers: cleanup workspace, cleanup branch, delete merged branch, finish dev branch, post-merge cleanup

中文简介正在准备中。当前显示原文说明。

mrc4tt/CS2_VibeSignatures32026年10月20日 更新

Convert an existing find-XXXX SKILL.md into a preprocessor Python script, updating configs/<GAMEVER>.yaml and removing the old SKILL.md. Covers xref-string-based and LLM_DECOMPILE-based discovery patterns.

中文简介正在准备中。当前显示原文说明。

mrc4tt/CS2_VibeSignatures32026年10月20日 更新

Create an Agent SKILL.md fallback for an existing find-XXXX finder that relies on a fragile discovery foundation — above all LLM_DECOMPILE (patterns C/D/E), which matches the decompiled shape of a predecessor function against a stored reference and breaks when a symbol is inlined or de-inlined in a way the reference does not cover. The generated fallback coexists with the preprocessor and runs only when it returns failure, recovering every target robustly by decompiling the predecessor and following the inline/de-inline boundary with semantic anchors. Use when a finder broke on a game update, or you want to durably backstop one before it does. The recipe generalizes to any finder foundation. Triggers: create agent skill fallback, add SKILL.md fallback, robust fallback for finder, backstop LLM_DECOMPILE finder, final guarantee skill

中文简介正在准备中。当前显示原文说明。

mrc4tt/CS2_VibeSignatures32026年10月20日 更新

Create a new cpp_tests entry for validating a C++ interface vtable layout against binary reference YAMLs. Creates the .cpp test file in cpp_tests/ and appends a configs/<GAMEVER>.yaml entry under cpp_tests:. Use when a user asks to add vtable layout validation for a new hl2sdk_cs2 interface class.

中文简介正在准备中。当前显示原文说明。

mrc4tt/CS2_VibeSignatures32026年10月20日 更新

create-pr

免费

Create a GitHub pull request from staged task changes or an already-committed current branch. Deliver source/config/ reference changes together with their computed source-owned `bin_artifacts` closure. PR validation routing is owned by the default-branch trusted workflow; snapshots, gamedata, and manifests are Release-derived only.

中文简介正在准备中。当前显示原文说明。

mrc4tt/CS2_VibeSignatures32026年10月20日 更新

Create a new find-XXXX preprocessor Python script from scratch (no existing SKILL.md), add configs/<GAMEVER>.yaml skill and symbol entries. Covers xref-string-based and LLM_DECOMPILE-based discovery patterns. Use when a GitHub issue or user instruction specifies a new function to find.

中文简介正在准备中。当前显示原文说明。

mrc4tt/CS2_VibeSignatures32026年10月20日 更新

查看 mrc4tt 的全部技能

报告此技能的问题