Windows games under linux

Windows games under linux

Steam for Linux

Hello,
I’m using Ubuntu Linux and Windows 10. I installed the Steam Client on Windows, afterwards I downloaded and installed all the games using the Windows Steam Client. Now I installed the Steam Client on Linux to start games via Steam Play. So I imported the existing library from Windows in the Linux Steam Client. After that, the Linux Steam Client wanted to update *all* the games in this library! Which led to these games not working on Windows any more. And vice versa.
As far as I know, Steam Play is some sort of Wine, which is an emulator for running Windows games. So why do I have to use different game libraries, one for Windows, one for Linux, although Steam Play could just start compatible Windows games on Ubuntu? I just want to share the same library on both OSes. Does anyone of you know how this works?
Thanks, Kriz

The thing does work, but you have to be aware of a few things:

1. You get those tiny updates every time the steam client is started, on both platforms. No way around it at the moment.

2. In the proton folder, wine DOS device files are created with : in the file name, which is not supported on windows file systems and will be considered as file system corruption. Chkdsk will fail, file operations on them will fail, and unexpected behavior may occur on Windows when doing anything with that part of the file system. This may include background stuff, like automatic defragmentation, indexing and such things.

3. NTFS has to be mounted with uid=1000,gid=1000, otherwise games won’t work. This is a workaround, not a recommended procedure.

3. NTFS has to be mounted with uid=1000,gid=1000, otherwise games won’t work. This is a workaround, not a recommended procedure.

2003) when sharing games on Windows and Linux (pre-Steam, mind you) with vFAT rather than NTFS, but the same general principle should work here.

@ruineka: Yes, my Steam library is on drive G:\ which I use only for games. I tried to install Trine on Windows and on Linux, and both are different versions. The Steam Clients both list just one installation of Trine, but the Windows one starts the Windows installation of Trine and the Linux one the Linux version — just like you described.
But why don’t they share the game files that are not OS-specific?
E.g. I installed Vampire: Bloodlines on Windows drive G:\ (not the steam version), and it’s possible to use the linux loader script someone wrote to start the game with wine on Linux. This works like a charme, sharing even the savegames 🙂
With Trine saves, it should be possible over the Steam cloud, but that doesn’t work. Both versions do not share save games.

@Dusk: Thank you for the explanation! It was updating *everything* on Linux, and when I started the client on Windows, every game that was updated under Linux was corrupt. Now I repaired everything with the Windows Steam client, and now when I start the Linux steam client, there are no more updates.
My games drive on G:\ is mounted via GVFS (it’s ubuntu mate), I always click on it in caja to mount it dynamically before I start the steam client. Since I deactivated Windows quick start, everything works fine.

Читайте также:  Открытое программное обеспечение для windows

Why does Proton use colons in file names when this leads to file corruption on Windows? Or is this an issue that Steam is still working on? This whole thing is a new feature after all, and I’m glad Steam implements this 🙂

Источник

Запускаем Windows игры в Linux

На мой взгляд, именно Steam и Lutris предлагают максимально современные и легкие решения для запуска игр. В качестве примера, поиграем в World of Tanks и World of Warships на Ubuntu 19.04.

Еще недавно, запускать Windows игры в Линукс было тем ещё квестом, затмевающим интерес к игре из-за тяжелого и не всегда удачного процесса установки игры.

С появлением DXVK (библиотеки основанной на Vulkan, позволяющей транслировать 3D приложения (игры) Direct3D 10/11), и как следствие Steam Play (Proton) – установка многих игр в Линукс стала почти такой же легкой как и в Windows.

Содержание

Запуск Windows игр в Linux с помощью Lutris

Lutris – сервис с игровым приложением, предоставляющий автоматизированные, настроенные скрипты для установки игр.

Интеграция с такими игровыми магазинами, как GOG и Steam, позволяет импортировать существующую библиотеку игр, а поддерживаемые сообществом установочные сценарии обеспечивают полностью автоматизированную настройку.

Установка Lutris в дистрибутивы на основе Ubuntu

Для корректной работы Lutris, разработчики рекомендуют предварительно установить Wine (версию Staging). Установить Wine в Ubuntu можно по инструкции официального сайта: Installing WineHQ packages

