Versão em português. Every document in docs/ has an English version (.en.md).
Championship Manager: Season 01/02 (Sports Interactive / Eidos, 2001), version 3.9.68, released for free by Eidos and SI. This repository keeps it playable on Windows 11 and prepares the rewrite of the game in Rust, routine by routine, with the interface identical to the original.
| Where | What it is | In git? |
|---|---|---|
JOGAR.bat |
Opens the game at native 1920×1080, in a resizable window, without the CD and without changing the Windows resolution. | yes |
rust/ |
Rust core, compiled as ddraw.dll (our own video layer; entry point for the hooks). The rewritten game routines live in rust/src/motor/, one module per source file of the game; how to read the code: the header of rust/src/motor.rs. The DLLs' shared base is in cm0102-base/. |
yes |
save/ |
Save-only DLL (saves above 2 GB, up to 4 GB), for modified exes (NickPatcher, CLZ): docs/SAVE_2GB.en.md. |
yes |
| CM0102-Rust-Tweaks | The tweaks ddraw.dll for the community (saves above 2 GB, regen ages and regen distribution), in a separate repository, CM0102-Rust/CM0102-Rust-Tweaks (public, with releases); the original regen rule in docs/DISTRIBUICAO_DOS_REGENS.en.md. |
separate |
jogo/ |
Playable installation: the originals cm0102.exe / cm0102_GDI.exe and the patched copies *-portatil.exe. |
no |
original/ |
Untouched downloads (ISO, zips, 3.9.68 patch) and a backup of the two 3.9.68 exes. | no |
referencias/ |
Third-party projects consulted (e.g. nckstwrt's CM0102Patcher). |
no |
engenharia-reversa/ |
Analysis tools (Python) and the generator of the portable exes. | yes |
docs/ |
Technical documentation; credits in CREDITOS.en.md; start with DESCOMPILACAO.md. To continue the rewrite: COMO_CONTINUAR.md. English meaning of the code's names: GLOSSARIO.en.md. Record fields: CAMPOS.en.md. |
yes |
levas/ |
One folder per batch of the rewrite: the code, the integration and the test results. | yes |
CLAUDE.md |
Instructions for continuing the work in Claude Code. | yes |
For English readers. The project started in Portuguese; the code is in English (English headers; the Portuguese of each routine is in docs/ROTINAS.md), but some
folder and document names stay Portuguese: jogo/ = the game install, original/ = the untouched downloads,
referencias/ = third-party references, engenharia-reversa/ = reverse-engineering tools, levas/ = batches.
A batch (leva) is the unit of work: a few routines rewritten in Rust, hooked into the original exe, and tested
together (side-by-side comparison with the original routine, mutation tests, two identical Rust careers) before being
published; levas/N/ keeps each batch's test results. Docs: DESCOMPILACAO = what is known about the binary,
COMO_CONTINUAR = how to continue, PLACAR = scoreboard, CAMPOS = record fields, FORMATOS = file formats,
GLOSSARIO = glossary, CREDITOS = credits; every document has an .en.md English version (the Portuguese one is the
original; this README is the exception: English first, Portuguese in README.pt.md).
State: 347 batches, 4267 routines in Rust, each one compared with the original, directly or through the routine that calls it (the match engine without the screens is 100% in Rust; saves go beyond 2 GB, up to 4 GB); how much is left, module by module: docs/PLACAR.en.md; by file of the whole exe:
docs/PLACAR_ARQUIVOS.en.md (2,093 of the 6,709 functions, 29.6% of the code). Batch 284
is integrated and 2,092 routines are hooked; since 07/11/2026 the rewrite is paused for a reorganization that makes
the code readable for publication (named fields and records, English names and headers, each step proved with the same
career as before): levas/reorganizacao/LEIA.en.md, scoreboard in
docs/LEGIBILIDADE.en.md.
The game files do not go into git: the game is free to download, but the code and the brand still belong to SI and Eidos. This project's own code and documentation are under the MIT license.
- Install the game from
original/CM0102.isoand apply the 3.9.68 patch (original/Championship-Manager-Season-0102_Patch_Win_EN_Patch-v3968/242.exe). Put the installation injogo/. - Generate the portable exes (Python 3 with
pefileandcapstone):And the 1920×1080 version (it also converts the background images; the original pictures are kept incd engenharia-reversa python patch_portatil.py ..\jogo\cm0102.exe ..\jogo\cm0102-portatil.exe python patch_portatil.py ..\jogo\cm0102_GDI.exe ..\jogo\cm0102_GDI-portatil.exejogo\Pictures-800x600):python resolucao.py ..\jogo\cm0102-portatil.exe ..\jogo\cm0102-1080.exe 1920 1080 ..\jogo - Compile the Rust core (target
i686-pc-windows-msvc, already configured inrust/.cargo/config.toml) and copy the DLL to the game:cd rust cargo build --release copy target\i686-pc-windows-msvc\release\ddraw.dll ..\jogo\ - Double-click
JOGAR.bat.
Diagnostics: with set CM_ESPIAO=1 before opening the game, the DLL passes everything through to the Windows DirectDraw and logs each call in jogo\ddraw.log.
What the portable exes fix, and why: docs/DESCOMPILACAO.md, section 3.