Protontricks

Configure the P4G wineprefix and install the prerequisite runtimes.

Now that we have our flatpaks installed, we'll configure them and install our prerequisite runtimes.

Create Wineprefix

P4G must be launched at least once so Steam can create a wineprefix for it.

Important Terms
  • Wineprefix: A directory that contains a "mini-Windows" system for a program on Linux. It contains compatibility configurations and an entire filesystem that mimics a Windows setup.

  • Launch P4G through Steam. This will create a wineprefix directory for the game.

  • Once you reach the main menu, quit the game.

If for some reason you can't reach the main menu, DO NOT CONTINUE!

Something is wrong with your P4G game install or Steam Deck that has nothing to do with mods or this guide. You'll need to resolve that before installing mods for the game.

Grant Filesystem Access

By default, Protontricks has limited access to your Steam Deck's filesystem.

This is great for security, but since we're modding a game we'll need to open up access to your user files and microSD card.

Launch Flatseal

  • Close Discover if it is still open.

  • Open the application launcher and launch Flatseal under the Utilities tab.

Grant Filesystem Access

  • In the small menu on the left, find and select Protontricks.

Grant Internal Storage Access

  • In the big window on the right, scroll down through the configuration to the Filesystem section.

    • Enable All user files.

This will give Protontricks access to your user files in /home/, including your P4G-Mods directory.

Grant microSD Card Access

Do not skip this step, even if P4G is not installed on your microSD card!

Protontricks will whine (pun intended) about not having access if you don't grant it.

  • Under Filesystem > Other files, click the Add directory button on the right (folder with a plus sign).

    • In the empty box that appears, enter /run/media.

This will give Protontricks access to your microSD card files and games.

Some scary exclamation marks appeared!

Don't worry! Those just indicate that you've made changes from the default configuration.

  • When you are finished, close Flatseal. Your changes will automatically save.

Show Dot Files

On Linux, you can hide a file or directory by adding a "dot" to the start of its name (eg {.hidden").

We're going to be accessing hidden directories as part of the modding process, so we'll configure Protontricks to show "dot files."

Important Terms
  • Runtime: A library of functions and instructions that your PC executes while a program is running. Many games and programs share the same common runtimes.

  • Visual C++: Microsoft's version of the C++ programming language.

  • .NET: A free cross-platform software framework by Microsoft.

Launch Protontricks

  • Open the application launcher and launch Protontricks under the Utilities tab.

  • A list of your installed Steam games will appear. Select Persona 4 Golden and click OK.

If you can't find Persona 4 Golden in the list, you forgot to run the game earlier!

Enable Dot Files

You'll now be in the Winetricks menu for P4G. It might take a few seconds to open.

Open Winecfg

  • In the first menu, click Select the default prefix, then click OK.

  • In the second menu, click Run winecfg, then click OK.

Configure Wine

You'll now be in the Wine configuration menu for P4G. We're nearly done here!

  • Select the Drives tab at the top of the window.

  • Enable Show dot files in the bottom left of the window.

  • Click Apply, then OK.

Whew, we're all done here!

  • Go ahead and close the Wine configuration window,

    • then close the Winetricks window that appears,

      • and finally close the Protontricks window that appears after that.

Install Prerequisite Runtimes

Remember those prerequisite runtimes you downloaded a while ago? It's time to install them!

Important Terms
  • Runtime: A library of functions and instructions that your PC executes while a program is running. Many games and programs share the same common runtimes.

  • Visual C++: Microsoft's version of the C++ programming language.

  • .NET: A free cross-platform software framework by Microsoft.

Install First Prerequisite

Launch Prerequisite Installer

  • Open your /P4G-Mods/Setup/ directory.

  • Right-click the Visual C++ (x64) Redistributable (vc_redist.x64.exe) and select Open with Protontricks Launcher.

If you don't see Open with Protontricks Launcher, select Open With and manually select Utilities > Protontricks from the menu that appears.

  • In the Protontricks window, select Persona 4 Golden and click OK.

Install Prerequisite

  • Once the installer window appears (it may take a few seconds), follow the instructions on-screen to install the runtime to your P4G wineprefix.

Install Remaining Prerequisites

  • Repeat the above instructions for the rest the prerequisites in the Setup folder:

    • Visual C++ Redistributable (x86)

    • .NET 8 Desktop Runtime (x64)

    • .NET 8 Desktop Runtime (x86)

Once all four prerequisites are installed to your P4G wineprefix, you're ready to move on.

Moving On

Last updated