find-CNetworkMessages_LookupNetworkSerializationContextDataId
Skill67 starsChanged 58 days agoMITView on GitHub
Find and identify the CNetworkMessages_LookupNetworkSerializationContextDataId virtual function in CS2 binary using IDA Pro MCP. Use this skill when reverse engineering CS2 networksystem.dll or libnetworksystem.so to locate the context-ID lookup vfunc by reusing the known CNetworkMessages_SetNetworkSerializationContextData slot and checking the adjacent CNetworkMessages vtable entry. Trigger: CNetworkMessages_LookupNetworkSerializationContextDataId
In this repository91 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-CBaseEntity_GetChangeAccessorPathInfo_1Skill
- find-CCSBotManager_AddBot_BotNavIgnoreSkill
- find-CCSGameRules__sm_mapGcBanInformationSkill
- find-CCSPlayer_MovementServices_CheckJumpButton_WaterPatchSkill
- find-CCSPlayer_MovementServices_FullWalkMove_SpeedClampSkill
- find-CEngineClient_DumpNetStatsSkill
- find-CEngineClient_FindOrCreateWorldSessionSkill
- find-CEngineClient_GetStatsAppIDSkill
- find-CEngineClient_IsPlayingDemoSkill
- find-CEngineServer_GetAchievementMgrSkill
- find-CEngineServer_GetFrameTimeAmnesty-inlinedSkill
- find-CEngineServer_IsDedicatedServerSkill
- find-CEngineServer_IsLogEnabledSkill
- find-CEngineServer_KickClientSkill
- find-CEngineServer_ServerCommandSkill
- find-CEngineServer_SynchronizeAndBlockUntilLoadedSkill
- find-CEngineServiceMgr_GetAddonCountSkill
- find-CEngineServiceMgr_GetEngineWindowSkill
- find-CEngineServiceMgr_GetEventDispatcherSkill
- find-CEngineServiceMgr_RegisterPrerequisiteSkill
- find-CEntitySystem_Init-decompilesSkill
- find-CEntitySystem_m_EntityList-AND-CEntityIdentity_m_pInstance-AND-CEntityIdentity_m_EHandleSkill
- find-CEntitySystem_m_entityNamesSkill
- find-CGlobalVarsBase_realtime-AND-CGlobalVarsBase_curtimeSkill
- find-CLoopTypeClientServer_RefreshNetworkGameState_AcquireSkill
- find-CLoopTypeClientServer_RefreshNetworkGameState-decompilesSkill
- find-CLoopTypeClientServer_RefreshNetworkGameStateSkill
- find-CNetChan_CanPacketSkill
- find-CNetChan_ProcessMessagesSkill
- find-CNetChan_SendMessages-inlinedSkill
- find-CNetChan_UpdateMessageStatsSkill
- find-CNetworkClientService_m_pGameClientSkill
- find-CNetworkGameServerBase_CheckTimeouts-decompilesSkill
- find-CNetworkGameServerBase_CreateFakeClientSkill
- find-CNetworkGameServerBase_GetChallengeTypeSkill
- find-CNetworkGameServerBase_ReplyChallenge-decompilesSkill
- find-CNetworkGameServerBase_ServiceQueueSkill
- find-CNetworkGameServer_GetFreeClientSkill
- find-CNetworkMessages_dtorSkill
- find-CNetworkMessages_FindOrCreateNetMessage-14197Skill
- find-CNetworkMessages_GetIsForServerSkill
- find-CNetworkMessages_UnserializeMessageInternalSkill
- find-CNetworkMessages_vtable-decompilesSkill
- find-CNetworkStringTableContainer_RemoveAllTablesSkill
- find-CNetworkSystem_RemoveNetChannel-14197Skill
- find-CNetworkSystem_RemoveNetChannelByAddress-14197Skill
- find-CServerSideClientBase_GetUserIDStringSkill
- find-CSource2Server_Shutdown-decompilesSkill
- find-CSteam3ServerS1_InitGameServer-decompilesSkill
- find-GetCSWeaponDataFromKey-inlinedSkill
- find-INetworkGameServer_GetGameServerSteamIDSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
ALWAYS: Use SKILL /get-func-from-yaml with func_name=CNetworkMessages_SetNetworkSerializationContextData.
- Distinctive: line 21
If the skill returns an error, STOP and report to user.
- Very specific: line 102
If all three conditions hold, the candidate is CNetworkMessages_LookupNetworkSerializationContextDataId.
- Very specific: line 106
ALWAYS: Use SKILL /generate-signature-for-function with addr=<candidate_func_addr> to generate a robust and unique func_sig for …
- Very specific: line 108
Use the returned validated func_sig in the next step.
- Very specific: line 112
ALWAYS: Use SKILL /write-vfunc-as-yaml to write the analysis results.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 CNetworkMessages_LookupNetworkSerializationContextDataId
Locate CNetworkMessages_LookupNetworkSerializationContextDataId vfunc in CS2 networksystem.dll or libnetworksystem.so using IDA Pro MCP tools.
Method
1. Load CNetworkMessages_SetNetworkSerializationContextData from YAML
ALWAYS Use SKILL /get-func-from-yaml with func_name=CNetworkMessages_SetNetworkSerializationContextData.
If the skill returns an error, STOP and report to user.
Otherwise, extract:
vfunc_indexvfunc_offset
2. Load CNetworkMessages VTable from YAML
ALWAYS Use SKILL /get-vtable-from-yaml with class_name=CNetworkMessages.
If the skill returns an error, STOP and report to user.
Otherwise, extract:
vtable_numvfuncvtable_entries
3. Resolve the Adjacent Context-ID Lookup Slot
Compute the candidate slot for CNetworkMessages_LookupNetworkSerializationContextDataId:
target_vfunc_index = CNetworkMessages_SetNetworkSerializationContextData.vfunc_index + 1target_vfunc_offset = CNetworkMessages_SetNetworkSerializationContextData.vfunc_offset + 8
Validate that target_vfunc_index < vtable_numvfunc, then read:
candidate_func_addr = CNetworkMessages_vtable[target_vfunc_index]
This adjacent-slot rule is required because LookupNetworkSerializationContextDataId immediately follows
SetNetworkSerializationContextData in the CNetworkMessages vtable for networksystem.dll / libnetworksystem.so.
The following slot, GetNetworkSerializationContextData(uint16, NetworkSerializationMode_t), returns
the stored data pointer. Do not confuse that data getter with this string-to-ID lookup.
4. Decompile the Context-ID Lookup Candidate
Decompile the resolved adjacent entry:
mcp__ida-pro-mcp__decompile addr="<candidate_func_addr>"Confirm the candidate matches the serialization-context ID lookup pattern.
Expected behavior:
- Takes
(this, key_name)arguments - Uses an internal lock around the lookup
- Looks up
key_namefrom the internal symbol table owned byCNetworkMessages - Returns the resolved 16-bit context value, or
0xFFFF/-1when not found
Windows example shape:
__int64 __fastcall CNetworkMessages_LookupNetworkSerializationContextDataId(..., __int64 key_name)
{
AcquireSRWLockExclusive(...);
CUtlSymbolTable::Find(..., key_name);
...
ReleaseSRWLockExclusive(...);
return ...;
}Linux example shape:
__int64 __fastcall CNetworkMessages_LookupNetworkSerializationContextDataId(__int64 thisptr, __int64 key_name)
{
...
sub_176D10(..., thisptr + ..., key_name);
...
return ...;
}The exact helper names and structure offsets may change across game updates. The identification rule is:
- The function is the next vtable entry after
SetNetworkSerializationContextData - It performs a locked lookup from the
CNetworkMessagesserialization-context symbol table - It returns the resolved small integer context value instead of writing data into the object
If all three conditions hold, the candidate is CNetworkMessages_LookupNetworkSerializationContextDataId.
5. Generate Function Signature
ALWAYS Use SKILL /generate-signature-for-function with addr=<candidate_func_addr> to generate a robust and unique func_sig for CNetworkMessages_LookupNetworkSerializationContextDataId.
Use the returned validated func_sig in the next step.
6. Write IDA Analysis Output as YAML
ALWAYS Use SKILL /write-vfunc-as-yaml to write the analysis results.
Required parameters:
func_name:CNetworkMessages_LookupNetworkSerializationContextDataIdfunc_addr:<candidate_func_addr>func_sig: The validated signature from step 5vfunc_sig:None
VTable parameters:
vtable_name:CNetworkMessagesvfunc_offset:<target_vfunc_offset>in hexvfunc_index:<target_vfunc_index>
Function Characteristics
- Purpose: Returns the network serialization context id associated with a key name from the
CNetworkMessagessymbol table - Binary:
networksystem.dll/libnetworksystem.so - Parameters:
(this, key_name) - Return value: A small integer / symbol id for the serialization context, typically
0xFFFFwhen the key is not found
Discovery Strategy
- Reuse the existing
CNetworkMessages_SetNetworkSerializationContextDataYAML to obtain the authoritative slot index - Reuse the existing
CNetworkMessages_vtableYAML to resolve the adjacent vtable entry - Confirm the adjacent candidate is a locked symbol-table lookup getter for serialization-context data
- Generate a stable
func_sigfrom the resolved getter body
This is robust because:
- The vtable adjacency between setter and getter is explicit
- The getter has a distinctive locked symbol-table lookup structure on both Windows and Linux
- The final YAML stores both the function signature and the precise vtable metadata
Output YAML Format
The output YAML filename depends on the platform:
networksystem.dll->CNetworkMessages_LookupNetworkSerializationContextDataId.windows.yamllibnetworksystem.so->CNetworkMessages_LookupNetworkSerializationContextDataId.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.

