occur status :
example code :
pixi-loader-test.zip
step :
This most likely is a resource-loader issue, can you try to make an example using the latest of that lib?
https://github.com/englercj/resource-loader
I fixed a few bugs since pixi last updated.
I'm getting same issue!
And from what I have inspected, in my case, it's about .fnt files
When loading that, loader is considering the image related to .fnt file, and increases it on progress attribute..
EDIT: Same with .json files (image atlas)
You're probably talking about this bug then? https://github.com/englercj/resource-loader/pull/32
I don't think so... that bug is about a manif file being load in last, and itself loads another amount of files given the impression of getting stuck on 100% (right?)
In my case, is just a bunch of image atlas (.json) and font files (.fnt), and each one have an image file associated. For example, if I have 2 .json and 2 .fnt it should be 25% for each file, right? But now it goes until 200% because each adds one more file with same weight..
But something curious is that after doing "loader.add(url_list)" if I print "loader.resources" it gives me a correct assets list, including referencing images from that files (.json and .fnt). Also, on complete loading, attribute loader.progress goes back to 100%
@FNevesFMQ Hmm, I haven't seen that. Please open an issue on resource-loader with a repro case there. Please use the latest version of the repo and not pixi.
@englercj from what I tested, this only occurs using pixi, not the resource-loader standalone.
Something about 'Loader._pixiMiddleware', that is where it parses the textures/spritesheet/bitmapFont
Because using resource-loader standalone and trying to load .json and .fnt it only loads that files, but with pixi it also loads the image ref file for each one.. and probably that's the problem, no?
Because using resource-loader standalone and trying to load .json and .fnt it only loads that files, but with pixi it also loads the image ref file for each one.. and probably that's the problem, no?
Because the middleware adds more files. Nothing in pixi deals with progress at all. In your repro case just have the middleware add more files and try to reproduce it.
In your repro case just have the middleware add more files and try to reproduce it.
I tried and works fine. I added some files in the middle of loading process and progress was well calculated.
So, must be something on pixi..
I tried and works fine. I added some files in the middle of loading process and progress was well calculated.
So, must be something on pixi..
Weird, resource-loader has tests for this case so I didn't think it was broken but not sure what pixi could be doing that is breaking it.
Look here: https://jsfiddle.net/FNevesFMQ/c036va1w/11/
I made an example using PIXI v4 and some .json and .fnt files from my dropbox.
As you can see, it goes over 100% and in the end goes back to 100..
And if you change on settings to PIXI v3, it executes as expected.
This problem appears because some resources contains nested files. In result the 'resources' property from PIXI's loader is changing dynamically.
As one of solutions I've made this example: https://jsfiddle.net/7zc05szm/4/
Looked into this a bit more, and added a bunch more tests to resource-loader and managed to get it to reproduce finally.
Most of the tests in place only added a single additional resource, and this seems to only happen with multiple additional resources. I now have a test added that is failing, so I can track down a solution.
Here is the test that fails: https://github.com/englercj/resource-loader/blob/312022a6c3745481022b86f1ce533a5563c7e425/test/unit/Loader.test.js#L495-L510
Likely, I will roll in the solution to this issue with the progress rewrite I proposed here: https://github.com/englercj/resource-loader/pull/32#issuecomment-239654160
Since this is a resource-loader issue I'm closing this in favor of tracking on the issue I linked.
i've a same issue
I'm using PIXI 4.2.2 and this still occurs.. is the last version of resource-manager fixed or pixi still have an outdated version?
Hello guys, any news from this issue?
Thanks
Nope. No one is brave enough to introduce latest loader in pixi :( I'm writing my own loader at the time.
This is solved by resource-loader v2. I'll update it now is dev.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.