#Audio not playing from custom music pack

79 messages · Page 1 of 1 (latest)

median orchid
#

Just messed around for about 3 hours trying to make a modpack for the stereo and after i thought i got it all working the audio now isnt playing in game.. what could be the cause? I used an OGG file and in unity set it to force mono and used vorbis compression format

west falconBOT
#

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.

median orchid
#

<@&553315866146766850>

short ore
median orchid
#

Sure, I'm a little bad at explaining

short ore
median orchid
#

I'm not sure if this is what is asked, I don't know what prefabs are 😅 never heard of the word

short ore
#

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.

median orchid
#

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

short ore
median orchid
#

I'm using unity 2022.3.62f3

median orchid
short ore
#

Hmm, they did just do that wrong.

short ore
# median orchid Should I start by putting my masterbundle.dat and english.dat into 1 folder? And...

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.

median orchid
#

Okay hold on alot of information xD

#

Which files do I put into the folder

short ore
#

The vanilla assets, which are viewable if you look at the local game files for Unturned, has it set up like this.

short ore
#

Nothing else.

median orchid
#

So then this should be correct

short ore
#

Yes. In the MasterBundle.dat, the Asset_Prefix should be Assets/r5v3b0y

median orchid
short ore
#

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.

median orchid
#

Yep did that

median orchid
#

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

west falconBOT
#

The 'preview' branch of Unturned is using Unity version 2022.3.62f3.

short ore
#

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.

median orchid
#

Can I also just update the workshop file I've already got?

short ore
#

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.

median orchid
#

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

#

🙂

short ore
#

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.

median orchid
#

These are the only errors that appeared

#

Pretty sure none of these have anything to do with my file

short ore
#

Odd

#

@scarlet urchin any input?

scarlet urchin
short ore
#

@median orchid You heard the man

median orchid
#

Ill give it a try when I'm home :)

median orchid
#

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?

median orchid
#

Whenever either of you have got time please @ me
@short ore @scarlet urchin

scarlet urchin
#

It needs to be r4v3b0y.masterbundle, not core.masterbundle

median orchid
#

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?

median orchid
#

I got it working with multiple songs :)

#

I appreciate the help from both of you guys thank you so much

scarlet urchin