Hi,
My project is using Cocos2d-JS v3.8.1 and i would like to use Assets Manager for hot update.
I have try to follow the guide here to create manifest and upload to my server
http://cocos2d-x.org/docs/manual/framework/html5/v3/assets-manager/en
Then i study the JS Asset Manager test case and implement it in my project, the code success go into
case jsb.EventAssetsManager.UPDATE_FINISHED:
After that, i called cc.game.restart();
and success updated app.jsc file.
However, jsb.EventAssetsManager.ALREADY_UP_TO_DATE:
is never called since it already updated, instead, it keep go into case jsb.EventAssetsManager.UPDATE_FINISHED:
which make the hot update become infinite loop.
Anyone have experiences on using Assets Manager? Please give some guide on how to use it.
Here is the project.manifest on my server
{
"packageUrl" : "http://www.zinitt.com/test/",
"remoteManifestUrl" : "http://www.zinitt.com/test/project.manifest",
"remoteVersionUrl" : "http://www.zinitt.com/test/version.manifest",
"version" : "1.1.0",
"engineVersion" : "3.8.1",
"assets" : {
"src/app.zip" : {
"md5" : "...",
"compressed" : true
}
},
"searchPaths" : [
]
}
Thank you.
Edit : The code is working, just need md5