function_across_versions
Find a Diablo II function’s counterpart address across game versions by providing its address, export ordinal, Ghidra name, or source symbol; get confidence and supporting evidence.
Instructions
Find one function of Blizzard's binaries in other game versions: give it in one version, get its
counterpart's address in each other indexed version, with a confidence and the evidence.
function: an address ('6fd5da40' or '0x6fd5da40'; an address inside a function means that function), an
export ordinal as '#10916' (needs binary=), Ghidra's name for it (e.g. 'FUN_6fd5da40'), or a name from the
D2MOO (1.10f) or Redivivus (1.14d) source clones (e.g. 'STATLIST_GetUnitStatUnsigned').
version: the version it's given in, e.g. '1.10', '1.13c', '1.14d'. binary: optional, e.g. 'D2Common.dll' or
'D2Common'; 1.14b and 1.14d have every DLL merged into Game.exe. to_versions: which versions to look in
(default all indexed ones).
Confidence: exact (same export ordinal, only where the DLL's ordinals are checked stable between the two
versions), strong (strings or constants found in only this function in each version, or identical code
once addresses are taken out), weak (call structure only: verify before relying on it). Many functions get
no match: the matcher refuses to guess. Needs the index built from your own Ghidra output
(python -m d2mcp.internals build); the first lookup between two versions takes a few seconds.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"function": "<function>",
"version": "<version>"
},
"name": "function_across_versions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| binary | No | ||
| version | Yes | ||
| function | Yes | ||
| to_versions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |