Difference between revisions of "Modding:Installing SMAPI on Android"

From Stardew Valley Wiki
Jump to navigation Jump to search
(→‎Audio Mods: How To: rm stub template)
m
Line 31: Line 31:
 
# Enjoy your modified music!
 
# Enjoy your modified music!
  
Spreadsheet of all of the .wav files mapped to their internal file names:
+
Spreadsheet of all of the .wav files from the .obb mapped to their internal file names:
 
https://docs.google.com/spreadsheets/d/1K3S8YDS4Tfe_LPtyXA9LaVM8edxvDFkwfNl-ql1kFGM/edit?usp=drivesdk
 
https://docs.google.com/spreadsheets/d/1K3S8YDS4Tfe_LPtyXA9LaVM8edxvDFkwfNl-ql1kFGM/edit?usp=drivesdk
 
[[Category:Modding]]
 
[[Category:Modding]]

Revision as of 00:06, 23 March 2019

Before You Begin

Mod at your own risk, not all mods will be compatible with Android. User has the full responsibility of ensuring they do not cause damage by following this guide.

Where To Obtain The APK

Unfortunately sourcing the apk from third party websites is not recommended as it can be unsafe and can pose a risk to your device. However, the apk can be taken directly from your device, providing you have root access. It can be located at /data/app/com.chucklefish.stardewvalley-1/base.apk

XNB Mods: How To

  1. Install zip program of your choice. Recommended: 7zip.
  2. Install JDK 8.
  3. Install Android Studio, make sure to install build-tools.
  4. Install APK Signer Tool (v2).
  5. Extract the Stardew Valley apk to your computer with zip program.
  6. Replace the Vanilla XNBs (found in ./assets/Content/) with the Modded XNBs.
  7. Archive the contents of the Stardew Valley apk with your chosen zip program (Make sure to not archive the folder containing the files, but the files themselves, so the file structure is com.yourchosenapk.name.apk\different files and folders here), rename from .zip to .apk.
  8. Open APK Signer Tool (v2)
  9. Fill out all fields in Keyfile Generator page. (Fill as you wish, these aren't important as long as they are filled).
  10. Click Align & Sign tab. Browse for the modded .apk
  11. Select key, and fill out appropriate fields
  12. Click Align and Sign
  13. Wait a few moments
  14. Move apk to device and install

Audio Mods: How To

  1. Download both unxwb (Link TBU, program created by Luigi Auriemma), and XWBTool (Link TBU, found on Microsoft's GitHub) and extract both of them to your working directory.
  2. Copy over the .obb from your phone's internal storage to your working directory. The OBB can be found at Internal Storage/Android/obb/main.2.com.chucklefish.stardewvalley.obb
  3. To unpack simply run unxwb main.2.com.chucklefish.stardewvalley.obb in Command Prompt which should output 87 files named 00000000.wav etc... It is highly recommended for cleanliness to move the unpacked .wav files to a separate folder.
  4. Replace any of the files with audio of your choosing, however you MUST keep the file names the same.
  5. To repack, simply run XWBTool "wherever you extracted and moved the .wavs to/*.wav" -o Music.xwb (The output file must be called Music.xwb when repacking). Then rename Music.xwb to main.2.com.chucklefish.stardewvalley.obb.
  6. Move the now modified .obb back to Internal Storage/Android/obb/main.2.com.chucklefish.stardewvalley.obb.
  7. Enjoy your modified music!

Spreadsheet of all of the .wav files from the .obb mapped to their internal file names: https://docs.google.com/spreadsheets/d/1K3S8YDS4Tfe_LPtyXA9LaVM8edxvDFkwfNl-ql1kFGM/edit?usp=drivesdk