Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset Bundle, not finding any files #10

Closed
Kurisama91 opened this issue Jun 6, 2019 · 15 comments
Closed

Asset Bundle, not finding any files #10

Kurisama91 opened this issue Jun 6, 2019 · 15 comments

Comments

@Kurisama91
Copy link

It's odd but running the application build and run will work but when uploaded to google play and delivered it seems like betterstreamingassets can't find any files.

I'm not getting any crash or error, it's just simply not finding any files when served from Google leading me to think their apk generation maybe moves the location?

@gwiazdorrr
Copy link
Owner

It's all about compression; BSA doesn't support compressed Streaming Assets.

There is some strangeness with App Bundles, even when built and run locally; sometimes some Streaming Assets are compressed, sometimes not. I can't really put my finger on it.

Now, I understand you upload an App Bundle, not an APK?

@fpv999
Copy link

fpv999 commented Aug 5, 2019

any news on the issue? Will you be able to add support for compressed assets?

@gwiazdorrr
Copy link
Owner

While it is possible, benefits of Streaming Assets would be lost (instant random access). And I don't have time at the moment.

Is it still broken with latest Unity?

@pepoon
Copy link

pepoon commented May 24, 2020

Hello guys,
My StreamingAssets folder is all using lowercase letteers for files, any other way to fix this issue?
Thanks.

@gwiazdorrr
Copy link
Owner

Lowercase for folders too?

@pepoon
Copy link

pepoon commented May 25, 2020

The generated .aabb bundle contains a bin folder (not generated by us) where it contains upper case files & folders. Well, generated .apk also contain this bin folder.. mmmmmm

\assets\bin\Data\1408c9cfe620b824ba12e140640118a8
\assets\bin\Data\2e7ad78679bf43e4eba31c3c5e7a8a4a
\assets\bin\Data\3f5b5dff67a942289a9defa416b206f3
\assets\bin\Data\9af043668d149e041abe9f0adb94dd8a
\assets\bin\Data\a084e85e774d0184cb0ec4b8aa2944e0
\assets\bin\Data\bec9e088313381a42bc3cc5cbd54ce69
\assets\bin\Data\boot.config
\assets\bin\Data\c5cb98b65f5f94342a3f8787e26895d2
\assets\bin\Data\d82c1b31c7e74239bff1220585707d2b
\assets\bin\Data\ef5adf5b9dc526c43a1990bee79cebd2
\assets\bin\Data\f952c082cb03451daed3ee968ac6c63e
\assets\bin\Data\fade42e8bc714b018fac513c043d323b
\assets\bin\Data\globalgamemanagers
\assets\bin\Data\globalgamemanagers.assets.split0
\assets\bin\Data\globalgamemanagers.assets.split1
\assets\bin\Data\level0
\assets\bin\Data\sharedassets0.assets
\assets\bin\Data\unity default resources
\assets\bin\Data\Managed\etc\mono\browscap.ini
\assets\bin\Data\Managed\etc\mono\config
\assets\bin\Data\Managed\etc\mono\2.0\DefaultWsdlHelpGenerator.aspx
\assets\bin\Data\Managed\etc\mono\2.0\machine.config
\assets\bin\Data\Managed\etc\mono\2.0\settings.map
\assets\bin\Data\Managed\etc\mono\2.0\web.config
\assets\bin\Data\Managed\etc\mono\2.0\Browsers\Compat.browser
\assets\bin\Data\Managed\etc\mono\4.0\DefaultWsdlHelpGenerator.aspx
\assets\bin\Data\Managed\etc\mono\4.0\machine.config
\assets\bin\Data\Managed\etc\mono\4.0\settings.map
\assets\bin\Data\Managed\etc\mono\4.0\web.config
\assets\bin\Data\Managed\etc\mono\4.0\Browsers\Compat.browser
\assets\bin\Data\Managed\etc\mono\4.5\DefaultWsdlHelpGenerator.aspx
\assets\bin\Data\Managed\etc\mono\4.5\machine.config
\assets\bin\Data\Managed\etc\mono\4.5\settings.map
\assets\bin\Data\Managed\etc\mono\4.5\web.config
\assets\bin\Data\Managed\etc\mono\4.5\Browsers\Compat.browser
\assets\bin\Data\Managed\etc\mono\mconfig\config.xml
\assets\bin\Data\Managed\Metadata\global-metadata.dat
\assets\bin\Data\Managed\Resources\Ionic.Zip.dll-resources.dat
\assets\bin\Data\Managed\Resources\mscorlib.dll-resources.dat
\assets\bin\Data\Managed\Resources\System.Data.dll-resources.dat
\assets\bin\Data\Resources\unity_builtin_extra

Yea all our assets & folders are lowercase.
We did some test of trying to read files before & after the assets/bin folder(the one that contains unity stuff with capital letters) but all failed..

@pepoon
Copy link

pepoon commented May 27, 2020

Upgrading from unity 2018.4.5f1 to 2019.3.14 fixed the problem.
Thanks to gwiazdorrr to help me figure it out.

@XLIVE99
Copy link

XLIVE99 commented Jun 7, 2020

In my project i have "GoogleService-Info.plist" file in StreamingAssets folder. I assume i mustn't change its name because i think its auto generated file. Will it cause the problem again? (Other files and folders are lowercase)
(Sorry for my english)
Edit: It didn't cause the problem

@anandmulay3
Copy link

i tried to update the project as suggested by @pepoon , tried 2019.3.14 and 2019.4 LTS latest version also but still its not working , files in streaming folder i renamed it to lowercase characters already.

@pepoon
Copy link

pepoon commented Aug 12, 2020

@anandmulay3 Im only using lowcase chars and underscores '_'. Nothing else.Our version is 2019.4.0.f1

@anandmulay3
Copy link

@pepoon any numbers or space between two words??

@gtoto007
Copy link

gtoto007 commented Sep 20, 2021

This issue is linked in readme but here it is closed. So this issue is still open?

@gwiazdorrr
Copy link
Owner

I have not tested this with recent Unity versions. The issue is linked to for context, link and explanation.

@SunHowe
Copy link

SunHowe commented Aug 7, 2024

This may not be a upper-case issue, but rather an issue with gradle's nocompress setting when some unity versions export android projects. The solution is as follows:

image
image
image

unityStreamingAssets=.unity3d, .gitkeep, .rawfile, .bundle, .version, .bytes, .hash**STREAMING_ASSETS**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants