^ 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.
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.
Develop games in your browser. Powerful, performant & highly capable.
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")
Line 478 in node.js they create a stream as a global and because of strict mode it errors out.
edit : Just wanted to add that I've actually encountered this error a few times
Ashley , I think a then event would be awesome . Would it work something like this?
Would we also be able to reject the promise at the 'then' events to limit execution.
Index thanks.
irina the library I used can do it, but the behavior won't support it currently.
When I have a chance to, maybe I can update it.
Here's the lib I used if you want to have a go at it : http://blueimp.github.io/JavaScript-Load-Image/
I started to work on something similar back in November.
If you are familiar with nodejs and would like to check things out or contribute please let me know.
[attachment=1:9k06whqm][/attachment:9k06whqm]
[attachment=0:9k06whqm][/attachment:9k06whqm]
Maybe this helps, it's a list of compatible browsers: http://caniuse.com/#feat=notifications
Support for other browsers/devices is just a matter of time.