It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
high rated
I've put together a Wine wrapper for Shadow Warrior 2, allowing it to be played on Linux almost like a native game & with no Wine knowledge required.

Simply run the build script to create the wrapper. If the installer files are not alongside the wrapper build files then the path to them will need to be specified either by passing it as an argument to the build script with -respath="<path>" or by setting an environment variable named WINEWRAP_RESPATH containing it. You can change the path to build the wrapper in and the name of the wrapper directory with the -buildpath= and -dirname= arguments. The build path can also be set with the WINEWRAP_BUILDPATH environment variable.

The output will be a directory containing the game set up within a preconfigured Wine prefix, along with its own copy of Wine, extracted game icons, documentation, and start script(s). From there simply run the start script to play. The start script also includes options for creating a shortcut, configuring the wrapper etc.

(to uninstall simply delete the game directory and any shortcuts you created, and the game's user data directory in ~/.local/share if you don't want to keep your saves & settings)

User data is stored under ~/.local/share/shadow_warrior_2

Full details are in the readme.txt and release notes. Here is the download link:

shadow_warrior_2_wine.tar.xz
(37.4 kB, SHA256: c2bdb817f74fa72a9ac31d02697aa387b8885674ef140c8cbec3668a22807cd5)

Last updated 2021/07/11

This wrapper uses Wine 6.0 + DXVK. Wine and Winetricks will be downloaded automatically if not present; to avoid redownloading for other scripts the downloaded Wine package will be stored in ~/.cache/winewrap

So far the only issues I've encountered are that the company logo videos on starting the game don't play and the game doesn't seem to be able to take screenshots using "photo mode". Aside from those, if anyone runs into any problems then post in this thread, Adamhm's Linux Wine Wrappers - News, FAQ &amp; Discussion and/or The "Judas&trade; does this run in Wine" thread v1.173.

For more of my Linux Wine wrappers check out post 3 in this thread: Adamhm's Linux Wine Wrappers - News, FAQ &amp; Discussion


Additional notes:


- You can enable DXVK's framerate display by setting the environment variable: DXVK_HUD=fps
If you want to create a shortcut to start the game with this set then use these arguments for the shortcut:

env DXVK_HUD=fps %command% play

- Additional packages may be necessary to enable Vulkan support on your system, e.g.: libvulkan1 and libvulkan1:i386
Users of the open graphics drivers may also need to install mesa-vulkan-drivers and mesa-vulkan-drivers:i386
Post edited July 11, 2021 by adamhm
For those interested I tried running Shadow Warrior 2 through PlayOnLinux and it does launch and allow me to play. I played through about 10 minutes so far of the single player campaign.

There are places on the ground that are missing textures, just shows as sky where ground should be but you can't fall through. I was able to get about 15 FPS with the game on Ultra with 200% screen resolution. I had 16X AF, SSAO on, chromatic aberration on. I had DOF and Motion Blur turned off. I could get 30 FPS with all the same as above but putting the screen resolution at 100% instead of 200% so it just ran at 1080P.

Overall fun so far and performance will only get better with newer Mesa drivers, WINE, POL, etc. The game is gorgeous so i'm not going to rag on it for the framerate. It was deserved for the visuals.

My system:

AMD Ryzen 5 2600X | 16GB DDR4-3000 CL15 | MSI RX 580 8GB Gaming X | Mesa 18.1.6 | Solus 3.9999 | Kernel 4.18.9-92.current | PlayOnLinux 4.2.12

*editied for spelling
Post edited October 05, 2018 by shylock.596
Did you figure out what's needed to make videos playable in the game?
avatar
shylock.596: There are places on the ground that are missing textures, just shows as sky where ground should be but you can't fall through
Just use dxvk for it, since wined3d doesn't work well with the game.
Post edited October 05, 2018 by shmerl
avatar
shylock.596: There are places on the ground that are missing textures, just shows as sky where ground should be but you can't fall through. I was able to get about 15 FPS with the game on Ultra with 200% screen resolution. I had 16X AF, SSAO on, chromatic aberration on. I had DOF and Motion Blur turned off. I could get 30 FPS with all the same as above but putting the screen resolution at 100% instead of 200% so it just ran at 1080P.

