Logo de Find CSource2Server Shutdown Decompiles

Find CSource2Server Shutdown Decompiles

Organização
HLND2T
find-CSource2Server_Shutdown-decompiles

Final-guarantee fallback for the find-CSource2Server_Shutdown-decompiles preprocessor. Recovers the three teardown functions that CSource2Server::Shutdown calls directly — CGameEventManager_Shutdown, CLoopModeRegistry_UnregisterLoopModes, and CEngineServiceRegistry_UnregisterEngineServices — by decompiling CSource2Server_Shutdown in CS2 server.dll / libserver.so and reading its direct call targets. Use this skill only when the deterministic/LLM preprocessor (ida_preprocessor_scripts/find-CSource2Server_Shutdown-decompiles.py) could not resolve every target — for example when a previous-version func_sig no longer matches and the LLM_DECOMPILE step returns an empty result. Trigger: CGameEventManager_Shutdown, CLoopModeRegistry_UnregisterLoopModes, CEngineServiceRegistry_UnregisterEngineServices

Visão geral

Publicado porHLND2T
RepositórioCS2_VibeSignatures
Nome da habilidadefind-CSource2Server_Shutdown-decompiles
Estrelas
67
Forks
11
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Completa em si mesma

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por HLND2T no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Find CSource2Server Shutdown Decompiles no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/HLND2T/CS2_VibeSignatures/tree/main/.claude/skills/find-CSource2Server_Shutdown-decompiles
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HLND2T/CS2_VibeSignatures.git /tmp/CS2_VibeSignatures
mkdir -p .claude/skills
cp -r /tmp/CS2_VibeSignatures/.claude/skills/find-CSource2Server_Shutdown-decompiles .claude/skills/find-CSource2Server_Shutdown-decompiles
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Find CSource2Server Shutdown Decompiles em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Find CSource2Server Shutdown Decompiles automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Find CSource2Server Shutdown Decompiles não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Find CSource2Server_Shutdown-decompiles (final-guarantee fallback)

Recover the three functions that CSource2Server::Shutdown calls directly, in CS2 server.dll / libserver.so, using IDA Pro MCP tools. This is the Agent fallback for the find-CSource2Server_Shutdown-decompiles preprocessor: it runs only when the preprocessor script returned failure. It reproduces the LLM_DECOMPILE step by hand — the three targets are ordinary direct calls made from one well-known caller, so no cross-version name mapping is actually required: the caller's call graph names them.

Every output is a concrete function (a func_sig), not a vcall. There is no vtable involved.

Realworld Function References

Read the platform-relevant reference YAML before searching in IDA. It provides the concrete disassembly of CSource2Server_Shutdown including the annotated call sites. Treat its addresses and offsets as reference-build values only; verify every result against the current binary.

  • Windows: ida_preprocessor_scripts/references/server/CSource2Server_Shutdown.windows.yaml
  • Linux: ida_preprocessor_scripts/references/server/CSource2Server_Shutdown.linux.yaml

Background — where the three teardown calls sit

CSource2Server_Shutdown is a short teardown routine. Its body is, in order:

  1. shut down the game-event manager (CGameEventManager_Shutdown, passing the gameeventmanager global);
  2. run a fixed sequence of four indirect calls through the same global object, each fetched as vtable slot [reg+50h] and each fed one freshly built argument (sub_* producers) — these are not our targets;
  3. a contiguous run of four direct calls: the first two are our targets (CLoopModeRegistry_UnregisterLoopModes, then CEngineServiceRegistry_UnregisterEngineServices), followed by ReleaseParticleEffects and ReleaseCSBotManager which are not targets;
  4. return through a tail jmp.

So the two requested functions in that run are its first two entries, sitting right after the four [reg+50h] indirect dispatches and right before ReleaseParticleEffects / ReleaseCSBotManager. That position — not the raw address — is the anchor, and it survives decompiler renames and address shifts across updates.

Windows reference calls (platform refs, do not copy):

.text:0000000180CE832E   call    CLoopModeRegistry_UnregisterLoopModes
.text:0000000180CE8333   call    CEngineServiceRegistry_UnregisterEngineServices
.text:0000000180CE8338   call    ReleaseParticleEffects
.text:0000000180CE833D   call    ReleaseCSBotManager

CGameEventManager_Shutdown is the first meaningful call in the routine, ahead of the four indirect dispatches, and is the only one taking the gameeventmanager global:

.text:0000000180CE82A6   mov     rcx, cs:gameeventmanager
.text:0000000180CE82AD   call    CGameEventManager_Shutdown

Output inventory

All three outputs are regular functions; none is a struct member, vtable vfunc, indirect vcall, or global variable. The preprocessor's GENERATE_YAML_DESIRED_FIELDS confirms this: each target lists only func_name/func_sig/func_va/func_rva/func_size and no vtable_name/vfunc_*.

The preview VAs below are from the 14188 build (verified on both platforms) — treat them as reference-build values and re-verify against the current binary; do not copy them.

#Output symbolKindWindowsLinuxWriter skill
1CGameEventManager_Shutdownregular function0x180C23D000x171B380/write-func-as-yaml
2CLoopModeRegistry_UnregisterLoopModesregular function0x1813701500x21C1A40/write-func-as-yaml
3CEngineServiceRegistry_UnregisterEngineServicesregular function0x1813700800x21C1B30/write-func-as-yaml

Platform gating: all three are produced on both platforms (expected_output uses {platform} with no _windows/_linux split in configs/<GAMEVER>.yaml).

Step 0. Skip targets already produced

Some outputs may already exist beside the binary (written by the preprocessor before it failed). For each output, if <name>.<platform>.yaml already exists next to the binary and parses to a non-empty mapping, skip it and spend effort only on the missing ones.

mcp__ida-pro-mcp__py_eval code="import idaapi, os; d=os.path.dirname(idaapi.get_input_file_path()); print('\n'.join(sorted(f for f in os.listdir(d) if f.endswith('.yaml'))))"

/get-func-from-yaml also reports existence for functions (returns an error when absent).

Step 1. Load and decompile the predecessor

ALWAYS Use SKILL /get-func-from-yaml with func_name=CSource2Server_Shutdown to obtain its func_va.

If the skill returns an error, STOP and report to user (this fallback cannot run without the predecessor).

Decompile it and read its direct calls:

mcp__ida-pro-mcp__decompile addr="<CSource2Server_Shutdown.func_va>"

Do not rely on the reference addresses. Identify each target by the semantic position described in Background above.

Step 2. Resolve the three direct calls

Locate each instruction and confirm it is a direct call (or a tail jmp — treat the same way).

2a. CGameEventManager_Shutdown

The first meaningful call in the routine. It is preceded by a load of the gameeventmanager global into the argument register (rcx on Windows, rdi on Linux):

c
CGameEventManager_Shutdown(&s_GameEventManager);

If the operand still reads sub_XXXXXXXX, that first call — the one fed by the gameeventmanager global and made before the four [reg+50h] indirect dispatches — is this function. Rename it with mcp__ida-pro-mcp__rename before generating the signature.

2b. CLoopModeRegistry_UnregisterLoopModes

The first call of the contiguous direct-call run described in Background (the run sitting between the four [reg+50h] indirect dispatches and the ReleaseParticleEffects / ReleaseCSBotManager pair).

2c. CEngineServiceRegistry_UnregisterEngineServices

The second call of that same run, immediately after CLoopModeRegistry_UnregisterLoopModes and immediately before ReleaseParticleEffects. Keep the order: CLoopModeRegistry_UnregisterLoopModes comes first, CEngineServiceRegistry_UnregisterEngineServices second.

Confirm all three are direct calls from CSource2Server_Shutdown, not references that merely appear in a reference block or comment. If the operand is a j_XXXX thunk, report the real function name XXXX (strip the j_ prefix).

Step 3. Generate signatures and write the YAMLs

For each of the three resolved functions:

  1. ALWAYS Use SKILL /generate-signature-for-function with addr=<func_addr> to obtain func_sig.
  2. ALWAYS Use SKILL /write-func-as-yaml with:
    • func_name: the resolved symbol (e.g. CLoopModeRegistry_UnregisterLoopModes)
    • func_addr: the resolved address
    • func_sig: the validated signature from step 1

CGameEventManager_Shutdown is a tiny tail-call-style stub, so its signature may need to extend past the end of the function into the next one. When /generate-signature-for-function cannot produce a unique signature inside the function, allow the signature to cross the function boundary (func_sig_allow_across_function_boundary: true) — this is the platform reference value and is expected.

Write each output beside the binary with the writer skill; do not hand-edit the YAML.

Failure handling

  • If the predecessor CSource2Server_Shutdown YAML is missing → STOP and report to user.
  • If a target cannot be located by position even after reading the full decompilation → resolve the ones you can, then STOP and report exactly which output(s) could not be found, so the user can extend the references. Do not guess a sub_* by proximity.
  • Never emit a symbol you did not confirm as a direct call from CSource2Server_Shutdown.

Output YAML filenames

Written beside the binary by the writer skill, one file per symbol:

  • Windows (server.dll): <symbol>.windows.yaml
  • Linux (libserver.so): <symbol>.linux.yaml

e.g. CGameEventManager_Shutdown.windows.yaml, CLoopModeRegistry_UnregisterLoopModes.windows.yaml, CEngineServiceRegistry_UnregisterEngineServices.linux.yaml.

Why this is robust

  • All three targets are direct calls from a single, stable caller (CSource2Server_Shutdown), so no cross-version name mapping or vtable slot is involved.
  • Each target is anchored to its position in the caller (the first call, and the first/second of the contiguous post-dispatch run), which is stable even when addresses, offsets, and decompiler names change across updates.
  • The anchor degrades gracefully when the callers' callees are unresolved sub_*: the semantic position and the neighboring ReleaseParticleEffects / ReleaseCSBotManager calls still identify the run.

Perguntas frequentes

O que a habilidade de IA Find CSource2Server Shutdown Decompiles faz?

Final-guarantee fallback for the find-CSource2Server_Shutdown-decompiles preprocessor. Recovers the three teardown functions that CSource2Server::Shutdown calls directly — CGameEventManager_Shutdown, CLoopModeRegistry_UnregisterLoopModes, and CEngineServiceRegistry_UnregisterEngineServices — by decompiling CSource2Server_Shutdown in CS2 server.dll / libserver.so and reading its direct call targets. Use this skill only when the deterministic/LLM preprocessor (ida_preprocessor_scripts/find-CSource2Server_Shutdown-decompiles.py) could not resolve every target — for example when a previous-vers...

Por que usar Find CSource2Server Shutdown Decompiles no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Find CSource2Server Shutdown Decompiles é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Find CSource2Server Shutdown Decompiles no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/HLND2T/CS2_VibeSignatures/tree/main/.claude/skills/find-CSource2Server_Shutdown-decompiles. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Find CSource2Server Shutdown Decompiles?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Find CSource2Server Shutdown Decompiles?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Find CSource2Server Shutdown Decompiles com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Find CSource2Server Shutdown Decompiles é gratuita?

Sim. A habilidade é publicada no GitHub por HLND2T sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