1. SPS Accounts:
    Do you find yourself coming back time after time? Do you appreciate the ongoing hard work to keep this community focused and successful in its mission? Please consider supporting us by upgrading to an SPS Account. Besides the warm and fuzzy feeling that comes from supporting a good cause, you'll also get a significant number of ever-expanding perks and benefits on the site and the forums. Click here to find out more.
    Dismiss Notice
Dismiss Notice
You are currently viewing Boards o' Magick as a guest, but you can register an account here. Registration is fast, easy and free. Once registered you will have access to search the forums, create and respond to threads, PM other members, upload screenshots and access many other features unavailable to guests.

BoM cultivates a friendly and welcoming atmosphere. We have been aiming for quality over quantity with our forums from their inception, and believe that this distinction is truly tangible and valued by our members. We'd love to have you join us today!

(If you have any problems with the registration process or your account login, please contact us. If you've forgotten your username or password, click here.)

Any Infinity Game on Windows 7 :)

Discussion in 'Icewind Dale 2' started by asylum32, Oct 2, 2011.

  1. asylum32 Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Sep 26, 2011
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    Turn off DirectDraw and Direct3D with a single click! Windows 7 32bit and 64bit!

    After a couple weeks of frustration trying to get the old infinity engine games playing on Windows 7 I discovered what I'm sure you all know, you must have DirectDraw and Direct3D disabled if you want the games to run without terrible choppiness and lag. But in Windows 7 it is a widely known fact that you cannot disable them. [DXDIAG -> Display] just shows you the diagnostics, it no longer allows you to enable or disable them. I downloaded GemRB and constructed all of that stuff to emulate it all without DirectDraw, which was a huge pain in the butt, and it worked somewhat but was very buggy, and doesn't work with Icewind Dale 2 at all. Well I'm a stubborn man, so I did a bit more research and after a couple weeks finally I found a solution for myself and for all of you that would like to play Infinity Engine games on Windows 7 without any hastle whatsoever. Thank God :)

    With this simple code you can disable/enable DirectDraw and Direct3D whenever you want to, with the click of a button.

    Step by step to avoid confusion:

    Step 1: Go to any directory and make a new folder with any name (Example: "C:\Scripts\" )

    Step 2: Open Notepad and copy paste this code:

    @Echo Off
    ::Set Mode=1 to Disable, Mode=0 to Enable as the default if nothing specified on the command line.
    Set _Mode=0
    If /I "%~1"=="Disable" Set _Mode=1
    If /I "%~1"=="Enable" Set _Mode=0
    Reg Add HKLM\SOFTWARE\Microsoft\DirectDraw /V EmulationOnly /T REG_DWORD /D %_Mode% /F
    Reg Add HKLM\SOFTWARE\Microsoft\Direct3D\Drivers /V SoftwareOnly /T REG_DWORD /D %_Mode% /F

    Step 3: Save the file into your new folder (Example: "C:\Scripts\" ) save it as "SetDx.cmd"

    Step 4: Right click on your new notepad file "SetDX.cmd" and select "Create Shortcut" and place the shortcut onto the Desktop

    Step 5: Rename the new shortcut "Enable Dx"

    Step 6: Right click on the shortcut and select "Properties" and under the "Shortcut" tab, locate "Target" and change it to: "C:\Scripts\SetDx.cmd" Enable

    Make sure that includes the quotations around C:\Scripts\SetDx.cmd

    Step 7: Copy the shortcut on your desktop and rename this copy to "Disable Dx"

    Step 8: Right click on the shortcut "Disable Dx" and go under the "Shortcut" tab and locate "Target" and change it to: "C:\Scripts\SetDx.cmd" Disable

    Make sure that includes the quotations around C:\Scripts\SetDx.cmd

    Step 9: We aren't finished yet! (I made this a Step 9 so you silly people wouldn't think you were finished and stop reading the rest) You must run this a particular way to get it to work in Windows 7.

    Firstly, you must run these scripts as Administrator (You can do this by right clicking on the shortcut and selecting "Run As Administrator")

    Secondly, if you run the SCRIPT as an Administrator, you must also run the Infinity Engine Game (Planescape, BG1, BG2, IWD, IWD2) as an Administrator.

    Lastly, if you would like to check and make sure it worked perfectly, just click on Start, then in the little run box on the bottom type "DXDIAG" and your DirectX Diagnostic tool should pop up. From there you can go to the "Display" tab and at the bottom you should see DirectDraw and Direct3D and it should say whether or not they are Enabled or Disabled.

    There we go! That should be it. If you have issues with the little black squares and such, just fiddle with the different settings in the game, because DirectDraw and Direct3D are the only real problems that affect the Infinity Engine games running on Windows 7. Sometimes Graphics Drivers can play a role in glitches and such, but the main issue is DirectDraw and Direct3D.

    I hope this can get stickied on all of the Infinity Engine games' forums so people don't have to jump through all of these stupid hoops such as GemRB to get their games to 'partially' run.


    Troubleshooting: If you have any issues getting the DirectDraw and Direct3D disabled using this technique, you can just skip using the Shortcuts (EnableDx and DisableDx) and manually do it by accessing the "SetDx.cmd" file by right clicking it, select "Edit", then simply change the "Set_Mode=0" to "Set_Mode=1" whenever you want to disable DirectDraw and Direct3D.

    Then you can just right click on the "SetDx.cmd" file and select "Run As Administrator" and you should be good to go!


    ATTENTION:
    Make sure you re-enable DirectDraw and Direct3D when you are done playing your Infinity Games, because Windows 7 relies heavily on those to run properly
     
    Last edited by a moderator: Sep 3, 2019
  2. Darion

    Darion Resident Dissident Veteran BoM XenForo Migration Contributor [2015] (for helping support the migration to new forum software!)

    Joined:
    Feb 6, 2002
    Messages:
    801
    Media:
    1
    Likes Received:
    42
    Gender:
    Male
    I have never had any trouble running any Infinity Game on win 7.
    I even have them all installed on my laptop.

    It's strange, that some people have to go tru some serious voodoo to get things running!
     
  3. Taluntain

    Taluntain Resident Alpha and Omega Staff Member ★ SPS Account Holder Resourceful Adored Veteran Pillars of Eternity SP Immortalizer (for helping immortalize Sorcerer's Place in the game!) New Server Contributor [2012] (for helping Sorcerer's Place lease a new, more powerful server!) Torment: Tides of Numenera SP Immortalizer (for helping immortalize Sorcerer's Place in the game!) BoM XenForo Migration Contributor [2015] (for helping support the migration to new forum software!)

    Joined:
    Jun 11, 2000
    Messages:
    23,653
    Media:
    494
    Likes Received:
    570
    Gender:
    Male
    [​IMG] I'll sticky this for reference but I have to emphasize that messing with the registry should be a last resort step as it's easy to break things if you aren't careful and/or don't know what you're doing. I should also note that asylum32's code and method have not been tested or verified by any of us so use it at your own risk. Making a system restore point prior to using it would be well advised.

    Additionally, as noted, most people have no problems running IE games on W7, so I suspect that the issue isn't with the OS but rather certain graphics cards or some other factors.
     
  4. Henry Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Jan 3, 2012
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    Hi,

    I have followed the instructions (several times over to make sure) but whether I run it as an admin through the shortcut or direct when I check through the DXDIAG display everything is still enabled and the game still runs impossibly slowy. Any other advice would be much appreicated and would be great if I could get this playable on Window 7! :)
     
  5. Dr_Asik Gems: 6/31
    Latest gem: Jasper


    Joined:
    Mar 30, 2010
    Messages:
    176
    Likes Received:
    10
    For Infinity Engine games that support 3D acceleration (BG2, IWD), make sure to enable that in the config. The game should run fluidly, and look quite a bit better.

    For those that don't (PS:T, BG1, IWD2) (or if for some weird reason, enabling hardware acceleration doesn't help :confused:), I describe the fix in my "Extras" video for the IWD2 LP:
    http://www.youtube.com/watch?v=xQamKGzjsZg

    Written summary:
    - Install the Microsoft Compatibility Toolkit (http://www.microsoft.com/download/en/details.aspx?id=7352)
    - Run it, select the new Database under "Custom Databases
    - Click Fix
    - Locate the game's executable (bgmain.exe, IWD2.exe, etc)
    - Click next until you get to "Compatibility fixes", select Force Direct Draw Emulation"
    - That's all you need in this wizard
    - Click save
    - Right-click the fix you created and select Install.

    That's it, next time you start the game you shouldn't have any lag.
     
  6. darklocket Gems: 1/31
    Latest gem: Turquoise


    Joined:
    Sep 17, 2012
    Messages:
    1
    Likes Received:
    0
    Gender:
    Male
    I added a few more extra's to my IceWind Dale compat file based on getting older NEED FOR SPEED games working.

    CorrectFilePaths
    EmulateGetDiskFreeSpace
    EmulateSlowCPU
    ForceDXSetupSuccess
    GlobalMemoryStatusLie
    SingleProcAffinity (This is probably the most important along with the DX stuff)
    ForceDirectDrawEmulation


    Hope this helps and make sure its using the correct file path to your idmain.exe file.
     
  7. SlickRCBD Gems: 29/31
    Latest gem: Glittering Beljuril


    Resourceful Adored Veteran

    Joined:
    May 7, 2005
    Messages:
    3,144
    Media:
    47
    Likes Received:
    188
    Gender:
    Male
    Last edited: Sep 5, 2019
  8. henkie

    henkie Hammertime Resourceful Adored Veteran New Server Contributor [2012] (for helping Sorcerer's Place lease a new, more powerful server!)

    Joined:
    Jan 13, 2006
    Messages:
    2,662
    Media:
    38
    Likes Received:
    158
    Gender:
    Male
    Interesting topic. I've never had any problems with BG in Win7 or Win10, but I am experiencing this choppiness and lag with JA2, on Win10. Maybe some of these things will work there.
     
Sorcerer's Place is a project run entirely by fans and for fans. Maintaining Sorcerer's Place and a stable environment for all our hosted sites requires a substantial amount of our time and funds on a regular basis, so please consider supporting us to keep the site up & running smoothly. Thank you!

Sorcerers.net is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on amazon.com, amazon.ca and amazon.co.uk. Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.