ROM Hack Modding Stardew Valley wavebank

Gaara4

Well-Known Member
OP
Newcomer
Joined
Jan 13, 2015
Messages
87
Trophies
0
Age
23
XP
2,041
Country
Germany
I want to change the music from Stardew Valley (Switch) but unfortunately i reached an end of my knowledge. I already know that it is possible to change the music with some use of hex editing because this technic worked for the vita version. So i tought the switch version should be no problem but i can not recreate the proper music format. From my research i know that the music files in the wavebank.xwb use some kind of .dsp coding. VGMstream already listed which header is used. So if i want to replace the music inside the wavebank i need to recreate the .dsp but i try so many tools and nothing works.



Vita Version: https://gbatemp.net/threads/stardew-valley-vita-sound-modding-tutorial.538748/

DSP Format: https://github.com/vgmstream/vgmstream/blob/master/src/meta/xwb.c
 

pistoldust

Member
Newcomer
Joined
Jun 7, 2021
Messages
7
Trophies
0
Age
30
XP
61
Country
United States
Hi! Really interesting to discover there is a way to convert it for the Vita. I have been playtesting mods on PC & converting them to xnb for switch.

Maybe this works? Can't post links so you might have to copy yourself:
bit (dot) ly (slash) 3gW80iU (guide)
bit (dot) ly (slash) 2T7rKIu (XACT file - you can also google "Updated XACT file (NEW.xap) for audio modding (updated for SDV 1.5.4)")

I did this to change music. It works on PC but not switch. I don't think I converted it to 16-bit wav. Maybe it'll work >: If you find a way please let me know!
 

Gaara4

Well-Known Member
OP
Newcomer
Joined
Jan 13, 2015
Messages
87
Trophies
0
Age
23
XP
2,041
Country
Germany
The switch and the pc use different sound formats. In ordner to work we need an encoder which can recreate the format. Unfortunately i can not find one. For the vita it was possible because they used atrac9 which is avaible.
 

Shekan

Active Member
Newcomer
Joined
May 25, 2017
Messages
42
Trophies
0
Age
25
XP
418
Country
Canada
Hi! Really interesting to discover there is a way to convert it for the Vita. I have been playtesting mods on PC & converting them to xnb for switch
Unfortunately I don’t have an answer to the OP’s question, however, I am interested in which mods you have tested and/or converted to xnb for switch? I have been wanting to mod my SV (Stardew Valley) for awhile, but it’s hard to find any mods which are compatible with the Switch version.

I don’t have a reliable pc to play modded SV on, but I can at least use it to convert the mods to xnb. If you have any resources on how to convert them over, I would be super grateful if you could share them! Thanks!
 

pistoldust

Member
Newcomer
Joined
Jun 7, 2021
Messages
7
Trophies
0
Age
30
XP
61
Country
United States
Unfortunately I don’t have an answer to the OP’s question, however, I am interested in which mods you have tested and/or converted to xnb for switch? I have been wanting to mod my SV (Stardew Valley) for awhile, but it’s hard to find any mods which are compatible with the Switch version.

I don’t have a reliable pc to play modded SV on, but I can at least use it to convert the mods to xnb. If you have any resources on how to convert them over, I would be super grateful if you could share them! Thanks!
hello! it's a lot of braindead manual work that consists mainly of merging .pngs together and whatnot. really depends on how much of the game you want to mod and how familiar you are with image editors/shortcuts etc. i set up photoshop to snap align to my pixel grids. most of it for me was just textures - and i wanted to change how the town looked for all four seasons, character portraits/sprites, as well as some map layouts, and dialogue.

i own sdv for the pc, and the game comes with all the xnb files in organized directories. i worked on it in batches, starting from the Animals folder.

keep in mind that script mods (that go beyond replacing textures, maps, and dialogue) will not work, since SMAPI isn't ported to SDV on switch. the creator is okay with it being ported, but has no plans to do it himself.

first and foremost, set up folders like so:
atmosphere\contents\0100E65002BB8000\romfs\Content

you'll be dragging your finished .xnbs into there. the folder structure mimics exactly how the PC version is set up, so if you want to replace a cat, it'll be
atmosphere\contents\0100E65002BB8000\romfs\Content\Animals\cat.xnb

i use xnbcli:
1) drag whichever xnb file (or folder) you want to unpack into the packed folder
2) run unpack.bat, which will create the .pngs & their respective .json files in the unpack folder
3) download mods from nexus (or wherever)
for textures (map recolors, character portraits/sprites:
summary: replace the .pngs.
* most are for CP (content patcher) these days, and will include .pngs rather than .xnbs. you can look at the package.json to find out which .xnb in particular it replaces.
* open up the .png file from the unpacked folder and replace it yourself using photoshop, gimp, paint.net, etc.
you can probably skip this step if it's a character portrait or sprite. not so much if it's a map recolor.
* overwrite the .png in the unpacked folder

* useful tips for clothes/hair/etc: these are a pain to merge, but is made easier by using 체쓰의 별주머니 : 네이버 블로그 (naver.com)
for maps:
summary: remove the .png extensions from each tilesheet & save.
* you need Tiled
* i've replaced farm maps & use stardew valley reimagined 2. it's a fairly simple process once you know your way around
* first, make sure to extract the entire Maps folder, so that it includes tilesheet pngs as well - that way it won't throw errors when you try to do the following.
* if you're only editing maps, i recommend you move the extracted files into a separate folder to work off of. then you can just re-pack the .tmx&.jsons you actually edited once time comes
* drag the map you want to replace into the unpacked folder & replace the current one
* if it comes with any additional tilesheets (ex. spring_daisyextras), make sure to drag them into the Maps folder as well. you may have to create their corresponding .jsons, and make sure to drag them into the unpack folder so they'll be re-packed alongside your new maps.​
* in the Tilesets window on the right, right click on the tab -> Edit Tileset
* on the top bar, click on Tileset -> Tileset Properties...
* in the left panel, locate the Image property. the value should end in .png (ex. Paths.png, spring_outdoorsTileSheet.png, etc.)
* click on that -> Edit -> erase the .png extension, then click OK
* close that tab & save
* repeat this for all tilesheets
* once done, save the map
* useful map notes: yes, each map only has tilesheets affixed with spring_. don't worry about where the other seasons went - in-game they automatically change to the proper season.
* with that said, that also means you can add any number of custom seasonal tilesheets you want into the maps folder! if you prefix the sheets with spring_, summer_, fall_, and winter_, you can add in your own tilesheets to decorate the town.
* since you're editing maps, you'll only need to worry about packing these up into xnbs.
* i also took this chance to change the super purple "shadows" to something more faded. you can do this by adding an AmbientLight property onto the map in the left panel - i set the values to 90 85 80 (R, G, B). you can increase these values which will make the shadows darker (and lower for lighter).​
for dialogue:
summary: copy strings from the mod's package.json, into the unpacked dialogue .json you're editing.
* dialogue is located right in the unpacked .json. fairly straightforward - just copy the strings from any dialogue mod over into the one in the unpacked .json. do pay mind to make sure you don't have any duplicates.​
4. run pack.bat, which will overwrite the .xnbs in the packed folder.
5. drop the .xnb file(s) into their respective folders on the SD card.


hope this helps! i was planning to create a page on the sdv wiki soon(tm) which would be more detailed... let me know if you need further clarification in the meantime however!
 
Last edited by pistoldust,

Gaara4

Well-Known Member
OP
Newcomer
Joined
Jan 13, 2015
Messages
87
Trophies
0
Age
23
XP
2,041
Country
Germany
A short update. I could change the sound but only with the soundtrack from Skulls of the Shogun: Bone-a-fide Edition.
They both are made with monogame and use the same sound engine i think.
So if anybody knows who we could recreate the UE4 Switch Audio header it would be help a lot.
Post automatically merged:

Sry for the double post but i finally got it to work. Finally i can play stardew valley with the soundtrack i want :)
 

Attachments

  • Screenshot 2024-01-07 154039.png
    Screenshot 2024-01-07 154039.png
    74 KB · Views: 13
Last edited by Gaara4,

ReneeDouglas

New Member
Newbie
Joined
Apr 9, 2024
Messages
1
Trophies
0
Age
20
XP
4
Country
United States
Dive into customizing your Stardew Valley experience by modding the wavebank. Add new sounds, music tracks, and ambiance to enhance immersion and personalization within the game world.
 

ElizabethSantos

New Member
Newbie
Joined
Apr 11, 2024
Messages
1
Trophies
0
Age
24
XP
3
Country
United Arab Emirates
I did this to change music. It works on PC but not switch. I don't think I converted it to 16-bit wav. Maybe it'll work >: If you find a way please let me know!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Least they got head in the end