zirrush
11th Sep 2011, 6:57 AM
Ok, dunno how many ppl will make use of this. But, I figured it was worth posting up after helping a friend configure wine to run TSM and then it just hanging out on the loading screen once mods where installed. So, I'll just start from the beginning on what you need before even installing TSM in wine.
First, you need to download and install winetricks. Assuming you have wget installed, this can be done from the command line via
wget http://winetricks.org/winetricks
Once downloaded, you need to install vcrun2010, vcrun6, vcrun6sp6, mfc42, d3dx9_31. You can install this using either the X gui (right click on your winetricks file and run with "sh") or from the command line via:
sh ./winetricks vcrun2010 vcrun6 vcrun6sp6 mfc42 d3dx9_31
The d3dx9_31 is the file you can get by without unless using mods, placing the windows native dll in your bin folder will not work using wine. You need to install the wine native via winetricks. If using an ATI card or having a black screen once the game has loaded, you may need to edit your Direct3D settings in wine's regedit located at : "HKEY_USERS\S-1-5-21-0-0-0-1000\Software\Wine\Direct3D"
Add strings and modify the values accordingly:
DirectDrawRenderer = opengl
Multisampling = enabled
OffscreenRenderingMode = fbo
PixelShaderMode = enabled
RenderTargetLockMode = readtex
UseGLSL = disabled
VertexShaderMode = hardware
And of course, you need the correct Resource.cfg in your game folder:
Resource.cfg
Priority 500
DirectoryFiles Mods/Packages/... autoupdate
PackedFile Mods/Packages/*.package
PackedFile Mods/Packages/*/*.package
PackedFile Mods/Packages/*/*/*.package
PackedFile Mods/Packages/*/*/*/*.package
PackedFile Mods/Packages/*/*/*/*/*.package
That about does it, if you haven't used wine for any other games I suggest getting wine working with just the base game before fooling with the mods. Common problems that prevent wine from running right is X not being configured for 3D acceleration, and if using a NVidia card make sure you're using NVidia's proprietary drivers and not the open source alternatives. The open source will run 3D acceleration fine, but wine just never seams to agree with it in my experiences. Check your distros non-free repositories for the nvidia drivers or just go to nvidia.com. Also, usually a good idea to make sure compiz isn't running when you're trying to play games. I recommend using the fusion-icon applet to quickly change back and forth between compiz and your non-fancy window manager.
Another Note, Pirates and Nobles WILL run through wine. However, the installer will crash once trying to install the VC++ Runtimes. A simple workaround for this requires access to a windows computer. You'll need to install PaN in windows and copy just the PaN folder to an external and then over to your "Program Files\Electronic Arts\" folder in wine. Once doing this, run the PaN installer and install overtop of itself. Doing this bypasses the VC++ installer and will patch TSM's base packages with the expansion and what not. I'd imagine there's a simpler way of doing this by extracting the appropriate files from the VC++ installer on the dvd and just placing them in the directory. Until I'm bored enough to fiddle with that, this is my method, lol.
This was all done and running flawless using Wine 1.3.27 on fedora 15 x86. Cheers :beer:
First, you need to download and install winetricks. Assuming you have wget installed, this can be done from the command line via
wget http://winetricks.org/winetricks
Once downloaded, you need to install vcrun2010, vcrun6, vcrun6sp6, mfc42, d3dx9_31. You can install this using either the X gui (right click on your winetricks file and run with "sh") or from the command line via:
sh ./winetricks vcrun2010 vcrun6 vcrun6sp6 mfc42 d3dx9_31
The d3dx9_31 is the file you can get by without unless using mods, placing the windows native dll in your bin folder will not work using wine. You need to install the wine native via winetricks. If using an ATI card or having a black screen once the game has loaded, you may need to edit your Direct3D settings in wine's regedit located at : "HKEY_USERS\S-1-5-21-0-0-0-1000\Software\Wine\Direct3D"
Add strings and modify the values accordingly:
DirectDrawRenderer = opengl
Multisampling = enabled
OffscreenRenderingMode = fbo
PixelShaderMode = enabled
RenderTargetLockMode = readtex
UseGLSL = disabled
VertexShaderMode = hardware
And of course, you need the correct Resource.cfg in your game folder:
Resource.cfg
Priority 500
DirectoryFiles Mods/Packages/... autoupdate
PackedFile Mods/Packages/*.package
PackedFile Mods/Packages/*/*.package
PackedFile Mods/Packages/*/*/*.package
PackedFile Mods/Packages/*/*/*/*.package
PackedFile Mods/Packages/*/*/*/*/*.package
That about does it, if you haven't used wine for any other games I suggest getting wine working with just the base game before fooling with the mods. Common problems that prevent wine from running right is X not being configured for 3D acceleration, and if using a NVidia card make sure you're using NVidia's proprietary drivers and not the open source alternatives. The open source will run 3D acceleration fine, but wine just never seams to agree with it in my experiences. Check your distros non-free repositories for the nvidia drivers or just go to nvidia.com. Also, usually a good idea to make sure compiz isn't running when you're trying to play games. I recommend using the fusion-icon applet to quickly change back and forth between compiz and your non-fancy window manager.
Another Note, Pirates and Nobles WILL run through wine. However, the installer will crash once trying to install the VC++ Runtimes. A simple workaround for this requires access to a windows computer. You'll need to install PaN in windows and copy just the PaN folder to an external and then over to your "Program Files\Electronic Arts\" folder in wine. Once doing this, run the PaN installer and install overtop of itself. Doing this bypasses the VC++ installer and will patch TSM's base packages with the expansion and what not. I'd imagine there's a simpler way of doing this by extracting the appropriate files from the VC++ installer on the dvd and just placing them in the directory. Until I'm bored enough to fiddle with that, this is my method, lol.
This was all done and running flawless using Wine 1.3.27 on fedora 15 x86. Cheers :beer: