find-CNetworkGameServerBase_CreateFakeClient
Skill67 starsChanged 58 days agoMITView on GitHub
Final-guarantee fallback for the find-CNetworkGameServerBase_CreateFakeClient preprocessor. Recovers CNetworkGameServerBase_CreateFakeClient in CS2 engine2.dll / libengine2.so when the string-xref preprocessor cannot resolve the function. Use this skill only after the deterministic preprocessor returns failure. Trigger: CNetworkGameServerBase_CreateFakeClient
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_GetChallengeTypeSkill
- find-CNetworkGameServerBase_ReplyChallenge-decompilesSkill
- find-CNetworkGameServerBase_ServiceQueueSkill
- find-CNetworkGameServer_GetFreeClientSkill
- find-CNetworkMessages_dtorSkill
- find-CNetworkMessages_FindOrCreateNetMessage-14197Skill
- find-CNetworkMessages_GetIsForServerSkill
- find-CNetworkMessages_LookupNetworkSerializationContextDataIdSkill
- 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
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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 41
If CNetworkGameServerBase_CreateFakeClient.<platform>.yaml already exists in the active artifact module directory and parses to a non-empty …
- Very specific: line 46
Search the current binary for the exact string literals 30000 and rate (including command-table or format string variants), then enumerate …
- Very specific: line 51
If the two strings occur in a helper, follow callers and callees one level in each direction until the containing CNetworkGameServerBase …
- Distinctive: line 66
After confirming the candidate:
- Very specific: line 68
Use SKILL /generate-signature-for-function with the resolved function address.
- Very specific: line 70
Use SKILL /write-func-as-yaml with:
- Distinctive: line 77
Write one output per input platform:
- Distinctive: line 84
If no candidate references both semantic anchors, inspect nearby callers/callees and decompiled client creation helpers before stopping.
- Distinctive: line 86
If the candidate cannot be distinguished from an unrelated rate-setting routine, stop and report the ambiguity.
- Distinctive: line 88
Never emit a Windows result while analyzing Linux or vice versa.
≈ “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 CNetworkGameServerBase_CreateFakeClient (final-guarantee fallback)
Recover the concrete CNetworkGameServerBase_CreateFakeClient function in CS2 engine2.dll / libengine2.so
using IDA Pro MCP tools. This is an Agent fallback: it runs only when
ida_preprocessor_scripts/find-CNetworkGameServerBase_CreateFakeClient.py cannot resolve the target.
Realworld Function References
The finder has no dedicated predecessor reference YAML. Use these related references for the class and calling conventions; their addresses and offsets are reference-build values and must be verified against the current binary.
ida_preprocessor_scripts/references/engine/CNetworkGameServerBase_Init.windows.yamlida_preprocessor_scripts/references/engine/CNetworkGameServerBase_Init.linux.yamlida_preprocessor_scripts/references/engine/CNetworkGameServerBase_ConnectClient.windows.yamlida_preprocessor_scripts/references/engine/CNetworkGameServerBase_ConnectClient.linux.yaml
Semantic fingerprint
CNetworkGameServerBase_CreateFakeClient is a member of CNetworkGameServerBase that creates and initializes a
fake network client. The deterministic finder anchors it with both exact string references 30000 and rate.
Those literals identify the rate initialization in the target or in a small helper it calls; do not identify the
function from either literal alone.
The first argument is the server object (rcx on Windows, usually rdi/r12 on Linux). Confirm that the
candidate allocates or initializes a client and that the 30000/rate values belong to that initialization path,
not to an unrelated command or diagnostic routine.
Step 0. Skip an existing output
If CNetworkGameServerBase_CreateFakeClient.<platform>.yaml already exists in the active artifact module
directory and parses to a non-empty mapping, skip that platform. Never derive the artifact path from bin.
Step 1. Locate the target in IDA
- Search the current binary for the exact string literals
30000andrate(including command-table or format string variants), then enumerate their code xrefs. - Decompile each function that references both anchors. Prefer the candidate whose first parameter is the
CNetworkGameServerBaseobject and whose body creates a client, sets its connection/rate state, or calls the client initialization helper. - If the two strings occur in a helper, follow callers and callees one level in each direction until the
containing
CNetworkGameServerBasemember is identified. The helper may be inlined or outlined on either platform, so use the client-construction and rate-initialization semantics rather than a fixed address. - Reject candidates that only register a console command, format a message, or initialize an unrelated rate.
The reference artifacts for build 14167 are only orientation values (verify every field against the current binary):
| Platform | Reference func_va | Reference func_rva | Reference size |
| Windows | 0x1800af840 | 0xaf840 | 0x24d |
| Linux | 0x6968d0 | 0x6968d0 | 0x2b8 |
Step 2. Generate the signature and write YAML
After confirming the candidate:
- Use SKILL
/generate-signature-for-functionwith the resolved function address. The signature must be generated from the current function body and pass its uniqueness checks. - Use SKILL
/write-func-as-yamlwith:func_name=CNetworkGameServerBase_CreateFakeClientfunc_addr=<resolved address>func_rva=<resolved address minus image base>func_size=<current function size>func_sig=<validated signature>
Write one output per input platform:
CNetworkGameServerBase_CreateFakeClient.windows.yamlbesideengine2.dllCNetworkGameServerBase_CreateFakeClient.linux.yamlbesidelibengine2.so
Failure handling
- If no candidate references both semantic anchors, inspect nearby callers/callees and decompiled client creation helpers before stopping.
- If the candidate cannot be distinguished from an unrelated rate-setting routine, stop and report the ambiguity; do not guess from the 14167 values.
- Never emit a Windows result while analyzing Linux or vice versa.
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.

