Tech note: MapleSaga on Arch Linux

My experience from 2018-2021 running MapleSaga on Arch Linux.

Install:

If using PulseAudio, install also lib32-libpulse and lib32-alsa-plugins.

Optionally install:

Create wine directory for win32:

WINEARCH=win32 WINEPREFIX=~/.maplesaga winecfg

Within wine configuration window:

Enable font smoothing:

cat << EOF > /tmp/fontsmoothing
REGEDIT4

[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothing"="2"
"FontSmoothingOrientation"=dword:00000001
"FontSmoothingType"=dword:00000002
"FontSmoothingGamma"=dword:00000578
EOF

WINEPREFIX=~/.maplesaga wine regedit /tmp/fontsmoothing 2> /dev/null

rm /tmp/fontsmoothing

Install MapleSaga:

WINEPREFIX=~/.maplesaga wine saga_setup.exe

Get ws2_32.dll and ws2help.dll. Place these files in $HOME/.maplesaga/drive_c/windows/system32/.

Set compatibility mode for MapleSaga.exe to Windows 98 in winecfg.

Create an executable shell script with the following content and place it in $PATH:

#!/usr/bin/env bash

if [ "$1" = "-k" ]
then
  pgrep -i maple | xargs kill
  exit 0
fi

env WINEDEBUG=fixme-all WINEDLLOVERRIDES=mshtml=d WINEPREFIX="/home/raphx/.maplesaga" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/raphx/.maplesaga/dosdevices/c:/users/Public/Desktop/MapleSaga.exe.lnk

Cleaning up:

rm -rf ~/.config/menus
rm -rf ~/.local/share/applications/wine
rm -rf ~/.local/share/desktop-directories
rm -rf ~/.local/share/icons
rm -rf ~/.maplesaga
rm -rf ~/.cache/winetricks

Remove: