Stardew Valley
0 of 0

File information

Last updated

Original upload

Created by

zwei7

Uploaded by

zwei7

Virus scan

Safe to use

Tags for this mod

About this mod

An XACT (a program) template for those who want to add custom music to Stardew Valley 1.5.4 without wasting all your ram by using the CustomMusic Mod.

Permissions and credits
Changelogs
Donations
Edit: 2021-12-31
If you have Stardew 1.5.5+ you don't need this mod!

The new Stardew 1.5.5 and beyond are now 64-bit does not need this mod to save ram and prevent crashes. It is way more stable and has a lot of legroom making this ram saving mod obsolete. The only reason I would see this mod mod sticking around is if you still use stardew 1.5.4 or older or you want to make a custom sound track for your 1.5.4 or older game.

Original
Who is this file for?
People who have 300+ mods, maybe 1000+ mods, and they contantly get the SMAPI red text OUT.OF.MEMORY.EXCEPTION or CORRUPT.MEMORY and have not realized they have too many mods using up all their gigabytes of RAM. Yes you have too many mods and that is why you cannot save your game and it crashes, even though you made sure you updated all your mods and made sure they were all compatible with each other.

Stardew Valley 32-bit Limitations
Stardew is a 32-bit application and shares its ram with all the other 32 bit apps on your PC. Problem is 32-bit apps have to share a piddly 4 GB of RAM (4000MB) on your PC so even if you have 16 GB or, hell 64 GB, Stardew is at the mercy of all your 32-bit programs. You can uninstall your 32-bit programs, end task them before you play Stardew, use fewer mods, or replace original stardew valley files (XNB, XWB, etc). One way to save your ram is to remove CUSTOM MUSIC MODS. SVE includes/requires the custom music mod and it is ok to have it... but you may have downloaded all the other musical packs because you want to mod to the max. The music packs are using all your ram!

Stardew 64-bit future
There is a Windows 64-bit version of Stardew made from a Linux version of Stardew, but it is a pretty pain in the ass to create, unstable, crashy, and suffers from performance issues. It can support unlimited mods and use all your 1.82 exabytes of ram. The developer PathosChild (the guy who made SMAPI) and the gang are working hard on it so give them some time. If you want to play Stardew now and live under the 4 GB RAM limit then this mod could save you some RAM.

How much ram does the Custom Music Mod + 1 Music Content Mod use?
I personally love the Piano Valley mod so here is an example.
Ram Usage 1164-1243 MB (3 mods: Piano Valley, Custom Music, Generic Config Menu)
Ram Usage 686-769MB (0 mods)
This test was run by going to bed every day in Stardew Valley at 6 AM, yes AM, over the course of 1 in-game year and looking at the Windows Task Manager's Memory column. Realistically Stardew will crash and won't be able to save at 3300 MB, and I have very few 32-bit programs stealing Stardew's ram. The only way to save is to quit your Stardew game (yes you will lose an entire day's worth of work) and restart the game so you can zero out your memory leak before it creeps back up and gives you red text smapi errors.


This mod's purpose
If you want custom music and don't want high ram usage, you need to natively put the music into Stardew Valley/Content/XACT/Wave Bank.xwb. However you need special instructions and programs to open and edit a .xwb file. At one point you will need this mod file to be opened in XACT, a program that creates the Wave Bank.xwb.

Instructions
Read this:
Joyous.Ariella's post on how to do most of this arduous process
Squidthulu1's mapping of labelling of all sound files in the sound bank so you can easily replace them, they are unlabeled otherwise
Maso's guide on how to enable/disable the windows explorer file sorting problem so your audio is input into the wavebank in the correct order (you only need to read his "Properly Sorting the File List" section, all other stuff is irrelevant)

Result
After you do the above you will make a wave bank.xwb file and replace the default one. Either that or you could ask the Mod authors of your content packs to make a XWB file for you. Or live with vanilla Stardew Valley music in your mod load out.