Fixing "LoadLibrary returned NULL"

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.

  1. Select your GPU and download the latest Game Ready Driver

  2. Run the installer and choose Custom (Advanced) instead of Express

  3. 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++:

  1. Uninstall any existing Visual C++ versions via Settings β†’ Apps & Features


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.

  1. Press Win + R, paste the following and press Enter:

  1. Select all .dll files in this folder and copy them (Ctrl + C)

  2. Navigate to your Rocket League folder β†’ Binaries β†’ Win64 (where RocketLeague.exe lives)

  3. Paste the DLLs there (Ctrl + V). Overwrite if prompted.

Default Rocket League paths:

Platform
Path

Steam

C:\Program Files (x86)\Steam\steamapps\common\rocketleague\Binaries\Win64

Epic

C:\Program Files\Epic Games\rocketleague\Binaries\Win64

πŸ’‘ Not sure where Rocket League is installed? Steam: right-click the game β†’ Manage β†’ Browse Local Files. Epic: Library β†’ β‹― β†’ Manage β†’ Folder icon.


If the above steps didn't resolve the issue, the libtorch files may be corrupted. This replaces them with a fresh official copy.

  1. Close Rocket League completely β€” check Task Manager to confirm it's not running

  2. Press Win + R, paste %localappdata%\Rift\resources, press Enter, and delete the libtorch folder

  3. Download the official LibTorch from the link below (~3.3 GB) and wait for it to fully complete

  4. Extract the ZIP: right-click the downloaded file β†’ "Extract All..." β†’ click "Extract"

    ⚠️ Do not just move the .zip file β€” it must be extracted first

  5. Move the extracted libtorch folder into:

  1. Create a valid.txt file inside the libtorch folder:

    • Right-click an empty area β†’ New β†’ Text Document

    • Rename it to valid.txt

    • Open it and type exactly: cuda128 (no spaces, no capitals, no extra lines)

    • Save with Ctrl + S

    πŸ’‘ If you don't see "New β†’ Text Document", install Notepad from the Microsoft Store first

  2. Copy all DLLs from libtorch\lib\ into your Rocket League Binaries\Win64\ folder

  3. 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:

  • RiftLoader.exe

  • %localappdata%\Rift


Step 7 β€” Delete the Rift Folder and Retry

  1. Press Win + R, type %localappdata%, and press Enter

  2. Delete the entire Rift folder:

  1. 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.

file-download
768B

Last updated