keeptalkinggame / ktanemodkit

Modding toolkit for Keep Talking and Nobody Explodes
Other
84 stars 82 forks source link

Cannot mark assets and scenes in one AssetBundle. #48

Open alexei-kopylov opened 5 years ago

alexei-kopylov commented 5 years ago

When I tried build, I've got an error:

Cannot mark assets and scenes in one AssetBundle. AssetBundle name is "mod.bundle".
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget)
AssetBundler:CreateAssetBundle() (at Assets/Editor/Scripts/AssetBundler.cs:429)
AssetBundler:BuildModBundle(Boolean) (at Assets/Editor/Scripts/AssetBundler.cs:142)
AssetBundler:BuildAllAssetBundles_WithEditorUtility() (at Assets/Editor/Scripts/AssetBundler.cs:75)

And then I don't see mod.bundle file in the build directory

bkane commented 5 years ago

Hi! You likely have a scene tagged for inclusion in the "mod.bundle" asset bundle, which isn't supported. Double check that any scenes in your project are set to "None" for their asset bundle.

alexei-kopylov commented 5 years ago

Thanks for the reply. I tried to build from clean github clone (after configuring mod), but still have the same error. I also tried to follow this tutorial: https://www.youtube.com/watch?v=8b-GMgcCo_A, but still have the same error. I have only one assert in "mod.bundle".

AndrioCelos commented 4 years ago

To find what's tagged for mod.bundle, enter b:mod.bundle in the search box on the Project view. Scenes must not be included in the bundle.

DaveXR commented 1 year ago

Had the same problem but the search did not show any scenes. Problem was the scene was in a folder that was marked for this bundle.