Unturned

Unturned

Not enough ratings
Workshop: Master Bundle
By Spebby
A guide that attemps to teach you how to use the Master Bundle tool.
   
Award
Favorite
Favorited
Unfavorite
What You'll Need
DISCLAIMER

Install a version of Unity 2019.4.x, to do this, download Unity Hub, and install a version through the client, the latest the better. Install with Mac & Linux support, without this support, Mac and Linux players wouldn't be able to play on your map without issues.

If you have any mods/assets that need updating your gonna have to bundle on this version. If you're on a Curated project, get all the assets into one Unity Project and bundle from there.
Make sure to import the "Project" and "Standard Assets" unity packages into your project. (Unturned>Bundles>Sources>).
Bundling
This part ain't hard, just takes a lot of time, here's what you do.
Let's say you're making a Curated map, what you need to do is put all your assets into a folder, let's say the map is set in Texas so we'll just call that folder "TexasMasterBundle". Next, you're going to want to start sorting all your unity assets. Set up the folder like in the Unturned bundle's folder. If a tank top in the Map's files is located at Unturned>Maps>Texas>Bundles>Items>Clothing>Shirt>Tank_Top then in unity it would be located in Assets>TexasMasterBundle>Items>Clothing>Shirt>Tank_Top. In the Tank Top's folder should also look something like this: In Unity, you're going to need to make an "Asset Bundle" (You can do this by selecting any .prefab in unity and going to your Inspector tab, at the Bottom right you should see a tab that reads "AssetBundle None" click on the "None" and click new, type in the name of the Master Bundle, something like Texas.masterbundle (you have to have this .masterbundle bit on there for it to work) Now give the TexasMasterBundle and the "Main" folders (would be in here, Assets>TexasMasterBundle) this AssetBundle tag. Now you're finally ready to export. Select TexasMasterBundle and click on the Masterbundle tab. Select "Asset Bundles" and "Master Bundles". Don't select "Multi-Platform" unless this is a final export, it just takes longer and is unneeded. You also need to have installed Mac & Linux support when installing Unity for it to work. Select the AssetBundle Tag you're using in the export (texas.masterbundle) and then click the three ...'s, export to your map's Bundles folder.:
Getting It To Work
Now, for the final and easiest part, you need to make a .dat file and put it into your Bundles folder. It needs to be called "MasterBundle.dat" the contents of the .dat should be as follows
Asset_Bundle_Name texas.masterbundle Asset_Prefix Assets/Texas
(The texas.masterbundle has to be lowercase)
Of course, replace the Texas part with your maps name/codename (peaks, cliffs, etc)
Your Bundles folder should look like this (of course there would prop be more folders)
Troubleshooting
In case you applied the Masterbundle Tag to all of you assets, a handy thing you can do is to go to the inspector tab and click "Filter Selected Name" this will show you all the assets with this tag.


If any part of this guide didn't make sense to you let me know and I will try to make it more clear.
Thanks for reading, and happy modding!
< >
9 Comments
asdfghbjnkml,swedrft May 12 @ 3:35pm 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
Aku Dec 19, 2021 @ 5:13pm 
行吧。
Spebby  [author] Dec 19, 2021 @ 2:04pm 
that would be called Datamining. I (had) a guide on how to do it, but it's outdated and I'd rather not update it.
Aku Dec 19, 2021 @ 2:00am 
.....how to unzip the assetbundle?I want to add france material but it was packed.
Spebby  [author] Oct 9, 2021 @ 11:16pm 
...wouldn't reading the guide answer that for you?

No, Masterbundles are not just for maps, but they aren't that useful if you're only bundling one or two asserts, they're useful when you need to bundle a lot of things at once.
mmd5.0 Oct 9, 2021 @ 10:38pm 
im trying to make a rocket launcher vehicle and im wondering how to export all of my folders. do i need to use a masterbundle for it to work (there is an item, magazine and vehicle). if so do i have to bundle it regularly in the individual folders and then start masterbundling?

i learnt all of this from scratch and have made basic mods before. this is the last step before exporting and another test in game.

previously i have failed multiple times. (also, ^^ are masterbundles only for maps?)
/im-a-noob/
Embersun Nov 3, 2019 @ 12:43am 
Same problem with Jay Go. Was trying to update a mod but when I try to export it, it says "No AssetBundle has been set for this build.". I'm new with Unity and any help is welcome. Thanks for the guide :)
Jay Go Jul 14, 2019 @ 8:02am 
I'm trying to update the Infiltration Weapons Pack mod for myself because I realy like it.
Whenever I try exporting the Masterbundle it says : "No AssetBundle has been set for this build.", even though I have given the asset label to both the entire Folder and the main folders within it.
Do you know what my problem could be?
mom im punk Jan 21, 2019 @ 1:46pm 
Perfect!!! Thanks. You helped the Russian man.