🛈 Announcement
Greetings! The-Settlers forums are now archived and accessible in read-only mode, please go to the new platform to discuss the game.
  1. #1

    FYI - RwEngineSetVideoMode

    Bought Settlers 5 as part of History Edition.
    In Windows 10, using UPlay launcher (or executing \theSettlers5\bin\SettlersHoK.exe directly) would launch black window titled "The Settlers 5 - Heritage of Kings" and then pop up a Windows dialog with an error: RwEngineSetVideoMode

    Thought it was a display resolution issue. Spent a while getting my widescreen display to switch from 16:9 resolutions to 4:3. 800x600 didn't make a difference, error still occurred. Once I got 1024x768 working, game launched fine.

    Weirdly, I since set my resolution back to 16:9 (1280x720) and the game still works for now.

    So now I never see the black window and the game launches straight into opening animation/logo.
     1 people found this helpful
    Share this post

  2. #2
    Ubi-TheBerry's Avatar Ubisoft Support Staff
    Join Date
    Jun 2020
    Posts
    2,971
    Hey LastManClan!

    I'm glad to hear you've been able to resolve your issue as random as it was!

    Thanks for posting it here for us to see and for other players who may experience similar.

    I'd also recommend this guide for any other players to try some troubleshooting if adjusting the resolution doesn't resolve it.
    Share this post

  3. #3

    RwEngineSetVideoMode (VideoMode) error

    Hi there, I'm having this issue too.

    Thanks for this thread. It helped me launch The Settlers 5, but unfortunately this is the only way to launch it for me.

    I use two monitors (HDMI landscape, DP portrait), and it will work on the DP monitor at 1024x768 with and without compatibility mode - another solution offered.

    I followed this thread, and unfortunately, changing the options when it is working will not create an Options.ini file anywhere.

    Another solution I have heard of is following this video and downloading someone's custom .exe files, but it doesn't work either.

    Have there been any solutions or support offered by Ubisoft in the past couple of years?
    Share this post

  4. #4
    I actually found a solution to my problem in a Steam guide: https://steamcommunity.com/sharedfil...?id=1689822240

    The display resolution comment made me think of launching in windowed mode, and I followed this guide:

    Goto -> "C:\Users\%username%\Documents\THE SETTLERS 5 - History Edition\Data"
    and open the file GDB.xml with notepad++ or similar editor

    Find the entry:

    <ListData>
    <Name>TextureResolution</Name>
    <Object classname="GDB::CValue" classid="0x93bcc6f3">
    <Value>0.000000e+00</Value>
    </Object>
    </ListData>

    add following lines directly below:

    <ListData>
    <Name>Windowed</Name>
    <Object classname="GDB::CValue" classid="0x93bcc6f3">
    <Value>1.000000e+00</Value>
    </Object>
    </ListData>

    or for borderless window (big thanks to Vexillarius):

    <ListData>
    <Name>BorderlessWindowed</Name>
    <Object classname="GDB::CValue" classid="0x93bcc6f3">
    <Value>1.000000e+00</Value>
    </Object>
    </ListData>

    Example:

    <ListData>
    <Name>TextureResolution</Name>
    <Object classname="GDB::CValue" classid="0x93bcc6f3">
    <Value>0.000000e+00</Value>
    </Object>
    </ListData>
    <ListData>
    <Name>Windowed</Name>
    <Object classname="GDB::CValue" classid="0x93bcc6f3">
    <Value>1.000000e+00</Value>
    </Object>
    </ListData>
    </Object>
    Share this post

  5. #5
    Unfortunately when I try this fix the error changes to Unable to find valid Video Mode!'

    My screen is only 1280x720 resolution, I think the game allows a minimum of 768 pixels in height. Any way to change this?
    Share this post

  6. #6
    UbiSushiVamp's Avatar Ubisoft Support Staff
    Join Date
    Jan 2021
    Posts
    452
    Hello, LastManClan! I am sorry to hear that you are encountering this error as well. Would you be willing to verify your game files to test if that helps resolve this at all for you?
    Share this post