Find CNetworkGameServerBase ServiceQueue

From HLND2T/CS2_VibeSignatures · View interactive version

Find CNetworkGameServerBase ServiceQueue is an AI agent skill from the GitHub repository HLND2T/CS2_VibeSignatures. 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 on

How to use this skill

Skill file

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.

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_ServiceQueue

ServiceQueue 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

  1. Use SKILL /get-func-from-yaml with func_name=CNetworkGameServerBase_SpawnGroupThink to obtain its

func_va. If it errors, STOP and report to user — this fallback cannot run without the predecessor.

  1. Decompile it (mcp__ida-pro-mcp__decompile at that address).
  2. Find the final tail call: a jmp sub_XXXX in the disassembly, or return sub_XXXX(a1, v4); in the

pseudocode, that forwards the server object and the spawn-group queue pointer unchanged. That target is

CNetworkGameServerBase_ServiceQueue.

Step 2. Confirm the candidate

Decompile the tail-call target and confirm it matches the ServiceQueue shape:

stored deadline of now + 0.005);

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

  1. Use SKILL /generate-signature-for-function with the resolved function address. The signature must be

generated from the current function body and pass its uniqueness checks.

  1. Use SKILL /write-func-as-yaml with:

Write one output per input platform:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.