Modding:Installing SMAPI on Android

From Stardew Valley Wiki
Revision as of 20:12, 20 July 2022 by Pathoschild (talk | contribs) (update header template)
Jump to navigation Jump to search

This page explains how to install SMAPI (the tool which lets you use mods) on Android.

See instructions for: LinuxmacOSSteam DeckWindows.

Install

  1. Download the latest installer APK file (the file under "Assets" that ends with .apk).
  2. Install the APK on your phone.
  3. Run the new app to install SMAPI. This may take a while depending on your device (e.g., 21s on a Samsung Galaxy S10, and 1 minute 13s on a Samsung Galaxy S6).
  4. When it's done, you can safely uninstall the installer app.

That's it! Just launch the game to play with mods.

Update

Just follow the install steps again; the installer will automatically clean up previous versions.

Uninstall

  1. Uninstall the SMAPI Stardew Valley app.
  2. Uninstall the SMAPI installer.
  3. Manually delete the smapi-internal folder from the StardewValley game folder.

FAQs

How do I add and use mods?

Once SMAPI is installed, install mods by unzipping them into the newly-created StardewValley/Mods folder. To launch the game with mod support, just run the SMAPI Stardew Valley icon or tap the floating action button in the installer app.

Why is there a separate SMAPI for Android?

The Android version of the game is very custom compared to other platforms, so the official version of SMAPI isn't compatible. There's a port of SMAPI to Android developed by MartyrPher and later ZaneYork (see main source code and installer source code). It supports most SMAPI mods and content packs (including framework mods like Content Patcher, Farm Type Manager, Json Assets, and PyTK), but some mods may not be compatible.

How do I use mods that need Stardew Valley 1.5?

Stardew Valley 1.5 isn't released on Android yet, so you'll need older versions of many mods. Here's how to find a compatible version for most mods:

  1. Try the latest version.
  2. From the Nexus mod page, click the Files tab to find all available versions.
  3. Check under "Main Files" and "Optional Files":
    1. Try the latest file which...
      • says it's for Android;
      • or says it's for Stardew Valley 1.4;
      • or says it's for SMAPI 3.7.6 or earlier;
      • or was uploaded before 21 December 2020.
  4. Check under "Old Files" (if present):
    1. Change the sort to "Date Uploaded" and "Desc".
    2. Try the latest file which...
      • says it's for Stardew Valley 1.4;
      • or says it's for SMAPI 3.7.6 or earlier;
      • or was uploaded before 21 December 2020.
  5. Check the archived files (if any):
    1. If there's a "File Archive" button at the bottom of the page, click it.
    2. Try the latest file which matches the previous step. You can run this script in your JavaScript console to add download links:
      script to add download links 
      (function() {
          const gameId = $("#section").attr("data-game-id");
          const downloadElements = $("#file-container-archived-files [data-id]");
      
          for (let element of downloadElements) {
              element = $(element);
              const description = element.find(".files-description");
              const fileId = element.attr("data-id");
      
              const html = `
                  <div class="tabbed-block">
                      <ul class="accordion-downloads clearfix">
                          <li>
                              <a class="btn inline-flex popup-btn-ajax" href="/Core/Libs/Common/Widgets/DownloadPopUp?id=${fileId}&nmm=1&game_id=${gameId}">
                                  <svg title="" class="icon icon-nmm">
                                      <use xlink:href="https://www.nexusmods.com/assets/images/icons/icons.svg#icon-nmm"></use>
                                  </svg>
                                  <span class="flex-label">Mod manager download</span>
                              </a>
                          </li>
                          <li>
                          </li>
                          <li>
                              <a class="btn inline-flex popup-btn-ajax" href="/Core/Libs/Common/Widgets/DownloadPopUp?id=${fileId}&game_id=${gameId}">
                                  <svg title="" class="icon icon-manual">
                                      <use xlink:href="https://www.nexusmods.com/assets/images/icons/icons.svg#icon-manual"></use>
                                  </svg>
                                  <span class="flex-label">Manual download</span>
                              </a>
                          </li>
                      </ul>
                  </div>
              `;
      
              $(html).insertAfter(description);
          }
      })();
      
      Note: downloading archived mod versions is at your own risk, and mod authors often won't provide support for them.
  6. If you didn't find a matching file, try checking the mod comments or posting a new comment.