Overall fun so far and performance will only get better with newer Mesa drivers, WINE, POL, etc. The game is gorgeous so i'm not going to rag on it for the framerate. It was deserved for the visuals.
Try it with my wrapper instead - DXVK offers FAR better performance and it does not suffer from the missing ground issue :) It can't be used with PlayOnLinux's Wine builds though as they don't support Vulkan
avatar
shmerl: Did you figure out what's needed to make videos playable in the game?
Not yet
Post edited October 05, 2018 by adamhm
avatar
shmerl: Did you figure out what's needed to make videos playable in the game?
avatar
adamhm: Not yet
A strange thing is, I can't spot any related errors. At least on normal logging level. May be it's using DX11 to play the video somehow? Then it can end up in dxvk log.
Post edited October 05, 2018 by shmerl
and because of people and programmers who do this hard work and leave the game 100% playable I just have to thank God for the life of you, thank you very much and it is for people who I give you who make it worth using linux to have it all original do not crack anything use everything within the law and respect the rights of programmers buying and paying a fair price for their work God be praised through your life strong friends hug THANK YOU this game is fantastic.
Post edited October 06, 2018 by leonny02
can you please add winetricks log in text format, separately from the whole archive?
it would be good for people who already have their own wine up and running.
avatar
djoxyk: can you please add winetricks log in text format, separately from the whole archive?
it would be good for people who already have their own wine up and running.
You need at least Wine 3.10 with DXVK. Using a Wine build with esync also helps (although I didn't see that huge of an improvement - I guess it depends on system specs & what's happening ingame). Videos don't work however - that issue seems to be mfplat related and so far I've not found any way to work around it.
avatar
adamhm: You need at least Wine 3.10 with DXVK.
empty wine prefix?
avatar
djoxyk: empty wine prefix?
Ideally, yes. Always a good idea to give everything a dedicated prefix so there's less risk of something conflicting and causing breakages.
avatar
djoxyk: empty wine prefix?
avatar
adamhm: Ideally, yes. Always a good idea to give everything a dedicated prefix so there's less risk of something conflicting and causing breakages.
this is hopeless. I just tried to learn which DLLs have you used with that prefix (that's what your winetricks log will show)
I prefer one prefix and set settings for app separately (wine allows that so why wasting time and space)
Post edited October 11, 2018 by djoxyk
avatar
djoxyk: this is hopeless. I just tried to learn which DLLs have you used with that prefix (that's what your winetricks log will show)
I prefer one prefix and set settings for app separately (wine allows that so why wasting time and space)
It's very simple:

- Wine 3.10 or later (esync enabled preferred, avoid PlayOnLinux builds as they lack Vulkan support)
- 64-bit prefix
- Install DXVK into the prefix: x32/*.dll --> c:\windows\syswow64 and x64/*.dll --> c:\windows\system32
(can ignore the Direct3D 10 DLLs for SW2)
- Add overrides for dxgi and d3d11 (native, builtin)

Done. There is no Winetricks log as I don't use Winetricks for my build scripts.

You can use a single prefix with per-app settings but I know from experience that that doesn't entirely protect you against things causing breakages for other software sharing the prefix. A clean prefix is pretty small anyway (at least when Gecko and Mono are prevented from being installed when not required - they add a good couple hundred MBs or so)
avatar
adamhm: ...

You can use a single prefix with per-app settings but I know from experience that that doesn't entirely protect you against things causing breakages for other software sharing the prefix. A clean prefix is pretty small anyway (at least when Gecko and Mono are prevented from being installed when not required - they add a good couple hundred MBs or so)
thanks! I don't use Mono, it's dotnet 46 prefix so it can run gog galaxy as well.
Thank you so very much for your kind work! Truly much appreciated!!! Your script works without issues and have been playing for over an hour without incidence. Videos seem to work fine too so unsure if you've updated your script since then.
avatar
SoldariGOG: Thank you so very much for your kind work! Truly much appreciated!!! Your script works without issues and have been playing for over an hour without incidence. Videos seem to work fine too so unsure if you've updated your script since then.
Do you mean videos in the Extras? How did you make them work?
Post edited January 09, 2019 by shmerl