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 SWAT 4, 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/swat4

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

swat4_wine.tar.xz
(257.4 kB, SHA256: e7f5e564edfb5b0ae0c56651fac8c651b253da1a6213fe7cbb774186aa80fdfd)

Last updated 2021/07/11

The wrapper uses Wine 6.0. 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

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.

Multiplayer has not been tested and may or may not work.

For more of my Linux Wine wrappers check out post 3 in this thread: Adamhm's Linux Wine Wrappers - News, FAQ &amp; Discussion
Post edited July 11, 2021 by adamhm
For some reason, wget could not download http://wine.playonlinux.com/binaries/linux-x86/PlayOnLinux-wine-2.0-staging-linux-x86.pol as well as the related sha1 file, so that I had to download them manually into ~/.cache/winewrap.

But apart from that, everything was fine, and the game runs smoothly, it almost feels like a native linux game.

Thank you!
Thanks a lot for this, working perfectly on Debian Sid.
avatar
Rygaar: For some reason, wget could not download http://wine.playonlinux.com/binaries/linux-x86/PlayOnLinux-wine-2.0-staging-linux-x86.pol as well as the related sha1 file, so that I had to download them manually into ~/.cache/winewrap.
It was probably some temporary issue either at your/your ISP's end or POL's end.
...it almost feels like a native linux game.
That's the goal :)
Great work, friend! It works like a charm. :)
avatar
adamhm: I've put together a Wine wrapper for SWAT 4, allowing it to be played on Linux almost like a native game & with no Wine knowledge required.
Thank you very much! Works very well on my Thinkpad T430. :)

Still, I would love to play the very popular and excellent Elite Force mod on my Linux system. It uses a separate folder in the main SWAT 4 folder and is launched via a batch script. Any advice to get it working? More info: https://github.com/eezstreet/SWATEliteForce
Post edited February 20, 2018 by ShadowOwl
You can start Elite Force with the command:

./start.sh cd=../../SEF runwine=LaunchSEF.bat

Note that initial settings for it won't be created by the start script & its settings etc. won't be stored in the wrapper's userdata directory though.

I'll add an option for setting up & playing Elite Force in a future release :)
avatar
ShadowOwl: <snip>
I've now updated the wrapper to add an installer/updater/start script and icon for the Elite Force mod :)
avatar
ShadowOwl: <snip>
avatar
adamhm: I've now updated the wrapper to add an installer/updater/start script and icon for the Elite Force mod :)
Oh, sweet! Going to try this when I'm back home.
This is great!

Thank you for this!

I have a question: is it possible to use Vulkan to run SWAT 4? I have a chromebook that suffers to run this game with Wine.
I know this is a Directx 9 game, but some progress has been made with VK9 project.

Have you any tips to increase performance on low end systems?

PS: I've noticed that wine-staging performs better than wine 3.0 in this case. Is it possible to use your shortcuts and scripts with an installed wine-staging version -- specially with Elite Force Mod? Such a pain to launch it correctly...

Thanks;
Post edited September 24, 2018 by rnrmi
avatar
rnrmi: I have a question: is it possible to use Vulkan to run SWAT 4? I have a chromebook that suffers to run this game with Wine.
I know this is a Directx 9 game, but some progress has been made with VK9 project.

Have you any tips to increase performance on low end systems?
It works well on the weakest system I have (i3-6100 with integrated graphics) so I never tried to make it run any better. You could try installing VK9 into the wrapper though - the start script has options for accessing winecfg etc. to allow this.

avatar
rnrmi: PS: I've noticed that wine-staging performs better than wine 3.0 in this case. Is it possible to use your shortcuts and scripts with an installed wine-staging version -- specially with Elite Force Mod? Such a pain to launch it correctly...
The scripts include options for using a different Wine build, intended for testing purposes. Try running the build script like so:

./swat4_wine.sh -winesource=lutris -winever=3.16-staging
First of all thank you very much for this script. It's awesome and works just perfect!!

But my only issue is whenever i switch work spaces or minimize the game, it loses all the audio until i restart the game again
Latest wrapper (from 2019/07/15) fails for for ubuntu 18.10 (x86-64):
with message:
./swat4_wine.sh: line 449: .../Swat 4/wine/bin/wine: No such file or directory
An error occurred trying to create the prefix.

I think it is trying to look for wineboot.exe which is not present in my .../Swat 4/wine/bin/ folder. There is a wineboot file however.

Thanks in advance for any help.
Post edited July 19, 2019 by gorgut32
This usually happens when you're missing some dependencies - make sure that you have them all installed. The easiest way to do this on Ubuntu is to install Wine via the package manager (ideally via WineHQ but the system-provided version should work too).
avatar
adamhm: This usually happens when you're missing some dependencies - make sure that you have them all installed. The easiest way to do this on Ubuntu is to install Wine via the package manager (ideally via WineHQ but the system-provided version should work too).
Many thanks. Indeed reinstallation of wine solved the problem.