This gist is deprecated. You can find the latest instructions here.
Check whether it's already enabled:
$ locale -a | grep ja
If you see something like this, you can proceed to the next step.
ja_JP
ja_JP.eucjp
ja_JP.shiftjis
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
If not, create the locale file:
$ sudo touch /var/lib/locales/supported.d/ja
And write these lines into it:
ja_JP.UTF-8 UTF-8
ja_JP.EUC-JP EUC-JP
ja_JP SJIS
Next, run this command:
$ sudo dpkg-reconfigure locales
You can ignore the SJIS error.
$ sudo apt install -y fonts-takao fonts-vlgothic fonts-horai-umefont fonts-mona fonts-monapo
Install wine following the official instructions.
Get the latest version of winetricks:
$ curl -O https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
$ chmod +x winetricks
$ sudo mv winetricks /usr/local/bin
You might also need to install cabextract:
$ sudo apt install -y cabextract
$ export WINEARCH=win32
$ export WINEPREFIX="$HOME/.local/share/wineprefixes/wa2"
$ mkdir -p "$WINEPREFIX" && wineboot -u
Install wine-mono and wine-gecko if prompted.
Copy the files to the wineprefix:
(assuming you have them in your home folder)
$ cd "$WINEPREFIX"
$ cp -r "$HOME/WHITE ALBUM2" "drive_c/Program Files"
Apply a registry edit to act like the game has been installed:
$ curl -o wa2.reg https://ghostbin.com/paste/r627o/download
$ wine regedit wa2.reg
You can now proceed to the next step.
Mount the WA2 disks in /tmp:
(assuming you have them in your home folder)
$ mkdir -p /tmp/disk{1..2}
$ sudo mount "$HOME/WHITE_ALBUM2_1.mdf" /tmp/disk1
$ sudo mount "$HOME/WHITE_ALBUM2_2.mdf" /tmp/disk2
Now, mount them in the wineprefix:
$ cd dosdevices
$ ln -s /tmp/disk1 x:
$ ln -s /tmp/disk2 y:
$ ln -s "$HOME/WHITE_ALBUM2_1.mdf" x::
$ ln -s "$HOME/WHITE_ALBUM2_2.mdf" y::
Run the setup:
$ cd x:
$ LANGUAGE=ja_JP LANG=ja_JP.eucjp wine setup.exe
Note: You can set an alias to run programs with Japanese locale by adding the following line to your .bashrc file:
alias winejp='LANGUAGE=ja_JP LANG=ja_JP.eucjp wine'
Enable opengl:
$ winetricks settings ddr=opengl
Install requirements:
$ winetricks lucida
$ winetricks devenum
$ winetricks d3dx9
$ winetricks quartz
$ winetricks wmp10
The installation of wmp10 may hang after it's finished. You can terminate it with Ctrl + C.
Install wget:
$ sudo apt install -y wget
Download the latest stable release of the installer:
$ wget -O WA2_patch.exe `curl -s \
https://api.github.com/repos/ObserverOfTime/WA2EnglishPatch/releases/latest \
| grep browser_download_url | cut -d '"' -f 4`
Or, the latest release including nightly builds:
$ wget -O WA2_patch.exe `curl -s \
https://api.github.com/repos/ObserverOfTime/WA2EnglishPatch/releases \
| grep browser_download_url | cut -d '"' -f 4 | head -1`
Run the installer:
$ wine WA2_patch.exe
You should now be able to launch the game with this:
$ LIBGL_ALWAYS_SOFTWARE=1 wine WA2_en.exe
LIBGL_ALWAYS_SOFTWARE=1
is necessary to be able to run the game. You can set an alias for it by writingalias winegl='LIBGL_ALWAYS_SOFTWARE=1 wine'
in your.bashrc
file and then run the game withwinegl WA2_en.exe
.
Well, Now I cannot fullscreen the games, or it will also crash...