Skip to content

Instantly share code, notes, and snippets.

@ObserverOfTime
Last active May 20, 2024 15:22
Show Gist options
  • Select an option

  • Save ObserverOfTime/a0666b817f4f3c7e593bb5e8c08f5218 to your computer and use it in GitHub Desktop.

Select an option

Save ObserverOfTime/a0666b817f4f3c7e593bb5e8c08f5218 to your computer and use it in GitHub Desktop.

Revisions

  1. ObserverOfTime revised this gist May 9, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    # Install and patch White Album 2 on Mac

    **This gist is deprecated. You can find the latest instructions [here](https://todokanaitl.github.io/wa2-wine/).**

    ## 1: Japanese locale and fonts

    Japanese locale should be enabled by default on Mac.
  2. ObserverOfTime revised this gist Jan 23, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -122,6 +122,8 @@ You can set an alias for it by writing `alias winegl='LIBGL_ALWAYS_SOFTWARE=1 wi

    ## Links

    - [Wine AppDB Entry](https://appdb.winehq.org/objectManager.php?sClass=version&iId=29024)

    - [Todokanai TL Website](https://todokanaitl.wordpress.com/)

    - [Todokanai TL Discord](https://discord.me/todokanaitl)
  3. ObserverOfTime revised this gist Jan 20, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -132,7 +132,7 @@ You can set an alias for it by writing `alias winegl='LIBGL_ALWAYS_SOFTWARE=1 wi

    ## Other platforms

    - [Instructions for Ubuntu](https://gist.github.com/ObserverOfTime/2594e37dad16373637ddd5befada6aac))
    - [Instructions for Ubuntu](https://gist.github.com/ObserverOfTime/2594e37dad16373637ddd5befada6aac)

    ## Credits

  4. ObserverOfTime revised this gist Jan 20, 2018. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -130,6 +130,10 @@ You can set an alias for it by writing `alias winegl='LIBGL_ALWAYS_SOFTWARE=1 wi

    - [Patch Issue Tracker](https://github.com/ObserverOfTime/WA2EnglishPatch/issues)

    ## Other platforms

    - [Instructions for Ubuntu](https://gist.github.com/ObserverOfTime/2594e37dad16373637ddd5befada6aac))

    ## Credits

    - https://forum.ubuntu.com.cn/viewtopic.php?p=3108761#p3108761
  5. ObserverOfTime revised this gist Jan 20, 2018. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -130,13 +130,8 @@ You can set an alias for it by writing `alias winegl='LIBGL_ALWAYS_SOFTWARE=1 wi

    - [Patch Issue Tracker](https://github.com/ObserverOfTime/WA2EnglishPatch/issues)

    ## Other platforms

    - [Instructions for Ubuntu](https://gist.github.com/ObserverOfTime/2594e37dad16373637ddd5befada6aac)

    ## Credits

    - https://forum.ubuntu.com.cn/viewtopic.php?p=3108761#p3108761

    - https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/opengl-vulkan-mesa-gallium3d/24959-updated-and-optimized-ubuntu-free-graphics-drivers/page41

  6. ObserverOfTime revised this gist Jan 20, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -132,10 +132,11 @@ You can set an alias for it by writing `alias winegl='LIBGL_ALWAYS_SOFTWARE=1 wi

    ## Other platforms

    - [Instructions for Ubuntu](https://gist.github.com/ObserverOfTime/7c3b7f004838363ca3c25e6718679d42)
    - [Instructions for Ubuntu](https://gist.github.com/ObserverOfTime/2594e37dad16373637ddd5befada6aac)

    ## Credits

    - https://forum.ubuntu.com.cn/viewtopic.php?p=3108761#p3108761

    - https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/opengl-vulkan-mesa-gallium3d/24959-updated-and-optimized-ubuntu-free-graphics-drivers/page41

  7. ObserverOfTime revised this gist Jan 20, 2018. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -130,6 +130,10 @@ You can set an alias for it by writing `alias winegl='LIBGL_ALWAYS_SOFTWARE=1 wi

    - [Patch Issue Tracker](https://github.com/ObserverOfTime/WA2EnglishPatch/issues)

    ## Other platforms

    - [Instructions for Ubuntu](https://gist.github.com/ObserverOfTime/7c3b7f004838363ca3c25e6718679d42)

    ## Credits

    - https://forum.ubuntu.com.cn/viewtopic.php?p=3108761#p3108761
  8. ObserverOfTime revised this gist Jan 20, 2018. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -111,10 +111,12 @@ $ cd "$WINEPREFIX/drive_c/Program Files/Leaf/WHITE ALBUM2"
    $ mv "$HOME/Downloads/WA2_patch.exe" .
    $ wine WA2_patch.exe
    ```
    You should now be able to launch the game:
    You should now be able to launch the game with this:
    ```
    $ wine WA2_en.exe
    $ 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 writing `alias winegl='LIBGL_ALWAYS_SOFTWARE=1 wine'` in your `.bashrc` file and then run the game with `winegl WA2_en.exe`.

    #### That's it!

    @@ -131,3 +133,5 @@ $ wine WA2_en.exe
    ## Credits

    - https://forum.ubuntu.com.cn/viewtopic.php?p=3108761#p3108761

    - https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/opengl-vulkan-mesa-gallium3d/24959-updated-and-optimized-ubuntu-free-graphics-drivers/page41
  9. ObserverOfTime revised this gist Dec 31, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -62,7 +62,7 @@ Apply a registry edit to act like the game has been installed:
    $ curl -o wa2.reg https://ghostbin.com/paste/r627o/download
    $ regedit wa2.reg
    ```
    You can now proceed to the [next step](https://gist.github.com/ObserverOfTime/<hash>#5-configure-wine).
    You can now proceed to the [next step](https://gist.github.com/ObserverOfTime/a0666b817f4f3c7e593bb5e8c08f5218#5-configure-wine).

    ### If you haven't installed the game before:

  10. ObserverOfTime created this gist Dec 31, 2017.
    133 changes: 133 additions & 0 deletions WA2-Mac.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,133 @@
    # Install and patch White Album 2 on Mac

    ## 1: Japanese locale and fonts

    Japanese locale should be enabled by default on Mac.

    You can check by running:
    ```
    $ locale -a | grep ja
    ```
    Which should return something like this:
    ```
    ja_JP
    ja_JP.eucJP
    ja_JP.SJIS
    ja_JP.UTF-8
    ```
    Japanese fonts should also be preinstalled but, alas, they don't seem to work 100% in wine.

    You could install more fonts in hopes of getting one to work properly but I personally didn't bother.

    ## 2: Install wine and winetricks

    Install [XQuartz 2.7.9](https://www.xquartz.org/releases/XQuartz-2.7.9.html) (newer releases have font issues).

    Download [wine](https://dl.winehq.org/wine-builds/macosx/download.html) (any version you want) and run the installer.

    Get the latest release of winetricks:
    ```
    $ curl -O https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
    $ chmod +x winetricks
    $ sudo mv winetricks /usr/local/bin
    ```

    ## 3: Create a wineprefix for the game

    Run the wine application, which will launch a terminal window.

    There, type the following commands:

    ```
    $ export WINEARCH=win32
    $ export WINEPREFIX="$HOME/.local/share/wineprefixes/wa2"
    $ mkdir -p "$WINEPREFIX" && wineboot -u
    ```
    Install wine-mono and wine-gecko if prompted.

    ## 4: Install the game

    ### If you've already installed the game elsewhere:

    Copy the files to the wineprefix:

    *(assuming you have them in your home folder)*
    ```
    $ cd "$WINEPREFIX"
    $ mkdir "drive_c/Program Files/Leaf"
    $ cp -r "$HOME/WHITE ALBUM2" "drive_c/Program Files/Leaf"
    ```
    Apply a registry edit to act like the game has been installed:
    ```
    $ curl -o wa2.reg https://ghostbin.com/paste/r627o/download
    $ regedit wa2.reg
    ```
    You can now proceed to the [next step](https://gist.github.com/ObserverOfTime/<hash>#5-configure-wine).

    ### If you haven't installed the game before:

    Mount the disks. To do that, rename both .mdf files to .iso and double click them.

    Now, mount them in the wineprefix:

    *(assuming you have them in your home folder)*
    ```
    $ cd "$WINEPREFIX/dosdevices"
    $ ln -s /Volumes/WHITE_ALBUM2_1 x:
    $ ln -s /Volumes/WHITE_ALBUM2_2 y:
    $ ln -s "$HOME/WHITE_ALBUM2_1.iso" x::
    $ ln -s "$HOME/WHITE_ALBUM2_2.iso" y::
    ```
    Run the setup:
    ```
    $ cd /Volumes/WHITE_ALBUM2_1
    $ LC_ALL=ja_JP wine setup.exe
    ```
    Some glyphs will show up as squares but most will be fine.

    ## 5: Configure 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.

    ## 6: Install the patch

    Download the latest release of the [installer](https://github.com/ObserverOfTime/WA2EnglishPatch/releases).

    Move it to the White Album 2 directory and run it:
    ```
    $ cd "$WINEPREFIX/drive_c/Program Files/Leaf/WHITE ALBUM2"
    $ mv "$HOME/Downloads/WA2_patch.exe" .
    $ wine WA2_patch.exe
    ```
    You should now be able to launch the game:
    ```
    $ wine WA2_en.exe
    ```

    #### That's it!

    ## Links

    - [Todokanai TL Website](https://todokanaitl.wordpress.com/)

    - [Todokanai TL Discord](https://discord.me/todokanaitl)

    - [Patch Source Code](https://github.com/ObserverOfTime/WA2EnglishPatch)

    - [Patch Issue Tracker](https://github.com/ObserverOfTime/WA2EnglishPatch/issues)

    ## Credits

    - https://forum.ubuntu.com.cn/viewtopic.php?p=3108761#p3108761