Wine Gaming Scripts

booman

Grand High Exalted Mystic Emperor of Linux Gaming
Staff member
For those of you who like to manually install a game with Wine alone, Here are some script templates you can use to install your game in a wineprefix and customize what the game needs.

Scripts by: esp724
https://wiki.realmofespionage.xyz/games:wine:ffxiv

Obviously this script is for Final Fantasy, but you can copy all of the terminal commands and make adjustment to suit your game or program

Information
Prerequisites
Lutris
  • Pre-start Script
#!/bin/sh
rm -Rf '/home/espionage724/Games/final-fantasy-xiv-a-realm-reborn/drive_c/users/espionage724/My Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/web'
Install

FINAL FANTASY XIV
  • Install to default directory when prompted2)
  • After install is finished, wait about 1-2 minutes for the Terminal to finish up
mkdir -p ~/'Wine Prefixes' && wget -O ~/'Downloads/ffxivsetup.exe' 'http://gdl.square-enix.com/ffxiv/inst/ffxivsetup.exe' && WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' WINEARCH='win64' wine ~/'Downloads/ffxivsetup.exe'
Restore FFXIV Data

rm -Rf ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn' && mv -f ~/'Downloads/FINAL FANTASY XIV - A Realm Reborn' ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix' && sync
Wine Configuration
  • icon_exclaim.gif
    Staging → [x] Hide Wine version from applications3)4)
WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' winecfg
Clean Up

rm -f ~/'Downloads/ffxivsetup.exe' ~/'Desktop/FINAL FANTASY XIV - A Realm Reborn.desktop' ~/'Desktop/FINAL FANTASY XIV ONLINE.desktop' && sync
DXVK

Information
  • D3D11 to Vulkan
Download
Install

rm -rf '/tmp/dxvk-'* && cd '/tmp' && tar -xvzf ~/'Downloads/dxvk-'*'.tar.gz' && cd ~ && WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' '/tmp/dxvk-'*'/setup_dxvk.sh' install && rm -rf '/tmp/dxvk-'* && mkdir -p ~/'Wine Prefixes/FINAL FANTASY XIV/dxvk_state_cache' && sync
Settings

Browser Fix
  • SetsBrowserto1inFFXIV_BOOT.cfgto revert to the old launcher
  • icon_exclaim.gif
    This needs to be done before first-launch
mkdir -p ~/'Documents/My Games/FINAL FANTASY XIV - A Realm Reborn' && echo "Browser 1" | tee ~/'Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/FFXIV_BOOT.cfg' > '/dev/null'
nano ~/'Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/FFXIV_BOOT.cfg'
Cutscene Fix
  • SetsCutsceneMovieOpeningto1inFFXIV.cfgto workaround a blackscreen issue after selecting the datacenter and before the character-select screen
  • icon_exclaim.gif
    This needs to be done before first-launch
  • icon_exclaim.gif
    TODO: Test this
mkdir -p ~/'Documents/My Games/FINAL FANTASY XIV - A Realm Reborn' && echo "CutsceneMovieOpening 1" | tee ~/'Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/FFXIV.cfg' > '/dev/null'
nano ~/'Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/FFXIV.cfg'
Desktop Launchers

Initial

rm -Rf ~/'.local/share/applications/wine/Programs/SQUARE ENIX' && mkdir -p ~/'.local/share/applications/wine/Programs/FINAL FANTASY XIV'
FINAL FANTASY XIV
nano ~/'.local/share/applications/wine/Programs/FINAL FANTASY XIV/FINAL FANTASY XIV.desktop'
[Desktop Entry]
Name=FINAL FANTASY XIV
Comment=Hydaelyn, a vibrant planet blessed by the Light of the Cyrstal. Amid azure seas, encompassing the westernmost of the Three Great Continents, there lies a realm embraced by gods and forged by heroes. Her name - Eorzea. It is here that your tale unfolds. Beckoned by the Mothercrystal, the source of all life, you must embark upon a quest to deliver the land from an eternity of Darkness.
Categories=Game;AdventureGame;RolePlaying
Exec=env DXVK_LOG_LEVEL='none' DXVK_STATE_CACHE_PATH='/home/CHANGEME/Wine Prefixes/FINAL FANTASY XIV/dxvk_state_cache' MESA_GLSL_CACHE_DIR='/home/CHANGEME/Wine Prefixes/FINAL FANTASY XIV' WINEDEBUG=-all WINEPREFIX='/home/CHANGEME/Wine Prefixes/FINAL FANTASY XIV' wine '/home/CHANGEME/Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot/ffxivboot64.exe'
Type=Application
StartupNotify=true
Path=/home/CHANGEME/Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot
Icon=420A_FFXIV.0
Actions=Kill;Backup;Cache;

[Desktop Action Kill]
Exec=env WINEPREFIX='/home/CHANGEME/Wine Prefixes/FINAL FANTASY XIV' wineserver -k
Name=Force-close FINAL FANTASY XIV

[Desktop Action Backup]
Exec=env WINEDEBUG=-all WINEPREFIX='/home/CHANGEME/Wine Prefixes/FINAL FANTASY XIV' wine '/home/CHANGEME/Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot/ffxivconfig64.exe'
Name=UI Backup Tool

[Desktop Action Cache]
Exec=bash -c "rm -Rf ~/'Wine Prefixes/FINAL FANTASY XIV/dxvk_state_cache/'* ~/'Wine Prefixes/FINAL FANTASY XIV/mesa_shader_cache/'* ~/'Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/downloads/'* ~/'Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/FFXIV_'*'/log/'* ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot/ffxiv'*'.log' ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot/ffxiv'*'.dxvk-cache' ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/windows/temp/'* ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/users/'$USER'/Temp/'* && sync && notify-send 'The cache for FFXIV has been cleaned.'"
Name=Cache Clean-up
sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/wine/Programs/FINAL FANTASY XIV/FINAL FANTASY XIV.desktop'
Quick Commands

Winecfg

WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' winecfg
Winetricks

WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' winetricks
Registry Editor

WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' regedit
Kill

WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' wineserver -k
Execute

FINAL FANTASY XIV
cd ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot' &&
__NV_PRIME_RENDER_OFFLOAD='1' __VK_LAYER_NV_optimus='NVIDIA_only'
__NV_PRIME_RENDER_OFFLOAD='1' __VK_LAYER_NV_optimus='non_NVIDIA_only'
DXVK_HUD='full'
WINEDEBUG='-all'
WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' wine ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot/ffxivboot64.exe'
System Information

cd ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot' && WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' wine ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot/ffxivsysinfo64.exe'
UI Backup Tool

cd ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot' && WINEPREFIX=~/'Wine Prefixes/FINAL FANTASY XIV' wine ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn/boot/ffxivconfig64.exe'
File Manager

Root

gio open ~/'Wine Prefixes/FINAL FANTASY XIV/drive_c/Program Files (x86)/SquareEnix/FINAL FANTASY XIV - A Realm Reborn'
1)
https://www.finalfantasyxiv.com
2)
C:\Program Files (x86)\SquareEnix\FINAL FANTASY XIV - A Realm Reborn
3)
this allows FFXIV to use Windows licenses
4)
if Wine is detected, FFXIV switches to macOS licensing instead since that version uses CrossOver
 
Back
Top