Для Ubuntu подобных дистрибутивов добавляем репозиторий Lutris:

Для лучшей производительности необходимо установить последнюю версию видеодрайвера и библиотеки Vulkan.

Пользователям видеокарты Nvidia нужно добавить репозиторий с новыми драйверами и затем удобным способом установить последнюю версию драйвара:

Выбрать драйвер можно с помощью встроенной утилиты Программы и обновления – Дополнительные драйверы.

Если видеокарта поддерживает Vulkan API, то устанавливаем необходимые библиотеки (скорее всего они уже установились при установке видеодрайвера. Проверить, если видеокарта поддерживает Vulkan можно по ссылке: Vulkan API):

Пользователям видеокарт AMD / Intel (Ubuntu 18.04 и выше):

Установка игр в Linux с помощью Lutris

Переходим на официальный сайт программы в раздел Games и выбираем нужную нам игру.

Найдя игру, выбираем (если доступно) редакцию скрипта с нужным нам сервером (например для World of Tanks это будет RU DXVK version). Нажимаем на Install. В качестве примера будет показана установка игры World of Tanks в Ubuntu 19.04.

Ссылка откроется в установленном приложении Lutris, нам предложат установить игру. Нажимаем на Install.

Дальше можно выбрать папку, в которую будет установлена игра. Продолжаем установку. Будет установлена нужная для данной игры версия Wine, соглашаемся на все установки. По окончанию установки онлайн установщика будет предложено создать ярлыки и запустить игру.

Затем откроется полноэкранное окно, в котором будет осуществляться установка игры. Не пугаемся, с помощью клавиш ALT+TAB можно вернуться в рабочее окно.

Запустить установленную игру можно как из программы Lutris, так и из списка установленных приложений.

Аналогично установил игру World of Warships в Ubuntu 19.04.

Именно в Ubuntu столкнулся с проблемой, при которой курсор мыши в игре не позволял делать обороты около 180 градусов. Ранее устанавливал игру в окружениях KDE и Cinnamon (Linux Mint), такой проблемы там нет. Если курсор вывести нажатием на CTRL, то можно захватить другие обороты мыши. Решение: переключение отображения игры в оконный режим.

Читайте также:  Плееры для смартфона windows

Устанавливаем Windows игры в Linux с помощью Steam (Proton)

Для совместимости игр с операционными системами GNU/Linux, компания Valve разрабатывает проект Proton (Steam Play), который в свою очередь состоит из различных наработок, таких как Wine, DXVK, esync. Подробнее почитать о Steam Proton можно в нашей статье: Steam Play улучшает поддержку Windows-игр для Linux.

Информация о качестве поддержки Windows игр в Steam Proton доступна по ссылке: ProtonDB.

Для включения опции Proton, нам необходимо открыть Steam – затем Настройки – Steam Play – и включить доступные опции.

Версию Steam Proton стоит выбирать самую актуальную, т.е с большим номером.

Дальнейшая установка игр ничем не отличается от установки в системе Windows. Steam Play автоматически произведет нужные настройки для установки игры.

Сравнение производительности видеокарты Nvidia Geforce 1060 в Ubuntu 19.04 и Windows 10

Сравнение проводилось на ноутбуке с видеокартой Nvidia Geforce 1060 (6 ГБ) и процессором Intel® Core™ i7 8750H. Операционные системы Windows 10 1903 (build 18362.10019), версия видеодрайвера NVIDIA GeForce Game Ready 436.15 и система Ubuntu 19.04 с версией видеодрайвера 430.40 (самый актуальный в репозитории ppa:graphics-drivers).

World of Tanks

Танковые сражения в World of Tanks в Windows 10 показывали от 115-130 fps до 150-165 fps, в зависимости от игровой сцены.

В Ubuntu 19.04 от 100 до 120 fps. Настройки Высокие, sd клиент.

World of Warships

В морских сражениях World of Warships в Windows 10 производительность держалась от 65 до 75 fps.

В Ubuntu 19.04 игра World of Warships показала производительность от 60 до 70 fps, но периодически сильно проседала до 25 fps. Настройки высокие, hight клиент.

Обе игры в Ubuntu были установлены с помощью Lutris.

War Thunder

