michael811125 / OxGFrame

The OxGFrame is a framework based on Unity for accelerating game development. Supports multi-platform Win, OSX, Android, iOS, WebGL.
MIT License
170 stars 26 forks source link

【Query】Request failed. Code: 404, URL: file:///F:/ChessCard/Client/Assets/StreamingAssets/yaorao\MainHotfixPackage\5149d3b293e51f38c7636f195ec07a27.bundle #47

Open hejiang123 opened 1 month ago

hejiang123 commented 1 month ago

I have two resource packages, DefaultPackage and MainHotfixPackage, set to the APP and DLC respectively When building resources, copy the resources of the Default Package to the StreamingAssets directory, but do not copy the MainHotfixPackage. When deploying to CDN and running games in host mode, there will be an error message in the check process called 'Query' Request failed Code: 404, URL: file:///F:/ChessCard/Client/Assets/StreamingAssets/yaorao \MainHotfixPackage \ 5149d3b293e51f38c7636f195ec07a27.bundle. Do I need to copy all resources to StreamingAssets here? Is there any other setting to solve it?

hejiang123 commented 1 month ago

我有两个资源包DefaultPackage和MainHotfixPackage分别设置到APP和DLC.构建资源时把DefaultPackage的资源拷贝到StreamingAssets目录MainHotfixPackage不拷贝。在部署到CDN用host模式运行游戏时在check流程会报错【Query】Request failed. Code: 404, URL: file:///F:/ChessCard/Client/Assets/StreamingAssets/yaorao\MainHotfixPackage\5149d3b293e51f38c7636f195ec07a27.bundle。这里是需要什么解决方案或设置?

michael811125 commented 1 month ago

在读取资源时, 有先初始好 package 吗? 另外 burlconfig.conf 有确实设置?

michael811125 commented 1 month ago

hotfix 是走独立 package 初始流程

michael811125 commented 1 month ago

主要是内置找不到,不过如果你有初始 package 的话,就可以走下载流程了。

michael811125 commented 1 month ago

我有两个资源包DefaultPackage和MainHotfixPackage分别设置到APP和DLC.构建资源时把DefaultPackage的资源拷贝到StreamingAssets目录MainHotfixPackage不拷贝。在部署到CDN用host模式运行游戏时在check流程会报错【Query】Request failed. Code: 404, URL: file:///F:/ChessCard/Client/Assets/StreamingAssets/yaorao\MainHotfixPackage\5149d3b293e51f38c7636f195ec07a27.bundle。这里是需要什么解决方案或设置?

忘记提一个,另外这个也是正常讯息打印,因为会尝试从内置读取资源文件 (轮询优先顺序 Sandbox -> StreamingAssets -> 都查找不到时就会走 Downalod),所以如果从内置查找不到文件时,是这个打印没错。

还有你也可以先确保你的流程有没有误。