find-CNetworkGameServer_GetFreeClient
Skill67 starsChanged 58 days agoMITView on GitHub
Final-guarantee fallback for CNetworkGameServer_GetFreeClient. Locate the concrete free-client allocator in CS2 engine2.dll / libengine2.so when the ConnectClient decompile preprocessor cannot resolve it. Use only after the deterministic preprocessor returns failure. Trigger: CNetworkGameServer_GetFreeClient
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-CBaseEntity_GetChangeAccessorPathInfo_1Skill
- 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-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
6 rules. About 0 are common, 4 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
If CNetworkGameServer_GetFreeClient.<platform>.yaml already exists as a non-empty mapping in the active artifact module directory, skip …
- Very specific: line 25
Use /get-func-from-yaml with func_name=CNetworkGameServerBase_ConnectClient to obtain the current func_va.
- Distinctive: line 46
Search the exact error text (including format-string variants), enumerate xrefs, and decompile each referencing function if necessary.
- Distinctive: line 76
Do not guess from the reference addresses.
- Distinctive: line 77
Do not emit a Windows result while analyzing Linux, or vice versa.
- Distinctive: line 78
If the error anchor or allocator semantics cannot be confirmed, stop and report the ambiguity.
≈ “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 CNetworkGameServer_GetFreeClient (Agent fallback)
Locate CNetworkGameServer_GetFreeClient in the current CS2 engine2.dll or libengine2.so using IDA Pro
MCP tools. The fallback must recover the concrete function called by CNetworkGameServerBase_ConnectClient
on its server object; do not infer an address from an old build.
Step 0. Skip an existing output
If CNetworkGameServer_GetFreeClient.<platform>.yaml already exists as a non-empty mapping in the active
artifact module directory, skip that platform. The artifact directory is separate from bin; never derive
the output path from the binary root.
Step 1. Load the ConnectClient predecessor
Use /get-func-from-yaml with func_name=CNetworkGameServerBase_ConnectClient to obtain the current
func_va. If it is unavailable, stop and report that the predecessor is missing.
Decompile that function with IDA Pro MCP. Confirm the first argument is the CNetworkGameServerBase/
CNetworkGameServer server object (rcx on Windows, normally rdi on Linux).
Step 2. Identify the GetFreeClient call
Find the call on the server object's connection path that returns a client pointer immediately before the
server-full rejection. The semantic anchors are the error string or equivalent message containing
NETWORK_DISCONNECT_REJECT_SERVERFULL and Cannot get free client, and the null check on the call result.
The target has the shape:
client = sub_<current>(server, address, 0, steam_id, 0, out_buffer);
if (!client) {
// disconnect with NETWORK_DISCONNECT_REJECT_SERVERFULL
// log: "Cannot get free client"
}Search the exact error text (including format-string variants), enumerate xrefs, and decompile each referencing function if necessary. Follow one caller/callee level when the allocator is outlined. Reject helpers that only log, register a command, or perform unrelated client setup. Confirm that the selected function allocates/selects a free client slot and returns a pointer or null.
Reference values from build 14167 are orientation only and must not be copied without verification:
| Platform | Reference func_va | Reference size |
| Windows | 0x1800af840 | 0x24d |
| Linux | 0x6968d0 | 0x2b8 |
Step 3. Generate and write the artifact
Rename the verified function with IDA MCP, then use /generate-signature-for-function when it can produce a
unique signature. Use /write-func-as-yaml to write the semantic payload to the active artifact module
directory with:
func_name=CNetworkGameServer_GetFreeClient- the verified current
func_addr func_rvarelative to the image base- the current
func_size func_sigonly when the generated signature passes uniqueness validation
The output is CNetworkGameServer_GetFreeClient.windows.yaml beside engine2.dll or
CNetworkGameServer_GetFreeClient.linux.yaml beside libengine2.so in the artifact root. The trusted
analyzer performs final canonical serialization; this skill supplies semantic fields only.
Failure handling
- Do not guess from the reference addresses.
- Do not emit a Windows result while analyzing Linux, or vice versa.
- If the error anchor or allocator semantics cannot be confirmed, stop and report the ambiguity.
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.