Также, с интересом проверил производительность видеодрайвера в игре War Thunder. В Windows 10 игра была установлена с помощью нативного клиента, а в Ubuntu 19.04 с помощью Steam (нативная версия).

В морских сражениях в War Thunder в Windows 10 отображался fps от 65 до 85, в воздушных боях около 100 fps.

В Ubuntu 19.04 варьировался fps от 35-55 в морских сражениях и 75 fps в воздушных.

Версия из Lutris, использующая DXVK, в Ubuntu 19.04 показала fps от 50 до 75 в морских сражениях и 60 fps в воздушных.

Знаю, что разработчики War Thunder тестируют версию с использованием библиотек Vulkan. Не тестировал её, но уверен, что производительность будет значительно выше, чем у нативной версии, использующей OpenGL.

Euro Truck Simulator 2

В симуляторе Euro Truck Simulator 2 производительность в Windows 10 отображалась от 85 до 120 fps.

В Ubuntu 19.04 производительность игры ETS 2 варьировалась от 55 fps (в редких случаях) до 110 fps. В обоих случаях были использованы настройки Ультра.

Как видим, производительность игр в Linux уступает Windows 10, но при использовании библиотек DXVK и Vulkan разница гораздо меньше, чем при использовании OpenGL. В любом случае это прорыв для пользователей Linux: доступных игр стало гораздо больше, а их установка стала максимально простой.

На мой взгляд, осталось решить проблему работы античитов. Именно из-за проблемы с работой некоторых античитов, в Linux не доступна еще масса игр.

Источник

Windows games under linux

Some Mac and Linux ported games already use the commercial version of Wine called CrossOver [www.codeweavers.com] to run Windows versions of the games, System Shock 2 is an example of one such game. CrossOver is maintained by CodeWeavers [www.codeweavers.com] , a team that funds the Open Source Wine [www.winehq.org] project.

Читайте также:  Obs virtual camera mac os

Wine is a free way of getting most of Windows versions of games running natively on several POSIX-compliant operating systems, such as Linux, Mac OSX, & BSD. This guide will show you how to install the Windows version of Steam and where to look if you are having trouble running it or running games on it.

908 уникальных посетителей
4 добавили в избранное

Wine (originally an acronym for «Wine Is Not an Emulator») is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, Mac OSX, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop.

winetricks [wiki.winehq.org] is a helper script to download and install various redistributable runtime libraries needed to run some programs in Wine. These may include replacements for components of Wine using closed source libraries.

There is a winetricks script that downloads, installs and works around bugs that you may face in Steam.

If you chose to install the latest version of Wine, then it has the winetricks script already included in the base installation. If it is not or you would also like to use the latest version of winetricks, check the Wiki on WineHQ on how to get the latest version [wiki.winehq.org] .

Open a terminal window. Wine related commands should be accessible from the terminal window. Winetricks also has a GUI, so executing:

Should open a winetricks window.

Choose «Install an App» option and click ok.

The next window shows available scripts within winetricks. check the checkbox of «steam» only and click ok and the execution of the script will commence.

Unless the script has changed, the install directory(wineprefix*) will be under

/.local/share/winetricks/steam in case of Ubuntu OS. The «wine prefix» shown in the titlebar of the window is ignored by the «steam» script.

The script may even create a shortcut on your Desktop.

A few notes:
* There is a term for Wine called «wineprefix», it is a directory containing the registry and the mimicked Windows directories and files. Every wineprefix is independent and it can be moved and renamed. The win. For more information about wineprefix see the WineHQ FAQ:
http://wiki.winehq.org/FAQ

The winetricks script should have created a shortcut on your Desktop. Launch Steam by clicking on the shortcut. Then Steam should be updating. If updates seem to freeze, close Steam and relaunch it. Steam will see this installation as being on another machine, you may choose to name it «wine».

Here is a screenshot of native Linux version of Steam(on the left) and the Windows version of Steam launched with Wine(on the right) on Ubuntu OS.

Installing should go without a hitch.

But if playing results in bugs or crashes, it is best to check out if your specific game has a page on AppDB [appdb.winehq.org] .

If the pages mention installing components. You may be able to install them using winetricks, but you have to have the directory path of wineprefix to be the correct one. In a terminal:

Источник

Оцените статью