Source for XCE Tools 2.0, an Xbox 360 development-kit memory tool (search, peek/poke, dump, data breakpoints)
that talks to the console through xbdm.dll. This is a decompilation: I recovered it from the released
XCE_Tools2.exe, a C++Builder 6 program that used TMS components, and rewrote it as readable C++Builder source.
| Path | What it is |
|---|---|
Main, Search, Search2, Memory, Allocate, Break (.h/.cpp/.dfm) |
The six forms, with the original positions, captions and event bindings; components have descriptive names (the original's were generic, such as AdvGlowButton1) |
Trainer_Tools2.cpp, Trainer_Tools2.cbproj, Trainer_Tools2.ico |
Program entry point and C++Builder 12 project |
Xbdm.h |
The xbdm.dll functions the tool uses, loaded at run time, plus shared search state |
build_win32port.cmd, win32port/, tools/dfm2cpp.py |
A second build that needs no C++Builder (see below) |
The TMS controls are replaced with stock VCL: TAdvGlowButton → TButton, TAdvProgressBar → TProgressBar.
Open Trainer_Tools2.cbproj and build the Win32 target. The program must be 32-bit because xbdm.dll is.
I have not built this project in a real C++Builder, so expect small fixes. One known candidate: C++Builder 12 may
want const TRect &Rect in the TStringGrid OnDrawCell handlers.
build_win32port.cmd builds the same, unchanged form units against a small VCL subset in win32port/
(minivcl.h/minivcl.cpp) written on plain Win32. tools/dfm2cpp.py turns each .dfm into C++ that creates the
form's components, so the .dfm files stay the single source for the layout.
Needs:
- Python 3 (
py) - Visual Studio 2022 or later, or the Build Tools, with the x86 C++ tools and a Windows 10/11 SDK
- LLVM (
clang-cl) is used if it is installed; otherwise MSVCclis used
build_win32port.cmd
Output: win32port\build\XCE_Tools2.exe. The mini-VCL draws TButton like the original's TMS TAdvGlowButton
(GDI+ glow gradient, hover and pressed colours) and TProgressBar like its TAdvProgressBar (lime bar with the
percentage on it), so the port looks like the original. The C++Builder source still uses stock VCL. The port has no
DPI scaling.
Put the 32-bit xbdm.dll from the Xbox 360 SDK next to the exe or on PATH, and set a default console with the
SDK's Neighborhood tools. Without the DLL the tool shows "xbdm.dll not found!!!" and opens with no console access.
- XBOX checkbox (Search 1 and 2): checked means the target is little-endian (original Xbox), so values are not byte-swapped. Unchecked (the default) swaps values to and from the Xbox 360's big-endian order.
- Re-Dump (ticked by default) makes Init dump the range into
S00.binin the working directory; the first pass and "Same as Init" compare against it. Unticked, Init reuses theS00.binalready there. - Search 2 "From Search 1" makes Search 2's Init take Search 1's dump (
S00.bin) and range instead of its own. - Result files are
S00_<pass>.<part>(two decimal digits each), a sequence of records:[type byte 0..4][address dword][value: 1, 2, 4, 4 or 8 bytes], with type 0..4 = 1 byte, 2 bytes, 4 bytes, float, double, and the value in host (PC) order. A part holds up to about 0x1B000000 bytes before the next one is started. - Stop in the main menu stops or resumes the console (
DmStop/DmGo) and toggles its caption.
XCE Tools 2.0 is the work of its original developer. The released XCE_Tools2.exe names no author, so:
Credit to the respective original creator(s).
This project is intended for educational, research, preservation, and development purposes. Users are responsible for complying with applicable laws and respecting intellectual property rights.
If there is a problem, contact us at gamepreservationhq@gmail.com.
GNU Affero General Public License v3.0, see LICENSE.