find-CNetworkGameServerBase_ServiceQueue
Skill67 starsChanged 58 days agoMITView on GitHub
Final-guarantee fallback for the find-CNetworkGameServerBase_ServiceQueue preprocessor. Recovers CNetworkGameServerBase_ServiceQueue in CS2 engine2.dll / libengine2.so when the LLM_DECOMPILE preprocessor cannot resolve the tail-call target of CNetworkGameServerBase_SpawnGroupThink. Use this skill only after the deterministic preprocessor returns failure. Trigger: CNetworkGameServerBase_ServiceQueue
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-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
5 rules. About 0 are common, 1 is distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 51
If CNetworkGameServerBase_ServiceQueue.<platform>.yaml already exists in the active artifact module directory and parses to a non-empty …
- Very specific: line 56
Use SKILL /get-func-from-yaml with func_name=CNetworkGameServerBase_SpawnGroupThink to obtain its func_va.
- Very specific: line 75
Use SKILL /generate-signature-for-function with the resolved function address.
- Very specific: line 77
Use SKILL /write-func-as-yaml with:
- Distinctive: line 84
Write one output per input platform:
≈ “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_ServiceQueue (final-guarantee fallback)
Recover the concrete CNetworkGameServerBase_ServiceQueue 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_ServiceQueue.py cannot resolve the target.
Realworld Function References
The finder's LLM_DECOMPILE reference is the predecessor CNetworkGameServerBase_SpawnGroupThink, whose
body ends by tail-calling CNetworkGameServerBase_ServiceQueue. Read the platform reference before
searching in IDA; its addresses are reference-build values and must be verified against the current binary.
ida_preprocessor_scripts/references/engine/CNetworkGameServerBase_SpawnGroupThink.windows.yamlida_preprocessor_scripts/references/engine/CNetworkGameServerBase_SpawnGroupThink.linux.yaml
Background — what ServiceQueue is
CNetworkGameServerBase_SpawnGroupThink(this, spawnGroupQueue) ends by tail-calling
CNetworkGameServerBase_ServiceQueue(this, spawnGroupQueue). In the reference build the tail call is the
final jmp sub_XXXX in the function body:
.text:000000000051AA71 jmp sub_51A500 ; CNetworkGameServerBase_ServiceQueueServiceQueue is the routine that actually services the spawn-group queue: it loops with a ~5 ms time step
(<now> + 0.005), walks 16-byte queue entries (shl reg, 4), and decrements the 16-bit pending-group
counter at queue offset +0x16, until the deadline passes or the queue drains. Do not confuse it with its
caller SpawnGroupThink — the target is the callee reached by that tail jump.
The reference artifacts are only orientation values (verify every field against the current binary):
| Platform | Reference func_va | Reference func_rva | Reference size |
| Windows | 0x1800b7990 | 0xb7990 | 0x1fe |
| Linux | 0x51a500 | 0x51a500 | 0x3d8 |
Step 0. Skip an existing output
If CNetworkGameServerBase_ServiceQueue.<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. Load and decompile the predecessor
- Use SKILL
/get-func-from-yamlwithfunc_name=CNetworkGameServerBase_SpawnGroupThinkto obtain itsfunc_va. If it errors, STOP and report to user — this fallback cannot run without the predecessor. - Decompile it (
mcp__ida-pro-mcp__decompileat that address). - Find the final tail call: a
jmp sub_XXXXin the disassembly, orreturn sub_XXXX(a1, v4);in the pseudocode, that forwards the server object and the spawn-group queue pointer unchanged. That target isCNetworkGameServerBase_ServiceQueue.
Step 2. Confirm the candidate
Decompile the tail-call target and confirm it matches the ServiceQueue shape:
- a
while (1)loop gated on a timer read (asub_XXXX()returning the current time, compared against a stored deadline ofnow + 0.005); - 16-byte queue-entry walks (
shl reg, 4) and a decrement of the 16-bit counter at queue offset+0x16.
Reject a candidate that is only a wrapper that does not itself contain the queue-servicing loop.
Step 3. Generate the signature and write YAML
- 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_ServiceQueuefunc_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_ServiceQueue.windows.yamlbesideengine2.dllCNetworkGameServerBase_ServiceQueue.linux.yamlbesidelibengine2.so
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.

