Here's the cleaned-up GitBook version:
Fixing "LoadLibrary returned NULL"
Step 1 β Reinstall Your NVIDIA GPU Drivers β Most Common Fix
This is the #1 fix for this error. Even if your drivers appear up to date, a clean reinstall often resolves the issue.
Select your GPU and download the latest Game Ready Driver
Run the installer and choose Custom (Advanced) instead of Express
Check "Perform a clean installation" to remove old driver files that may be causing conflicts
β οΈ In most cases, a fresh driver install is all you need.
Step 2 β Restart Your PC
After installing the GPU driver, restart your PC completely. This is required for the new driver to take effect.
Step 3 β Reinstall Visual C++ Redistributables
If a fresh GPU driver didn't help, try reinstalling Visual C++:
Uninstall any existing Visual C++ versions via Settings β Apps & Features
Download and install both versions fresh:
Step 4 β Copy LibTorch DLLs Into Your Rocket League Folder
Sometimes the libtorch libraries get corrupted or can't be located. Manually copying them next to the game executable fixes this.
Press Win + R, paste the following and press Enter:
Select all .dll files in this folder and copy them (Ctrl + C)
Navigate to your Rocket League folder β Binaries β Win64 (where RocketLeague.exe lives)
Paste the DLLs there (Ctrl + V). Overwrite if prompted.
Default Rocket League paths:
π‘ Not sure where Rocket League is installed? Steam: right-click the game β Manage β Browse Local Files. Epic: Library β β― β Manage β Folder icon.
Step 5 β LibTorch CUDA 12.8 Manual Install β Recommended Fix
If the above steps didn't resolve the issue, the libtorch files may be corrupted. This replaces them with a fresh official copy.
Close Rocket League completely β check Task Manager to confirm it's not running
Press Win + R, paste %localappdata%\Rift\resources, press Enter, and delete the libtorch folder
Download the official LibTorch from the link below (~3.3 GB) and wait for it to fully complete
Extract the ZIP: right-click the downloaded file β "Extract All..." β click "Extract"
β οΈ Do not just move the .zip file β it must be extracted first
Move the extracted libtorch folder into:
Create a valid.txt file inside the libtorch folder:
Right-click an empty area β New β Text Document
Open it and type exactly: cuda128 (no spaces, no capitals, no extra lines)
π‘ If you don't see "New β Text Document", install Notepad from the Microsoft Store first
Copy all DLLs from libtorch\lib\ into your Rocket League Binaries\Win64\ folder
Run Rift again β it should work now β
β¬ Download LibTorch CUDA 12.8 (Official, ~3.3 GB)
Step 6 β Disable Antivirus / Add Exclusions
Your antivirus may be silently blocking or deleting the required DLLs. Temporarily disable Windows Defender or your antivirus, then add the following to your exclusions:
Step 7 β Delete the Rift Folder and Retry
Press Win + R, type %localappdata%, and press Enter
Delete the entire Rift folder:
Run RiftLoader.exe again as Administrator β it will re-download everything fresh
Step 8 β Run clean.cmd
If the issue still persists, download and run the clean.cmd script as Administrator. It clears caches and adds Windows Defender exclusions automatically.