find-CBaseEntity_GetChangeAccessorPathInfo_1
Skill67 starsChanged 58 days agoMITView on GitHub
Find and identify the CBaseEntity_GetChangeAccessorPathInfo_1 virtual function in CS2 binary using IDA Pro MCP. Use this skill when reverse engineering CS2 server.dll or libserver.so to locate the second GetChangeAccessorPathInfo override by scanning CBaseEntity vtable slots near the known CBaseEntity_GetChangeAccessorPathInfo_2 slot for an implementation identical to CBaseEntity_GetChangeAccessorPathInfo_2. Trigger: CBaseEntity_GetChangeAccessorPathInfo_1
In this repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- cleanup-workspaceSkill
- convert-finder-skill-to-preprocessor-scriptsSkill
- create-agent-skill-fallbackSkill
- create-cpp-testsSkill
- create-preprocessor-scriptsSkill
- create-prSkill
- dump-vtablesSkill
- find-CCSBotManager_AddBot_BotNavIgnoreSkill
- find-CCSGameRules__sm_mapGcBanInformationSkill
- find-CCSPlayer_MovementServices_CheckJumpButton_WaterPatchSkill
- find-CCSPlayer_MovementServices_FullWalkMove_SpeedClampSkill
- find-CEntitySystem_Init-decompilesSkill
- find-CEntitySystem_m_entityNamesSkill
- find-CNetworkGameServerBase_CheckTimeouts-decompilesSkill
- find-CNetworkGameServerBase_CreateFakeClientSkill
- find-CNetworkGameServerBase_GetChallengeTypeSkill
- find-CNetworkGameServer_GetFreeClientSkill
- find-CNetworkMessages_dtorSkill
- find-CNetworkMessages_GetIsForServerSkill
- find-CNetworkMessages_GetNetworkSerializationContextDataSkill
- find-CNetworkMessages_vtable-decompilesSkill
- find-CServerSideClientBase_GetUserIDStringSkill
- find-CSource2Server_Shutdown-decompilesSkill
- find-CSteam3ServerS1_InitGameServer-decompilesSkill
- find-INetworkServerService_GetServerSerializersCRCSkill
- find-INetworkServerService_IsActiveInGameSkill
- find-INetworkServerService_IsServerRunningSkill
- find-IVEngineServer2_GetClientSteamIDSkill
- find-OnServerVoiceData_IsPlayingDemo_CalleeSkill
- fix-cppheadersSkill
- generate-reference-yamlSkill
- generate-signature-for-functionSkill
- generate-signature-for-globalvarSkill
- generate-signature-for-patchSkill
- generate-signature-for-structoffsetSkill
- generate-signature-for-vfuncoffsetSkill
- get-func-from-yamlSkill
- get-vtable-addressSkill
- get-vtable-from-yamlSkill
- get-vtable-indexSkill
- init-gamebinSkill
- rename-preprocessor-scriptsSkill
- resolve-pr-conflictSkill
- run-validation-until-no-failureSkill
- run-vcall-finderSkill
- trigger-release-buildSkill
- write-func-as-yamlSkill
- write-globalvar-as-yamlSkill
- write-patch-as-yamlSkill
- write-structoffset-as-yamlSkill
- write-vfunc-as-yamlSkill
- write-vtable-as-yamlSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
ALWAYS: Use SKILL /get-func-from-yaml with func_name=CBaseEntity_GetChangeAccessorPathInfo_2.
- Distinctive: line 32
If the skill returns an error, STOP and report to user.
- Very specific: line 66
If vtable_entries[i] == CBaseEntity_GetChangeAccessorPathInfo_2.func_va, this slot is folded onto the same implementation and is an …
- Distinctive: line 71
If no candidate address matched directly, decompile the reference function and every remaining candidate:
- Very specific: line 116
Read/write the exact same member offset as the reference (a1 + 64)
- Distinctive: line 126
If zero or more than one candidate match, STOP and report to user.
- Very specific: line 130
ALWAYS: Use SKILL /write-vfunc-as-yaml to write the analysis results.
- Distinctive: line 155
Prefer an identical-address (ICF-folded) match.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Find CBaseEntity_GetChangeAccessorPathInfo_1
Locate CBaseEntity_GetChangeAccessorPathInfo_1 vfunc in CS2 server.dll or libserver.so using IDA Pro MCP tools.
Background
CBaseEntity overrides two separate CEntityInstance interface methods, GetChangeAccessorPathInfo_1 and
GetChangeAccessorPathInfo_2, with byte-for-byte identical implementations (both simply forward to the same
internal lazy-init helper at the same member offset). Because the source bodies are identical, the compiler may
fold both vtable slots onto the exact same function address, or it may still emit two separate but structurally
identical functions. CBaseEntity_GetChangeAccessorPathInfo_2 is already resolved (it inherits its vtable slot
from CEntityInstance_GetChangeAccessorPathInfo_2); CBaseEntity_GetChangeAccessorPathInfo_1 occupies a
different slot within +/-2 entries of it in the same CBaseEntity vtable.
Method
1. Load CBaseEntity_GetChangeAccessorPathInfo_2 from YAML
ALWAYS Use SKILL /get-func-from-yaml with func_name=CBaseEntity_GetChangeAccessorPathInfo_2.
If the skill returns an error, STOP and report to user.
Otherwise, extract:
func_va(the reference implementation address)vfunc_indexvfunc_offsetvtable_name(should beCBaseEntity)
2. Load CBaseEntity VTable from YAML
ALWAYS Use SKILL /get-vtable-from-yaml with class_name=CBaseEntity.
If the skill returns an error, STOP and report to user.
Otherwise, extract:
vtable_numvfuncvtable_entries
3. Enumerate Candidate Slots
Compute the scan window around the known slot:
window_start = max(0, CBaseEntity_GetChangeAccessorPathInfo_2.vfunc_index - 2)window_end = min(vtable_numvfunc - 1, CBaseEntity_GetChangeAccessorPathInfo_2.vfunc_index + 2)
For every index i in [window_start, window_end] except CBaseEntity_GetChangeAccessorPathInfo_2.vfunc_index
itself, read the candidate function address vtable_entries[i].
4. Check for Identical-Address Folding First
Compilers (MSVC /OPT:ICF, GCC/Clang identical code folding) commonly merge functions with byte-identical bodies
into a single implementation, so multiple vtable slots end up pointing at the same address.
For each candidate index i:
- If
vtable_entries[i] == CBaseEntity_GetChangeAccessorPathInfo_2.func_va, this slot is folded onto the same implementation and is an immediate match. Recordiastarget_vfunc_indexand stop scanning further.
5. Otherwise, Decompile and Compare Candidates
If no candidate address matched directly, decompile the reference function and every remaining candidate:
mcp__ida-pro-mcp__decompile addr="<CBaseEntity_GetChangeAccessorPathInfo_2_func_va>"
mcp__ida-pro-mcp__decompile addr="<candidate_func_addr>"Windows (server.dll)
The reference implementation is a one-line forwarder:
__int64 __fastcall CBaseEntity_GetChangeAccessorPathInfo_2(__int64 a1)
{
return sub_180184630(a1 + 56);
}A matching candidate must be structurally identical:
- Takes a single
(__int64 a1)argument (this only) - Directly tail-calls the exact same helper address as the reference (e.g.
sub_180184630) - Passes the exact same constant offset argument (
a1 + 56) - Returns the helper's result unchanged
Linux (libserver.so)
The reference implementation is a lazy-init pattern:
__int64 __fastcall CBaseEntity_GetChangeAccessorPathInfo_2(__int64 a1)
{
__int64 result;
...
result = *(_QWORD *)(a1 + 64);
if ( !result )
{
result = operator new(384);
...
*(_QWORD *)(a1 + 64) = result;
}
return result;
}A matching candidate must:
- Read/write the exact same member offset as the reference (
a1 + 64) - Allocate the exact same size via
operator new(384) - Initialize the same set of fixed fields at the same relative offsets (
+56,+24,+40,+48,+96..+352, etc.) - Return the same lazily-initialized pointer
6. Confirm the Match
Among the scanned candidates (excluding the known _2 slot), exactly one should match either by identical address
(Step 4) or by identical decompiled structure (Step 5). That candidate is CBaseEntity_GetChangeAccessorPathInfo_1.
If zero or more than one candidate match, STOP and report to user.
7. Write IDA Analysis Output as YAML
ALWAYS Use SKILL /write-vfunc-as-yaml to write the analysis results.
Required parameters:
func_name:CBaseEntity_GetChangeAccessorPathInfo_1func_addr:<matched_func_addr>func_sig:Nonevfunc_sig:None
VTable parameters:
vtable_name:CBaseEntityvfunc_offset:<target_vfunc_index * 8>in hexvfunc_index:<target_vfunc_index>
Function Characteristics
- Purpose: Lazily creates/returns the change-accessor path-info object for this entity; implementation is
identical to
CBaseEntity_GetChangeAccessorPathInfo_2, distinguished only by its vtable slot - Binary:
server.dll/libserver.so - Parameters:
(this)only - Return value: Pointer to the lazily-allocated path accessor object stored at a fixed member offset
Discovery Strategy
- Reuse the existing
CBaseEntity_GetChangeAccessorPathInfo_2YAML to obtain the reference address and known slot - Reuse the existing
CBaseEntity_vtableYAML to scan the +/-2 neighboring slots - Prefer an identical-address (ICF-folded) match; fall back to structural decompile comparison
- Generate a stable
func_sigfrom the resolved candidate body
This is robust because:
- The two overrides are guaranteed byte-identical in source, so either the compiler folds them to one address or their decompiled structure will be indistinguishable except for the vtable slot
- Scanning a narrow +/-2 window avoids false positives from unrelated vtable entries
- The final YAML stores both the resolved function signature and the precise vtable metadata
Output YAML Format
The output YAML filename depends on the platform:
server.dll->CBaseEntity_GetChangeAccessorPathInfo_1.windows.yamllibserver.so->CBaseEntity_GetChangeAccessorPathInfo_1.linux.yaml
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

