NextPlayIntelNextPlayIntel

Explore

Red Dead Redemption 2 error code

RDR2 Error Code 18: Failed to Initialize Graphics Device

By Tulasiram Pemmadi · Published · Source checked 31 October 2026

Error Code: 18 in one line: Red Dead Redemption 2 couldn't start because of a graphics API setting.
Try this first: switch the graphics API to DirectX 12 in the settings file.

What Error Code: 18 means

Rockstar Support says: “This error occurs whenever there's an issue with your Graphics API settings.” (official page)

The full message is "Rockstar Games failed to initialize graphics device. Error Code: 18". It is a settings problem, not a hardware fault.

Likely causes

How to fix Error Code: 18, easiest first

  1. Close the game
    Quit Red Dead Redemption 2 fully.
  2. Open the settings file
    Go to C:\Users\[USERNAME]\Documents\Rockstar Games\Red Dead Redemption 2 and open the settings XML file in Notepad.
  3. Force DirectX 12
    Find kSettingAPI_Vulkan and change it to kSettingAPI_DX12. Save and restart the game.
Fixes at a glance
StepWhat to doSource
1Close the gameOfficial
2Open the settings fileOfficial
3Force DirectX 12Official

When to contact support

If the error returns, contact Rockstar Support.

Error Code: 18 FAQ

What causes Error Code 18?

Rockstar says it happens whenever there's an issue with your graphics API settings.

Sources

Official sources last checked 31 October 2026.

Other Red Dead Redemption 2 error codes

Red Dead Redemption 2 troubleshooting guide · All Red Dead Redemption 2 codes · Error code directory

About the Author

Tulasiram Pemmadi · Owner and editor

Tulasiram Pemmadi is the owner and editor of NextPlayIntel, which operates from India and the United Arab Emirates (UAE). He sets the site's editorial policy and publishes its gaming news, GTA guides, explainers and hardware reference pages. Articles are researched and written with AI assistance and fact-checked against the linked sources. Unless a page says otherwise, guides summarise published information and are not hands-on tests.

Researched and written with AI assistance, fact-checked by Tulasiram Pemmadi against the linked sources. This page summarises the official support page and the linked reports; the fixes were not tested on hardware by NextPlayIntel.