Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Yesterday at 8:07 AM
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Wednesday at 11:58 PM
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Wednesday at 10:23 PM
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Wednesday at 4:54 PM
Ad icon
🎮 INDIAN PSN GIFT CARDS AVAILABLE NOW! 🎮
madukaperera
Updated:
Tuesday at 12:57 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
News & Discussion
LINUX ගැන
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="help4u" data-source="post: 9213117" data-attributes="member: 326991"><p><strong>REP</strong></p><p></p><p>How to install DirectX in Linux using Wine </p><p><span style="color: Red"><strong>Written by Tom Wickline</strong></span> </p><p>Monday, 18 January 2010 03:57</p><p></p><p></p><p> </p><p>Would you like to play the latest and greatest Windows games? Sure. In Linux? Sure. Now comes the tricky question, how exactly do you do that? Linux uses OpenGL, whereas most Windows games rely on DirectX. No problem. That's what Wine is made for.</p><p></p><p>I've mentioned Wine in my Linux gaming mega howto, as one of the tools that allow you to run Windows games in Linux, for whatever reason you may want to do so. The results may vary and may not be perfect, but you can still manage a handsome array of games easily.</p><p></p><p> </p><p></p><p>What prompted me to try running one of the Windows heavyweight games on Linux was the pure simple hardware limitation. The game in question was Tropico 3, a fabulous dictatorship simulation with some pretty hefty requirements, including 2GB of RAM and at least 256MB Nvidia 6600GT card. As it turns out, my two older Athlons both running Windows and equipped with Nvidia 6600GT and 7600GT cards were not exactly tailored for this game. But if you recall, I've just recently bought myself a shiny new laptop, with the powerful Nvidia 9600GS card with 512MB VRAM. So I figured, what the hell, it's worth a try.</p><p></p><p>What I did was install DirectX 9.0c in Linux using Wine and then installed Tropico 3. Lo and behold, it works, beautifully. I can play the game with details set to high without any problems or glitches, everything runs smoothly and even the sound quality is great.</p><p></p><p></p><p></p><p>In this article, you will learn how to install DirectX using Wine. It's not simple, but it's not difficult either. And then, the world's your oyster. I hope you will enjoy this guide, plus you get a few dandy Tropico 3 screenshots. A full review will come later.</p><p></p><p>Follow me.</p><p></p><p>Install Wine</p><p></p><p>This is simple. Just open the package manager and install the software.</p><p></p><p>Configure DirectX libraries</p><p></p><p>This is the most complicated step of all. But do not worry, you get everything, step by step.</p><p></p><p>Launch Wine configuration. You can either do it via the Application menu in your distro, Wine > Configure Wine or by running winecfg from the command line. Once the main menu opens, click on the Libraries tab.</p><p><img src="http://www.dedoimedo.com/images/games/linux-games-howto-wine-options-1.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p>This tab allows you to specify the behavior of different DLLs and override the possible defaults. To get DirectX running, you will need a long list of DLLs listed. The first step is to click on the New override dropdown box icon and expand the list. Search for the d3d8 DLL. Once found, click Add.</p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-choose-library.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>It will be added to the Existing overrides list like this: d3d8 (builtin,native).</p><p></p><p>This is not what we need. Therefore, you must select the DLL in the list and click Edit. Then, change the configuration to builtin only.</p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-edit-library.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>There's a very long list of DLLs and specifying them manually would be a torture. Luckily, you can hack the Wine registry directly and add the desired overrides as a list into the file, without going through the manual process of specifying each one using the GUI.</p><p></p><p>To edit the registry, open the file in text editor (e.g. gedit):</p><p></p><p>gedit ~/.wine/user.reg</p><p></p><p>In the file, look for the section labeled DllOverrides:</p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-user-reg.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>In this section, you can copy & paste the entire list of DLL overrides required. You can find the entire list in this great article. Copy the entire selection, save the file and exit. The next time you launch Wine configuration, the overrides will be loaded.</p><p></p><p>Eventually, you'll see something like this:</p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-libraries.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>This is the first step. Now, we need to setup some core files.</p><p></p><p>Setup core files</p><p></p><p>These files may or may not be required, but it does not hurt to have them anyway. The two files in question are mscoree.dll and streamci.dll. The first is a module containing .NET Framework functions, the second is a library used to install streaming hardware devices.</p><p></p><p>You can copy these files from your Windows installations, if you have some, or download them from the web. A good online source that offers these file is DLL-files.com.</p><p></p><p>Download the two files and copy them to the Wine system32 folder.</p><p>cp mscoree.dll ~/.wine/drive_c/windows/system32/</p><p>cp streamci.dll ~/.wine/drive_c/windows/system32/</p><p></p><p>The next step is to download the DirectX 9.0c redistributable package.</p><p></p><p>Download DirectX 9.0c</p><p></p><p>You need the redistributable package, because the installation won't handle the online installer well. Once the file is downloaded, run the executable with Wine.</p><p></p><p>wine directx_9c_redist.exe</p><p></p><p>This will start a wizard, which will ask you to accept the license and extract the files to a folder. Choose any folder and extract the files there.</p><p></p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-install-license.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p>Install DirectX 9.0c</p><p></p><p>Navigate to the folder and run the actual DirectX setup:</p><p></p><p>wine dxsetup.exe</p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-begin-install.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p></p><p>The installer should complete without any problems. It will ask you to reboot, but you do not need to do that.</p><p></p><p>Test DirectX 9.0c</p><p></p><p>Now, let's test. Go to the system32 folder (inside the .wine folder) and run dxdiag.exe.</p><p></p><p>wine ~/.wine/drive_c/windows/system32/dxdiag.exe</p><p></p><p>If everything went as it should, you should have DirectX setup and enabled. You can ignore most of the device and driver information, since we're doing a rather decent hack here.</p><p></p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-dxdiag-good.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p>Setup Direct Music</p><p></p><p>If you also want to have enhanced sound effects and whatnot, you will need another driver. The file in question is called gm.dls and you can find it listed on several websites, available for download. Again, use discretion when downloading files like this. Make sure they are digitally signed by Microsoft, with the proper size and hash value. Likewise, checking these files against Jotti or VirusTotal may not hurt.</p><p></p><p>You can find the file here (direct download). Copy the file to system32/drivers:</p><p></p><p>cp gm.dls ~/.wine/drive_c/windows/system32/drivers/</p><p></p><p>After doing this, rerun dxdiag and check the Music tab.</p><p></p><p>Setup additional files</p><p></p><p>Your games may also require additional DLLs that are not found above. You will discover this only after installing them and running them, which is the step below. If you have already found online references that mention additional DLLs are needed for your games, then you can install them before trying the game, saving yourself time.</p><p></p><p>For example, Tropico 3 requires d3dx9_41.dll, without which the game start will fail. The above subset includes only d3dx9_24.dll and d3dx9_36.dll, but not the latest one. No worries, head to DLL-files.com and download the missing item(s).</p><p></p><p>Install and test your games!</p><p></p><p>Time to try your games. In my case, Tropico 3 installed without any problems, followed by the 1.04 patch, which solves lots of issues in the original game. Starting the game without the d3dx9_41.dll resulted in a failure, but once I copied the missing item into the system32 folder, everything worked fine.</p><p></p><p>The game runs smoothly even on high level - considering the hacks we just did, this is impressive. The sound quality is great. The game is stable. It's really a pleasure. A real blast!</p><p></p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-tropico-scrn-1.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><img src="http://www.dedoimedo.com/images/games/wine-directx-tropico-scrn-2.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p></p><p></p><p>What more, you can make things faster even more!</p><p></p><p>Tweaks</p><p></p><p>Wine prints lots of debugging messages to the console, slowing things down a bit. You can definitely improve the performance by prepending a Wine debug environment variable to the wine command line, allowing yourself even more Frames Per Second (FPS) in your games.</p><p></p><p>Just run the game executable like this:</p><p></p><p>WINEDEBUG=-all wine</p><p></p><p>Example:</p><p></p><p>WINEDEBUG=-all wine Tropico3.exe</p></blockquote><p></p>
[QUOTE="help4u, post: 9213117, member: 326991"] [b]REP[/b] How to install DirectX in Linux using Wine [COLOR="Red"][B]Written by Tom Wickline[/B][/COLOR] Monday, 18 January 2010 03:57 Would you like to play the latest and greatest Windows games? Sure. In Linux? Sure. Now comes the tricky question, how exactly do you do that? Linux uses OpenGL, whereas most Windows games rely on DirectX. No problem. That's what Wine is made for. I've mentioned Wine in my Linux gaming mega howto, as one of the tools that allow you to run Windows games in Linux, for whatever reason you may want to do so. The results may vary and may not be perfect, but you can still manage a handsome array of games easily. What prompted me to try running one of the Windows heavyweight games on Linux was the pure simple hardware limitation. The game in question was Tropico 3, a fabulous dictatorship simulation with some pretty hefty requirements, including 2GB of RAM and at least 256MB Nvidia 6600GT card. As it turns out, my two older Athlons both running Windows and equipped with Nvidia 6600GT and 7600GT cards were not exactly tailored for this game. But if you recall, I've just recently bought myself a shiny new laptop, with the powerful Nvidia 9600GS card with 512MB VRAM. So I figured, what the hell, it's worth a try. What I did was install DirectX 9.0c in Linux using Wine and then installed Tropico 3. Lo and behold, it works, beautifully. I can play the game with details set to high without any problems or glitches, everything runs smoothly and even the sound quality is great. In this article, you will learn how to install DirectX using Wine. It's not simple, but it's not difficult either. And then, the world's your oyster. I hope you will enjoy this guide, plus you get a few dandy Tropico 3 screenshots. A full review will come later. Follow me. Install Wine This is simple. Just open the package manager and install the software. Configure DirectX libraries This is the most complicated step of all. But do not worry, you get everything, step by step. Launch Wine configuration. You can either do it via the Application menu in your distro, Wine > Configure Wine or by running winecfg from the command line. Once the main menu opens, click on the Libraries tab. [IMG]http://www.dedoimedo.com/images/games/linux-games-howto-wine-options-1.png[/IMG] This tab allows you to specify the behavior of different DLLs and override the possible defaults. To get DirectX running, you will need a long list of DLLs listed. The first step is to click on the New override dropdown box icon and expand the list. Search for the d3d8 DLL. Once found, click Add. [IMG]http://www.dedoimedo.com/images/games/wine-directx-choose-library.jpg[/IMG] It will be added to the Existing overrides list like this: d3d8 (builtin,native). This is not what we need. Therefore, you must select the DLL in the list and click Edit. Then, change the configuration to builtin only. [IMG]http://www.dedoimedo.com/images/games/wine-directx-edit-library.png[/IMG] There's a very long list of DLLs and specifying them manually would be a torture. Luckily, you can hack the Wine registry directly and add the desired overrides as a list into the file, without going through the manual process of specifying each one using the GUI. To edit the registry, open the file in text editor (e.g. gedit): gedit ~/.wine/user.reg In the file, look for the section labeled DllOverrides: [IMG]http://www.dedoimedo.com/images/games/wine-directx-user-reg.png[/IMG] In this section, you can copy & paste the entire list of DLL overrides required. You can find the entire list in this great article. Copy the entire selection, save the file and exit. The next time you launch Wine configuration, the overrides will be loaded. Eventually, you'll see something like this: [IMG]http://www.dedoimedo.com/images/games/wine-directx-libraries.png[/IMG] This is the first step. Now, we need to setup some core files. Setup core files These files may or may not be required, but it does not hurt to have them anyway. The two files in question are mscoree.dll and streamci.dll. The first is a module containing .NET Framework functions, the second is a library used to install streaming hardware devices. You can copy these files from your Windows installations, if you have some, or download them from the web. A good online source that offers these file is DLL-files.com. Download the two files and copy them to the Wine system32 folder. cp mscoree.dll ~/.wine/drive_c/windows/system32/ cp streamci.dll ~/.wine/drive_c/windows/system32/ The next step is to download the DirectX 9.0c redistributable package. Download DirectX 9.0c You need the redistributable package, because the installation won't handle the online installer well. Once the file is downloaded, run the executable with Wine. wine directx_9c_redist.exe This will start a wizard, which will ask you to accept the license and extract the files to a folder. Choose any folder and extract the files there. [IMG]http://www.dedoimedo.com/images/games/wine-directx-install-license.png[/IMG] Install DirectX 9.0c Navigate to the folder and run the actual DirectX setup: wine dxsetup.exe [IMG]http://www.dedoimedo.com/images/games/wine-directx-begin-install.png[/IMG] The installer should complete without any problems. It will ask you to reboot, but you do not need to do that. Test DirectX 9.0c Now, let's test. Go to the system32 folder (inside the .wine folder) and run dxdiag.exe. wine ~/.wine/drive_c/windows/system32/dxdiag.exe If everything went as it should, you should have DirectX setup and enabled. You can ignore most of the device and driver information, since we're doing a rather decent hack here. [IMG]http://www.dedoimedo.com/images/games/wine-directx-dxdiag-good.png[/IMG] Setup Direct Music If you also want to have enhanced sound effects and whatnot, you will need another driver. The file in question is called gm.dls and you can find it listed on several websites, available for download. Again, use discretion when downloading files like this. Make sure they are digitally signed by Microsoft, with the proper size and hash value. Likewise, checking these files against Jotti or VirusTotal may not hurt. You can find the file here (direct download). Copy the file to system32/drivers: cp gm.dls ~/.wine/drive_c/windows/system32/drivers/ After doing this, rerun dxdiag and check the Music tab. Setup additional files Your games may also require additional DLLs that are not found above. You will discover this only after installing them and running them, which is the step below. If you have already found online references that mention additional DLLs are needed for your games, then you can install them before trying the game, saving yourself time. For example, Tropico 3 requires d3dx9_41.dll, without which the game start will fail. The above subset includes only d3dx9_24.dll and d3dx9_36.dll, but not the latest one. No worries, head to DLL-files.com and download the missing item(s). Install and test your games! Time to try your games. In my case, Tropico 3 installed without any problems, followed by the 1.04 patch, which solves lots of issues in the original game. Starting the game without the d3dx9_41.dll resulted in a failure, but once I copied the missing item into the system32 folder, everything worked fine. The game runs smoothly even on high level - considering the hacks we just did, this is impressive. The sound quality is great. The game is stable. It's really a pleasure. A real blast! [IMG]http://www.dedoimedo.com/images/games/wine-directx-tropico-scrn-1.jpg[/IMG] [IMG]http://www.dedoimedo.com/images/games/wine-directx-tropico-scrn-2.jpg[/IMG] What more, you can make things faster even more! Tweaks Wine prints lots of debugging messages to the console, slowing things down a bit. You can definitely improve the performance by prepending a Wine debug environment variable to the wine command line, allowing yourself even more Frames Per Second (FPS) in your games. Just run the game executable like this: WINEDEBUG=-all wine Example: WINEDEBUG=-all wine Tropico3.exe [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom