#Audio not playing from custom music pack
79 messages · Page 1 of 1 (latest)
When your question is answered either use /solved or the button below to mark the question as resolved.
Remember to ask specific questions and provide relevant details.
<@&553315866146766850>
Hi, I'm willing to assist but please don't make it a guessing game of multiple troubleshooting steps.
Follow
Sure, I'm a little bad at explaining
Why the guide exists, just need screenshots. Better to just have a full view of what is going on rather than back and forth ~~conversion ~~ conversation regarding it. 👍
I'm not sure if this is what is asked, I don't know what prefabs are 😅 never heard of the word
Okay so there are some things here that don't adhere to the typical modding conventions.
For instance, the files for the music asset themselves (.dat) should probably be contained within its own folder. Considering that it needs an English.dat, which has to be contained within the same folder as the .asset file.
The Asset_Prefix is set to "Assets". You really shouldn't be doing this. Masterbundle assets and resources should typically be in a subfolder of Assets, with that folder having the respective asset bundle tags for export.
For instance, even vanilla does "Assets/CoreMasterBundle". It is against convention.
I saw from the most recent tutorial the guy just removed the "\CoreMasterBundle" part
All of the tutorials are outdated I'm just trying stuff in the hopes it works
Not sure what tutorial you followed, do you mind linking it?
Most recent one I could find
https://www.youtube.com/watch?v=HRNi2WOBgCs&t=52s
Welcome to my first tutorial video, today we are covering Unturned Stereo custom music! If you enjoyed be sure to drop a like and subscribe and leave a comment on what tutorial I should make next!
Useful Links:
https://www.guidgenerator.com/online-guid-generator.aspx
https:...
I'm using unity 2022.3.62f3
Should I start by putting my masterbundle.dat and english.dat into 1 folder? And does the name for it matter at all
Hmm, they did just do that wrong.
The folder name should be the same as the filename for the .asset. Minus the .asset.
The .masterbundle should be kept in the main directory. Additionally, the English.dat should not be paired with it. The English.dat is meant to always be in the same directory as the .asset.
No relation between the MasterBundle.dat and the English.dat, don't confuse them as relying on each other. English.dat is specific to the music asset.
The vanilla assets, which are viewable if you look at the local game files for Unturned, has it set up like this.
The subfolder, as said before, should contain the .asset file and the English.dat file.
Nothing else.
So then this should be correct
Yes. In the MasterBundle.dat, the Asset_Prefix should be Assets/r5v3b0y
Which also means the asset path in the .asset file should have the base folder removed. Keep just the file name.
Additionally, make sure that the GUID for the .asset file is randomly generated.
Yep did that
so like this?
okay smooth going
So that's just fixing the structure, is that also reason the audio wasn't playing or was there a different reason for that
The 'preview' branch of Unturned is using Unity version 2022.3.62f3.
Seems in line.
If you want to test if the mod works locally, just place the whole mod into the 'Sandbox' folder in your local game files and then start the game. Just be sure that you don't have the mod subscribed to on the workshop when doing that.
You can find Unturned's install folder here:
Right-click Unturned in your Steam Library
Hover the Manage button
Click Browse local files in the dropdown
Can I also just update the workshop file I've already got?
Yes, you can. You can do that by filling out the in-game form and just pressing the name of the mod in the list rather than pressing the submit button.
I was just saying you can test it locally too rather than uploading it to the workshop, waiting for the update to propagate on Steam, etc.
Did that and the audio didnt work, I'm trying what you suggested now
I just play offline then when the mod's in my sandbox folder right?
and it should appear on the stereo
Appeared on the stereo, I made sure to unsubscribe from my workshop item
But the audio still doesn't play
🙂
Hmm, did you check the 'Error Logs' tab in the workshop menu of the game?
I suggest checking it with all other mods unsubscribed. Otherwise you'll see a bunch of errors from unrelated content that will make it hard to see which one is pertaining to your mod.
These are the only errors that appeared
Pretty sure none of these have anything to do with my file
Turn on “load in background” and “preload Audio Data”. Also try dropping the quality to 1
Those are the vanilla audio settings
@median orchid You heard the man
Ill give it a try when I'm home :)
Alright I really am lost now, it doesn't work
I deleted my old masterbundle files and enabled the settings in unity, applied them and exported.
File hierarchy should still be correct
I threw it into sandbox and tried it, didn't work. Updated on steam and tried like that, didn't work either
Made sure I was unsubscribed from my workshop item and I also closed the game beforehand
Wait I realize, I should probably read before asking questions
the file's still called Washington 😭
Right, changed that but it still doesn't work
So I am back to my question, what now?
Whenever either of you have got time please @ me
@short ore @scarlet urchin
Oh
You’re using the wrong masterbundle
It needs to be r4v3b0y.masterbundle, not core.masterbundle
I literally just realized that
😭
I'm in the midst of updating it, hopefully now it works
It works
thank fuck for that
Thank you very much for the help
I will ask another question now, how do I do this for multiple songs without cluttering the files?
Cause I created a masterbundle assetbundle for this song specifically, can I just use the same masterbundle for every song?
I got it working with multiple songs :)
I appreciate the help from both of you guys thank you so much
(You can click this if you want to close it)