Notabug genshin impact linux

mcxiaoke / apply_patches.bash

A script intended to make Genshin Impact run perfectly on Linux using Wine + DXVK. You need to have a Wine installation, Winetricks is automatically installed in this script.

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

#! /bin/bash
VERSION= » 151 «
PATCHES_DIR= » $PWD /patches/ $VERSION «
GAME_DIR= » $PWD /files/drive_c/Program Files/Genshin Impact/Genshin Impact game «
if ! [ -d » $PWD /patches » ] ; then
export WINEPREFIX= » $PWD /files «
git clone https://notabug.org/Krock/GI-on-Linux.git patches
DIR= » $PWD /patches «
(cd » $DIR » && git clone wget https://github.com/Sporif/dxvk-async/releases/download/1.8.1/dxvk-async-1.8.1.tar.gz)
(cd » $DIR » && tar -xzvf dxvk-async-1.8.1.tar.gz)
chmod +x » $DIR » /dxvk-async-1.8.1/setup_dxvk.sh
fi
» $DIR » /dxvk-async-1.8.1/setup_dxvk.sh install
(cd » $GAME_DIR » && bash » $PATCHES_DIR » /patch.sh)
(cd » $GAME_DIR » && bash » $PATCHES_DIR » /patch_anti_logincrash.sh)

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

#! /bin/bash
# Ensuring winetricks is installed.
if ! type -t » winetricks » & > /dev/null ; then
read -p » Winetricks is not installed. We’ve a winetricks installer built-in. You want to proceed with the installation? ([y]es or [N]o): «
case $( echo $REPLY | tr ‘ [A-Z] ‘ ‘ [a-z] ‘ ) in
y|yes) install_wine_tricks ;;
* ) exit 0 ;;
esac
fi
# Ensuring Wine is installed.
if ! type -t » wine » & > /dev/null ; then
echo » Wine is not installed. We highly recommend installing the staging build. «
exit 0
fi
# Install winetricks in any distro.
function install_wine_tricks()
# Checking if the distro is Debian-based
if [ -f » /etc/debian_version » ] ; then
echo » We have detected that the distribution in use is based on Debian. Proceeding with the winetricks installation. «
sudo apt-get install winetricks
else
# Checking for other distros
DISTRO_INFO= » $( cut -d » = » -f2-
case $( echo $DISTRO_INFO | tr ‘ [A-Z] ‘ ‘ [a-z] ‘ ) in
arch|manjaro)
echo » We have detected that the distribution in use is based on Arch Linux. Proceeding with the winetricks installation. «
sudo pacman -Syy winetricks ;;
* )
echo » There is not built-in support for $DISTRO_INFO . Proceeding with standard installation. «
echo » This may be a little bit harder way to update their packages in the future. «
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
sudo mv winetricks /usr/bin/
esac
fi
>
if ! [ -e » ./_installer.exe » ] ; then
wget -O _installer.exe » https://ys-api-os.mihoyo.com/event/download_porter/link/ys_global/genshinimpactpc/default «
fi
. ./common
# Create Wine prefix and execute installer.
if ! [ -d » $WINEPREFIX » ] ; then
# Setup required dependencies.
winetricks —unattended vcrun2019 arial
» $WINE_BIN » » $PWD /_installer.exe «
fi
» $ server » -k
LAUNCHER_PATH= » $WINEPREFIX /drive_c/Program Files/Genshin Impact/launcher.exe «
» $WINE_BIN » » $LAUNCHER_PATH «

A script intended to make Genshin Impact run perfectly on Linux using Wine + DXVK. You need to have a Wine installation, Winetricks is automatically installed in this script.

genshin_launcher.bash then install the game. After the game installation you need to apply the patches using the apply_patches.bash script. Now you can run the game using launch_game.bash .

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

#! /bin/bash
export WINEPREFIX= » $PWD /files «
export DXVK_ASYNC=1
export DXVK_HUD=fps
export DXVK_STATE_CACHE_PATH= » $PWD /cache «
mkdir -p » $PWD » /cache
GAME_DIR= » $PWD /files/drive_c/Program Files/Genshin Impact/Genshin Impact game «
gamemoderun wine » $GAME_DIR /GenshinImpact.exe «

Источник

How to install and run Genshin Impact on Linux?

Genshin Impact is a free-to-play, open-world action role-playing video game developed by miHoYo. The game allows the player to control one of four interchangeable characters in a party. Players can switch between characters quickly during combat, this allows them to use several different combinations of skills and attacks.

The Genshin Impact game is available for Android and Windows but it is not natively available for Linux.

In this article, I will discuss how to install and run Genshin Impact on Linux operating system.

Prerequisites

To install and run Genshin Impact on Linux you should have –

  • Access to a user account with superuser privileges to download and install the required packages.
  • The latest version of Wine is installed and configured on your system.

System requirements

The minimum configuration required to play Genshin Impact is –

>>>Minimum configuration:

Processor: Intel Core i5 or equivalent

Graphics card: NVIDIA® GeForce® GT 1030 and higher or equivalent

Storage: Please reserve 30 GB of space

Install Lutris on Linux

Lutris is a free and open-source gaming platform for Linux. It provides one-click installation for games available on its website and also integrates with the Steam website.

Install Lutris on Ubuntu/LinuxMint/Pop!_OS

You can install Lutris by adding PPA to your system. Use the given commands to add PPA and install Lutris on Ubuntu and its derivatives.

sudo add-apt-repository ppa:lutris-team/lutris

RHEL/CentOS/Fedora: Install Lutris

You can use the given command to install Lutris on RHEL/CentOS.

sudo dnf install lutris-*.el8.x86_64.rpm

If you are using Fedora Linux then use –

Install Lutris in Arch Linux/Manjaro

By using the given command you can install Lutris on Arch Linux or Manjaro.

For installing Lutris on other distributions you can use visit the Lutris download page.

Install Genshin Impact on Linux

After installing the Lutris game manager on your system. Open a browser and go to the official website of lutris and click on install as it is given in the image below.

Next, you will see a pop-up click on Open Link this will open the application with Lutris as you can see in the image below. Here click on Install.

In the next window, you will be asked to Select installation directory you can browse and select the directory after selecting click on Install.

This may ask you to download some files every time click on Continue to download these files.

Once the download of these files is completed it will display to accept the license agreement and install Genshin Impact. Click on Install Now as given in the image below.

Once the installation is completed you can click on Run to start the game.

Conclusion

I hope you have successfully installed this game on your Linux system. Now if you have a query then write us in the comments below.

Источник

Запуск Genshin Impact на Linux с помощью Wine

Необязательный пункт. HUD с графиком FPS и ограничение FPS. Сделано по причине крайне маломощного процессора.

 export DXVK_FRAME_RATE=48 export DXVK_HUD=fps,gpuload,memory 

Create a file named dxvk.conf where GenshinImpact.exe resides. Example options for vsync-less (mailbox mode), tearing-free, low latency gameplay

 # Change to 3 for triple buffering (improves performance at the cost of latency) dxgi.numBackBuffers = 3 dxgi.syncInterval = 0 dxgi.tearFree = True # More performance d3d11.constantBufferRangeCheck = False d3d11.relaxedBarriers = True d3d11.invariantPosition = False d3d11.zeroWorkgroupMemory = False 

Настройка wine-префикса

 "$WINE" wineboot -u sudo winetricks --self-update winetricks corefonts winetricks dxvk winetricks usetakefocus=n 

Запускаем лаунчер игры

Подгружаем игровые файлы и выходим. Игру пока не запускаем.

 "$WINE" ~/Genshin\ Impact/launcher.exe 

Скачиваем и накатываем патч

 mkdir -p ~/Workspace/forks/ cd ~/Workspace/forks/ git clone https://notabug.org/Krock/dawn --depth 1 cd "$HOME/Genshin Impact/Genshin Impact game/" bash ~/Workspace/forks/dawn/250/patch.sh 

Если игра падает после «входа в дверь» — накатить еще один патч

 bash ~/Workspace/forks/dawn/250/patch_anti_logincrash.sh 

Игру запускать через bat-файл

Используемый патч отключает встроенный античит. Возможен бан за использование читов. Использовать на свой страх и риск.

Источник

Genshin Impact

This script uses a patch that is not supported by MiHoYo, USE IT AT YOUR OWN RISK.
You will need root rights to install this patch as it will modify /etc/hosts system file.
You will need to find, edit, and run the patch manually — outside of Lutris — after the game update has finished.
PATCH IS NOT APPLIED BY DEFAULT. To apply or revert it, right-click on the game icon/banner and select «execute script» —> https://imgur.com/D4jDdPX
This script installer needs xdelta3, xterm, zenity binaries.
If the install freezes during download, kill the «launcher.exe» process. Then launch the game from Lutris and choose option 2 in the menu «Update Genshin Impact». Once downloading and installing are completed, close the game, patch the game, start the game and choose option 1 in the menu.

As of 4/17/2023 Genshin Impact works on clean installation without any workarounds required. This installer exists for that purpose.

You already installed Genshin Impact with Lutris and just need to update your current install with latest patch.

Please follow this steps:
1) execute this script, it will install updated patch
2) update Genshin Impact to latest version (option 2) but do not launch it
3) apply new patch
To apply or revert patch, right-click on the game icon/banner and select «execute script» —> https://imgur.com/D4jDdPX

Genshin Impact is a free-to-play, open-world action role-playing gacha video game developed by miHoYo. The game features an anime-style open-world environment and an action-based battle system using elemental magic and character-switching. The game is free-to-play and is monetized through gacha game mechanics through which players can obtain new characters and weapons. The base game is expanded regularly through patches using the games as a service model.

  • Genre: Action, Adventure, Combat, Fantasy, Open World
  • Platform: Android, Nintendo Switch, Sony Playstation 4, Sony PlayStation 5, Windows
  • Website: genshin.hoyoverse.com

4303 users have this game

Источник

Читайте также:  Linux переименовать домашнюю папку
Оцените статью
Adblock
detector