Tutorial  Updated

Stardew Valley Vita Sound Modding Tutorial

First off I apologize for not being word-perfect in English it is not my first language so please be gentle =)


Prerequisites:
  • A hacked PS Vita
  • Stardew Valley v1.03
  • at9tool
  • HxD
  • Audacity
  • unxwb (optional)
  • rePatch plugin
  • ID List



Step 1. Get your Music.xwb

1. Open VitaShell and navigate to your copy of Stardew Valley to get the Music.xwb. You should find it under

"ux0:/app/PCSB01226/Content/XACT/”

2. Connect your Vita and use USB or FTP to make a copy somewhere on your PC.



Step 2. (optional) Extract the music files

1. Download unxwb and extract the archive in the same place you stored your Music.xwb.

2. Open cmd.exe and navigate to the same folder or press Strg+ right click to get the option to open cmd.exe in the same folder so you don´t need to navigate to the right path.

3. Type in unxwb -R -D Music.xwb without the “ “ and hit Enter.

4. You will get 84 .dat files which are the sound files of the game. You should move them to a new folder to organize it.

5. These .dat files are WAV Files with the ATRAC 9 CODEC, so if you change for example 0000000.dat to 0000000.at9 you could play the file for example with VGAStream.



Step 3. Get the music to want to add

1. In the next step we need to convert the music we want use in the game into the right format. Every sound file you want to add needs to be in the .wav format, so if you have some tracks which are for example in .mp3 you can use Audacity to convert them into .WAV 16-bit PCM files.

2. If your sound files are now in the .WAV format you need to convert them with the at9tool. Copy your sound files in the same folder with the at9tool. Open cmd.exe in the same folder and type this

"at9tool -e -br 96 Yourmusicname.wav Yourmusicname.at9"

3. Just change "Yourmusicname.wav" to your Filename and Yourmusicname.at9 to whatever you want.

4. Now you should have a new created .at9 file in the same folder.



Step 4. Hex editing

1. Open HxD and with it you need to open your Music.xwb and your own created .at9 file. First of remove the header from the .at9 file with the Hex editor. It should always look the same in every .at9 file. Look at the picture to be sure to remove the right part.

2. Now after you remove the .WAV header you need to mark everything and press Strg + C to copy it.

3. Switch between the tabs to your Music.xwb and press Strg + E to get into the menu to mark a specific area in the file. Now you need to know in which part each music track is stored. I have made a list where you can find in which offset you can find the specific soundtrack of the game you want to switch out. So, look up in the list and type in the offset values from the song to want to replace. Link to the list is at the end of this post!

4. Hit OK and right after that press Strg +B and confirm it again to write your hex values which your new created .at9 file into the Music.xwb.

5. Save your modded Music.xwb.



Step 5. Add your new Music.xwb to the game
1. For the last step you need have to use rePatch for the Vita. There are plenty of guides and tools to install it, so I won´t explain it here. If you have rePatch installed open the repatch folder on your PC or directly on your Vita with Vitashell and create the following folder structure

"PCSB01226/Content/XACT/"


2.Now copy your modded Music.xwb into the XACT folder and start your game. If everything works out you should now hear your soundtrack whenever the normal soundtrack would play.




IMPORTANT in regards to the ID list:
The ID list is not complete because I don’t know the name of every soundtrack. Also, I cannot guarantee that got all the hex values are right. Maby I misstyped or got the wrong line in the Hex editor so feel free to contribute to the list if you find any mistakes. I just tested a few songs and it worked for me.


Link to the list --> https://drive.google.com/file/d/1KoojoQD8fJT6oAHMe784Zk-HN1Eo5Sjr/view?usp=sharing
 
Last edited by Gaara4,

stev88982

Active Member
Newcomer
Joined
Oct 3, 2019
Messages
27
Trophies
0
Age
28
XP
71
Country
United Kingdom
so hard doing this for PCSE01235 us version only replace portraits and characters trying to get chrono trigger music to work

repatch or mai dump better?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Yea here in North Korea, we are only allowed 1 19" tv per household. And the only channel we get is, MLT (Missile Launch Today)
    +1
  • K3Nv2 @ K3Nv2:
    @BigOnYa, doesn't fit in his bedroom he's American
    +1
  • BigOnYa @ BigOnYa:
    I hate ordering stuff online if I can go buy it somewhere close to me, and everywhere anymore will give you a discount only if you order it online, bs. Should be a discount if I go pick it up, not order online.
  • K3Nv2 @ K3Nv2:
    I love it for most things most stores you just shows the receipt online and they scan it
    +1
  • K3Nv2 @ K3Nv2:
    Makes it easy for incompetent restaurant staff that don't know how to hear an order
  • BigOnYa @ BigOnYa:
    Mostly for big purchases, I want it in my hands before I pay. Like a tv, I trust picking it up myself, before I'd trust it being sent thru mail/delivery. (Broken screen, etc) But yea if I can order online, then pickup at store is ok, but not all places offer that.
  • cearp @ cearp:
    > Like a tv, I trust picking it up myself, before I'd trust it being sent thru mail/delivery. (Broken screen, etc)

    Thing is, if you break it driving back to your house, it's your fault. But if the delivery driver damages it, it's not your fault.
    +1
  • K3Nv2 @ K3Nv2:
    Most people that haul big tvs have empty trucks or know enough not to set it face down
  • BigOnYa @ BigOnYa:
    Then I gotta send it back and wait another week or two. I have a pickup truck, with a extended cab, so no prob for me.
  • K3Nv2 @ K3Nv2:
    Most manufacturers pack it well enough where they aren't that dumb to let it happen
  • BigOnYa @ BigOnYa:
    They building a new Microcenter store near by me, is kinda scary. That's my favorite place, I'm like a kid in a candy store there.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, what's a microcenter?
  • K3Nv2 @ K3Nv2:
    Cool I'll make you ship me stuff
    +1
  • K3Nv2 @ K3Nv2:
    Microcenter sells high quality microwaves
  • BigOnYa @ BigOnYa:
    Computer store basically, but they sell everything, like game systems, tvs , 3d printers, etc
    +1
  • K3Nv2 @ K3Nv2:
    I've seen i9/mobo deals for like 400
  • BigOnYa @ BigOnYa:
    Yea been itching to build a new pc, mine is like 3-4 years old, ancient in pc tech time. Still using a sata SSD even.
  • K3Nv2 @ K3Nv2:
    That's still high tech to ancientboi
    +2
  • BigOnYa @ BigOnYa:
    Kinda cool, I can buy a second Xbox for guests, and download all my purchased digital games to it, and play on both xboxs same time. Didn't know they allowed that. 2 xboxs per Xbox account.
  • AncientBoi @ AncientBoi:
    :rofl2: A toaster is "High Tech" to me
    +1
  • K3Nv2 @ K3Nv2:
    No we told you to stop taking baths with them
    +1
  • BigOnYa @ BigOnYa:
    Is crazy to think, you used to be able to build a decent PC for $300-400. Those days are way gone.
  • K3Nv2 @ K3Nv2:
    $600 gets you a decent one
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, too expensive
    Xdqwerty @ Xdqwerty: @K3Nv2, too expensive