Like this?
https://dl.dropboxusercontent.com/u/139 ... anvas.capx
Let the browser handle validation for you.
It's frustrating when addons go missing, especially if you have projects that rely on them...
jabedbd — here
^ The ajax plugin isn't even a 'world' type plugin...
The exported project has a 'flat' directory structure. Basically folders you create in the editor are just an aesthetic. So if you've placed a file in subfolder/file.json, you'll be able to request it with /file.json. It's frustrating, not a wanted feature.
Develop games in your browser. Powerful, performant & highly capable.
nimos using filechooser, you're able to get the size of a file before ajaxing and adding it to the archive. This might help you avoid adding larger files and know when it's time to separate your assets. Wish I had a better answer for you.
nimos From what I've read the library doesn't handle large files very well due to memory implications. I'd suggest using multiple archives as a possible work around for now. When you're adding new files it can bog, since everything synchronous. If it hangs for you, maybe you could wait a tick or two after adding each file.
jabedbd I don't think the jszip library supports those options
nimos I've updated the examples, check #6.
No problem, glad to help.
jabedbd you may need to update your version of the plugin.
(redownload and check the examples in the /project folder)
—
jabedbd you might have your parameters mixed up.
The first argument is the archive tag name, the second is the path to the file.
If you still have trouble send me a minimal capx to check out showing the error.
jszip.readText("","folder/sub/foo.txt")
Member since 28 Apr, 2013