-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spine atlas with semver in url won't load textures correctly #493
Comments
I encountered the same problem. Do you have any solutions now? |
I just have a temporary workaround, so it won't block our migration and testing on dev environment. |
I've got the exact same issue. Assets are being hosted at Loader.mjs:77 -> utils.path.toAbsolute |
Dug a little further, @heorhiy-kharvat is correct.
No idea why it get's split and then joined again, but that's whats causing the issue. I'd probably add an
|
We encountered same problem on Safari 14.1 and older, because url is missing a "/" after it passes through makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject from atlasLoader. |
@ivanpopelyshev could you take a look, please? The library appears to be non-functional at current version due to that forward slash bug. Can Jonny's fix be merged to master? #500 |
It's an upsteam bug and #500 won't fix the issue. I will see how I can work arround it |
Should be fixed in 4.0.4 |
I am using relative path for loading spine, sprite files.
I am getting 404 for spine png,but json & atlas files are getting loaded. It's working for sprite but not spine files. I am same using spine version of 4.0.4 but facing the same issue, can please take look Pixi.js version 7.3 For your reference I am attaching sample project. Please find the link below; |
Finally got around to updating our version of pixi-spine and can confirm it's fixed in 4.0.4 Thanks for looking into it 👍 |
Hi,
my game spine assets are located on 'https://cdn.domain.com/game/1.2.3/resources/spine/'
.atlas files are loaded correctly, but all textures .png files are attempted to load from 'https://cdn.domain.com/game/resources/spine/'
Since 'makeSpineTextureAtlasLoaderFunctionFromPixiLoaderObject' uses 'core.utils.path.join'
extname for 1.2.3 is true, and before normalisation path for texture looks like
['https', 'cdn.domain.com', '..', 'game', '1.2.3', '..' 'resources', 'spine'] and that results corrupted texture url.
Anyway to fix that without modifying 'join' util or writing my own atlas parser?
Environment:
Chrome: 111.0.5563.64
pixi.js: 7.2.1
@pixi-spine/loader-3.8: 4.0.3
@pixi-spine/runtime-3.8: 4.0.3
Potential solution:
we could use just normalize and perform join of array of parts
const url = core.utils.path.normalize([...atlasBasePath.split(core.utils.path.sep), pageName].join(core.utils.path.sep));
Thanks :)
The text was updated successfully, but these errors were encountered: