Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Wine Steam

**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND**
Install Wine Steam on Linux without pain and hassle.

> Works great with NEOTOKYO.
Expand All @@ -8,16 +8,17 @@ Install Wine Steam on Linux without pain and hassle.
## Contents
1. [Prerequisites](#prerequisites)
2. [Usage](#usage)
3. [Tools](#tools)
3. [To apply patches or not? ](to-apply-patches-or-not)
4. [Tools](#tools)
- [Adding as an App](#adding-as-an-app)
- [Winetricks](#winetricks)
- [Prefix Configuration](#prefix-configuration)
- [4GB Patcher](#4gb-patcher)
- [DXVK Patch](#dxvk-patch)
- [Visual C++ Runtimes Installer](#visual-c-runtimes-installer)
- [NEOTOKYO° 4GB patcher](#neotokyo-4gb-patcher)
3. [Install Location](#install-location)
4. [Known issues](#known-issues)
5. [Install Location](#install-location)
6. [Known issues](#known-issues)
- [NEOTOKYO° issues](#neotokyo-issues)

## Prerequisites
Expand All @@ -28,18 +29,27 @@ Install Wine Steam on Linux without pain and hassle.

## Usage

Simply run `bash winesteam.sh`!
Simply run `bash winesteam.sh` or `bash altwinesteam.sh` (to know wich one to run read [To apply patches or not? ](to-apply-patches-or-not))

The utility starts Steam if the installation is complete or runs the setup if otherwise.

During setup a Wine configuration menu may appear. It is recommended that you enable `Graphics` -> `Emulate a virtual desktop` for better image quality in games and to always have an equivalent of windowed fullscreen mode regardless of game settings (recommended setting for NEOTOKYO°). If you're unsure of what to change, just click `OK`.

If you're unable to log into Steam via QR code, try restarting and using manual log in instead. Sometimes it may take several tries to log in.

It is recommended to use `View` -> `Small Mode` in Steam to minimize crashes and bugs.
It is recommended to use `View` -> `Small Mode` in Steam to minimize crashes and bugs. [Known issues](#known-issues)

Read [Adding as an App](#adding-as-an-app) for adding Wine Steam to your applications launcher.

## To apply patches or not?
This script includes two patches ([1](#dxvk-patch) [2](#visual-c-runtimes-installer) ) that are either required to even launch steam or might break your entire wine prefix!

What seems to cuase (or not) issues is driver in use, proprietary nvida drivers for newer cards (10 series and up) seem to not need the patches, it will probably break your prefix. (use `winesteam.sh` and continue as normal)

Nouveau open source driver as well as proprietary nvida driver for older cards (tested on GTX 750 ti) and possibly amd drivers? (not tested) seem to not even launch steam without the patches (use `altwinesteam.sh` or run normal setup and apply patches manually)

Great way to check if you need patches or not is to run NEOTOKYO with proton using native steam (if you can play local maps then run the patches)

## Tools

### Adding as an App
Expand Down Expand Up @@ -90,6 +100,10 @@ The script is using [`4gbpatch.sh`](#4gb-patcher).

After the setup, the prefix is located at `.winesteam/prefix` in your home directory.

## Uninstall
To uninstall winesteam simply run `rm -dir .winesteam/` in your home directory.
*NOTE: this will remove everything from prefix and will be impossible to recover*

## Known issues

- Steam client is laggy.
Expand All @@ -104,7 +118,9 @@ After the setup, the prefix is located at `.winesteam/prefix` in your home direc
- Fixed by applying the [DXVK patch](#dxvk-patch).
- Broken font.
- Are you sure you didn't skip font installation by accident?
- While running command `!motd` on BonAHNSa server, game crashes with C++ runtime error.
- Fixed by running the [Visual C++ Runtimes Installer](#visual-c-runtimes-installer). **This installer is known to break NEOTOKYO° online games entirely on some systems, make sure to back up your prefix before using it**.
- While running command `!motd` on BonAHNSa server, game crashes with C++ runtime error (will fix the crash but window will not display anything, you can read it on BonAHNSa's website)
- Fixed by running the [Visual C++ Runtimes Installer](#visual-c-runtimes-installer). **This installer is known to break NEOTOKYO° online games entirely on some systems, make sure to back up your prefix before using it** ([To apply patches or not? ](to-apply-patches-or-not)).
- While changing maps error "Couldn't CRC map `map name.bsp` disconnecting." This error appears on windows as well as on linux in some source games. To fix it download the map manually and put it inside`NEOTOKTO` -> `NeotokyoSource` -> `maps` (for quick acces to game file click on game properties and on "browse local files"), if asked to replace file say yes.
if playing on BonAHNSa template for map file download would look like this:`https://bonahnsa.site.nfoservers.com/neotokyo/maps/nt_map_name_ctg.bsp`.

#### Made with 💜 by Gleammer.
58 changes: 58 additions & 0 deletions altwinesteam.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#! /bin/bash
cd `dirname $0`
export WINEARCH=win64
export WINESTEAM_BIN="$PWD"
export WINESTEAM_DATA="$HOME/.winesteam"
export WINESTEAM_PKGS="$WINESTEAM_DATA/packages"
export WINEPREFIX="$WINESTEAM_DATA/prefix"
export WINE_LARGE_ADDRESS_AWARE=1
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
if [ ! -d "$WINESTEM_DATA" ]; then mkdir -p "$WINESTEAM_DATA"; fi
if [ -d "$PWD/prefix" ]; then mv "$PWD/prefix" "$WINESTEAM_DATA"; fi
if [ -d "$PWD/packages" ]; then mv "$PWD/packages" "$WINESTEAM_DATA"; fi
if [ -d "$WINEPREFIX" ]; then
wine "$WINEPREFIX/drive_c/Program Files (x86)/Steam/steam.exe"
exit
fi
echo " ______________________________________________"
echo "| / * / \ * |"
echo "| \ / \ * / * \ |"
echo "| / \ * / \ / / |"
echo "| __________ ___________ |"
echo "| / \ / \ |"
echo "| / _______ \ / | |"
echo "| / / \ \ / _________/ |"
echo "| | / __ \ \___/ / |"
echo "| | | / \ | / |"
echo "| | \ \__/ / ___ \ |"
echo "| \ \ / / \ \_________ |"
echo "| \ \_____/ / \ \ |"
echo "| \ / \ | |"
echo "| \_________/ \___________/ |"
echo "| |"
echo "| Steamy Fish |"
echo "|______________________________________________|"
echo
echo "----------> [ Wine Steam installer ] <----------"
echo -e "\e[41m !! THIS IS AN ALTERNATE INSTALLER BE SURE DO READ README.MD BEFORE RUNNING IT !! (to exit press Ctrl+C)\e[0m"
echo '[0/7] Performing first time setup. [!]'
echo '[1/7] Creating a wine prefix... [⌂]'
mkdir -p "$WINEPREFIX";
winecfg
echo '[2/7] Installing allfonts... [Æ]'
winetricks allfonts
echo 'Almost there! 【=˶◕‿↼˶✿=】'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete, twice the same massage

echo '[3/7] [0/1] Downloading packages. [⟱]'
if [ ! -d "$WINESTEAM_PKGS" ]; then mkdir -p "$WINESTEAM_PKGS"; fi
cd "$WINESTEAM_PKGS"
if [ ! -f ./SteamSetup.exe ]; then
echo '[4/7] Installing Visual C++ runtimes... [⚙]'
bash vcruntimes.sh
echo echo '[5/7] Applying DXVK patch. [⚙]'
bash dxvkpatch.sh
echo '[6/7] [1/1] Downloading Steam setup... [⟱]'
wget https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe
fi
echo 'Almost there! 【=˶◕‿↼˶✿=】'
echo '[7/7] Running Steam setup... [🮲🮳]'
wine "$WINESTEAM_PKGS/SteamSetup.exe"