Error Creating Default Shader

Discussion in 'Technical & Support' started by schlitty, Jan 3, 2017.

  1. schlitty

    schlitty Registered

    Joined:
    Jan 3, 2017
    Messages:
    4
    Likes Received:
    0
    I just purchased rFactor 2 today and installed the game. The launcher loaded and auto subscribed to the workshop items, those all downloaded and synced just fine.

    But when I click singleplayer I get a "gMotor 2 error" that says "Error creating default shader".

    When I click okay I get another error that says "Error setting video mode".

    Then the program stops responding and crashes back to the launcher.

    I've tried searching some about the issue but couldn't find anything solid. They're either abandoned threads with no answers or they're solved just 'magically' and the person is just happy it works finally.

    Some things I've tried;
    Verified cache integrity on Steam.
    Deleted and redownloaded/installed.
    Deleted user config, player, and shader files.
    Tried various AA, sync, windowed/borderless/fullscreen, settings.
    Tried 32bit.
    Running the exe as administrator in Windows.

    None worked.

    Specs; Fresh install of rF2, Win 10 64bit, FX8320, AMD 380, tried installing on both C: drive and secondary, no mods besides the auto subscriptions, no settings changed outside of the launcher, no files added, etc

    Any tips or tricks would be appreciated. Don't want to have to return it. :(
     
  2. Drathuu

    Drathuu Registered

    Joined:
    Oct 14, 2010
    Messages:
    350
    Likes Received:
    98
    Possibly UAC, when you run game is the UAC window popping up and did you approve it.
    Also i saw it on a friends install the directories were set to read only (no write access) .. so when the game tried to create files it was stopped.
    (only seen this once though).
    Also is your refresh rate set correctly ?? ie not 29hz.. try deleting files from shader folder in userdata/log
    Some solved it with giving administrator privilege in compatibility property to "Launch rFactor.exe" file in rfactor2\Launcher directory
    This may very well be true, if rF2 don't have proper user right it's unable to generate AND save the files needed in the CBash folder - which contains shaders etc. - graphics won't work. (hints at read / write access).
     
    schlitty likes this.
  3. schlitty

    schlitty Registered

    Joined:
    Jan 3, 2017
    Messages:
    4
    Likes Received:
    0
    Not UAC. Refresh rate defaulted correctly in settings but I also tried the other options. Mentioned I had already tried deleting the player, config, and shader files. No luck there either. I tried administrator privileges on the 32bit during one install/attempt, but I suppose I can try that again on the regular exe.

    A fellow on Steam this morning mentioned I might not have all the DirectX 9 files, so got that download geared up to try as well when I redownload rF2 for the fourth time later. Will definitely try administrator privileges again too. Thanks. I will update later on my luck, good or bad.
     
  4. schlitty

    schlitty Registered

    Joined:
    Jan 3, 2017
    Messages:
    4
    Likes Received:
    0
    No luck with the DirectX 9c stuff or privileges. Still same errors. :(
     
  5. schlitty

    schlitty Registered

    Joined:
    Jan 3, 2017
    Messages:
    4
    Likes Received:
    0
    For what its worth my problem seems to have been with some permission setting along the way AND my install directory. I have my Steam games installed on a secondary HDD. And for whatever reason rFactor 2 did not like the naming of the directory. I contacted rF2 support directly and that was the last idea he had to try. I made a second Steam directory just named "test" on my secondary HDD and the game ran fine there. Then I tried in on my primary again (had tried that earlier before fiddling with permissions and stuff) and it now worked on C:\ as well. But still wouldn't fire up in that original directory where my other games are on my secondary. So I dunno, didn't seem like it should be too long of a directory but it sure didn't like it. Game works now though! I hope nobody else runs into the same problem but consider changing your directory if you do.

    According to support; "Error creating default shader" is caused by limited space (HD, page file, memory) or permissions or path being too long.
     
  6. Drathuu

    Drathuu Registered

    Joined:
    Oct 14, 2010
    Messages:
    350
    Likes Received:
    98
    Glad you sorted it.. but weird nonetheless. maybe the directory length went beyond a hardcoded string length /buffer in their code.. oh well devs maybe able to narrow something down
     

Share This Page