The zip below is everything needed to build the game from your own disc: the build scripts, the SDK patches, the function hints and the host application. As always, it holds no game code, assets or keys; the build takes those from your own copy of Midnight Club: Los Angeles Complete Edition (USA/Europe, Xbox 360) on your machine.
Both changes are by ZaidNx (#29, #30). Thanks!
PS5: controller rumble works on a DualSense (#28, #29)
What was wrong. A DualSense starts in its advanced vibration mode, where the game's two rumble levels move nothing, so crashes, collisions and nitro never vibrated the pad.
The fix. The pad is now put in compatible mode once it is opened, so it rumbles from the game's levels like a DualShock 4. Nothing to turn on.
PS5: DualSense haptics and adaptive triggers (optional, #30)
Off by default. Add these to /data/mcla/mcla.toml to turn them on:
mcla_pad_haptics = true
mcla_adaptive_triggers = true- Haptics: the pad's actuators play the low end of the game's sound plus its rumble, with extra feel from the car itself: road texture that grows with speed, a thump on each gear change, a knock on crashes and a surge while nitro burns.
- Adaptive triggers: resistance on R2 (throttle) and L2 (brake), short buzzes on wheelspin, hard braking and hits, a buzz near the top of each gear, and slack triggers in menus and the pause menu.
Tuning options (mcla_haptics_*, mcla_trigger_*) are listed in ps5/game/ps5_haptics.h and ps5/game/ps5_triggers.h. The car's speed, gear and nitro come from a new hook in the race HUD (src/vehicle_telemetry.cpp); the memory paths are from LARecomp, with credit.
How far it has been checked
- Rumble fix: tested on a base PS5 (FW 12.02) by ZaidNx and on a PS5 Pro (13.42): rumble on crashes, collisions and nitro, and QUIT still returns to the home screen.
- Haptics and triggers: tested by ZaidNx on a base PS5 in free roam, races, crashes, nitro and the pause menu, and on a PS5 Pro while driving, crashing, using nitro, pausing and quitting. Both consoles refuse the two finer trigger-resistance modes and use the plain one, which the code falls back to by itself.
- PC: built and driven on Windows; the new hook runs there too and reads speed and gear correctly, with nothing else changed.
Getting it
PS5: update (git pull) and run the same ps5/make_ps5.sh command again. The game code is regenerated for the new hook.
PC and Linux: nothing to do unless you want to stay current; the only change there is the hook, which has no visible effect.