Repository navigation
Releases
v0.1.2: widescreen HUD fix, Direct3D 6 renderer built in
Install: back up the Rayman2.exe in your game folder (GOG release) and copy this one in. Needs the Microsoft Visual C++ 2015-2022 Redistributable, x86. No game data included.
Widescreen HUD fix, Direct3D 6 renderer built in. The prebuilt Rayman2.exe is the default
Windows build; the SDL build is source-only for now.
Game
- Direct3D 6 renderer built in (
USE_GLI_DX6, CMakeR2_GLI_DX6, on): the
decompiledGliDX6vf.dllis linked into the exe.GLI_DllFile=GliDX6inubi.iniuses it
withoutDLL/GliDX6vf.dll; any other renderer is still loaded from theDLLfolder as before.
On Windows 10 and later, native DirectDraw needs theDWM8And16BitMitigationcompatibility
layer to list the driver's 16-bit modes (as with the retail DLL). - Widescreen HUD kept together: at wide modes an icon and its counter (or a panel) now move
to the screen edge as one group, so they keep their 4:3 layout. Before, the hall of doors showed
the lum counter far from its icon, and the level panel's lum icon outside the panel.
Build
- SDL build (CMake
R2_USE_SDL, off; SDL3 from vcpkg): window, events, timers, locks and
input (keyboard, mouse, gamepads) through SDL, the engine loop on the main thread. Windows only
for now: rendering and sound still use the installed drivers. Alt+Tab returns to fullscreen;
the window shows once the display is ready. Regression identical to the Win32 build. - C runtime branches for level data files, ini files and engine memory, beside the Win32
ones (the first step towards Linux). Windows keeps the Win32 API; CMakeR2_C_RUNTIME
(RAYMAN2_C_RUNTIME) takes the C runtime there too. Regression identical either way.
Tools
tools/run.py --ini KEY=VALUEsets a key of the sandbox'subi.ini(repeatable).
SHA-256 Rayman2.exe: ce1c995e297ed707bb6dee412c5b7d49c5dccee8a93f4a218766b2ee2749d302
v0.1.1: bug fixes, faster loading, first prebuilt exe
Install: back up the Rayman2.exe in your game folder (GOG release) and copy this one in. Needs the Microsoft Visual C++ 2015-2022 Redistributable, x86. No game data included.
Bug fixes, faster loading, HUD at the screen edges, own icon. First release with a prebuilt
Rayman2.exe; you still need your own copy of the game.
Game
- Crash at start once a save exists fixed: on the modern C runtime the engine read file
names from the wrong place in directory listings, and the startup cleanup of
Data/SaveGame/HiddenSlotrecursed until the stack overflowed. - Original engine bugs fixed (
RAYMAN2_FIX_BUGS, CMakeR2_FIX_BUGS, on): crashes and
undefined behaviour of the retail engine, gameplay unchanged. Catalogue and evidence in
docs/BUGS.md; fixed so far: #1-#8 (uninitialised reads in the engine loop,
sphere culling, magnets and the loading bar, NULL writes in the AbsoluteAxis AI fields, an
out-of-bounds index on an empty temp path, a read after free at exit, a crash or hang on a
damaged options file). - Faster loading (
RAYMAN2_FAST_LOADING, CMakeR2_FAST_LOADING, on): the loading screen
no longer waits for a synchronised screen flip at every progress step; the bar is refreshed at
most every 100 ms. Level loads take about 0.4 s instead of 0.8-1.4 s; image and bar stay. - Widescreen HUD at the screen edges: health bar and lum/cage counters sit in the screen
corners instead of the corners of the 4:3 band. Menus and the pause screen keep their
centred 4:3 layout. - Window icon: taskbar and title bar show the exe's icon instead of the generic one
(DEVIATIONS 12).
Build
- Own icon and manifest: the modern build no longer needs the GOG exe. An original icon
(generated bytools/make_icon.py) and a manifest with the same DPI awareness as retail
(per monitor) are linked fromRayman2.exe/src/port/Rayman2.rc;local.jsonneeds onlyvc6. - clang-cl builds every file (225 of 225) and runs the regression.
- CMake Debug configuration with
/RTC1; the regression runs clean under it.
SHA-256 Rayman2.exe: e02aebadcf951396abf4a36c77ce04a54c450bf7437c01f357c6d8ecb106dcb5
v0.1.0: modern build, no protection, widescreen
First release: the decompiled engine as a modern 32-bit Windows build, without copy protection,
with DPI awareness and widescreen. Source only; bring your own game.
Build
- CMake build with current MSVC (and clang-cl as a second compiler, not complete yet), 32-bit x86.
Translation units and link order come from upstream'stu.json, so new upstream files build
without edits. - The GOG exe's resources (icons, DPI-aware manifest) are linked into the build; the window is no
longer bitmap-scaled by Windows. tools/build_ref.py: original-toolchain reference build with the fork's defines.
Game
- Copy protection removed at the source (
RAYMAN2_NO_PROTECTION): no CD check, no hidden
import resolver, no code executed from level data, no tamper checks in the scripts; level
relocation tables are read from the first copy inLEVELS0.DAT. DEVIATIONS 2-6. ubi.inifrom the game folder (RAYMAN2_LOCAL_UBIINI) instead of the Windows folder, as
current installs ship it. DEVIATIONS 1.- Widescreen (
RAYMAN2_WIDESCREEN). The ratio is computed from the resolution, nothing to
configure:- 3D view Hor+: a wider screen sees more on the sides, the vertical view stays as at 4:3;
- text, health bar, icons, logos and the loading screen are drawn in a centred 4:3 band;
- HUD, menu cursor and menu objects (3D objects drawn over the screen) keep their 4:3 size and
place; - 4:3 and taller resolutions (5:4) are unchanged.
DEVIATIONS 7-9.
Testing
- Regression harness (
RAYMAN2_REGRESS,tools/regress.py): fixed timing, fixed random seeds and
a scripted input sequence on a level; the engine state is hashed every frame and compared with a
recorded baseline. Runs at any display mode (--mode WxH). tools/run.py: runs the game in a sandbox that never writes into your install; direct level
load, screenshots, timed key presses, display mode.
Known limitations
- Still needs the install's renderer and sound DLLs and runs on Windows only.
- The modern build's floating-point results differ slightly from the 1999 build (one matrix field
in the regression hash, from intermediate rounding); every other hashed field matches. - Widescreen: the windowed/fullscreen switch, window resizing and 21:9 are not tested yet.
Source only. No binaries: a build contains the game's code and your GOG exe's resources. Build it with your own copy (see the README).
Roadmap: docs/ROADMAP.md