-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
2D particle effect freezes when loading a file #6816
Comments
Also one thing, |
I think I have a solution, there's an off-by-one error, but I'm having tremendous difficulty getting libGDX to build again. There's some issue I'm having with the new -PjavaVersion system; when I figure it out I'll try to PR and fix this. |
I can't reproduce the issue on my end (Windows), neither with the particle editor version on the master branch nor with the one downloadable from the website. This is the particle file I used for testing: https://github.com/libgdx/libgdx/blob/master/tests/gdx-tests-android/assets/data/test.p |
Now I can't reproduce either... I'll close my PR. This seems like it could be related to some automatic Git formatting (such as line endings and trailing newlines). @crykn I noticed that the test.p file in the repo uses an absolute path (machine-dependent) for its images; should I make a different PR to change that to a relative path? Not sure what it would be relative to, to be honest... |
Being absolute isn't the only problem with those paths. They still assume that files are located within |
Yup, we can remove the absolute path and just leave the file name. It works because if it doesn't find the file it tries to load the image on the same directory the particle effect descriptor file is located. Regarding the path separator it just handles them in code as well. Relevant code on
|
I have the same problem, the Particle Editor fails to open effects that have only one emitter, like this example:
Also, the example point out from @crykn, even if doesn't freeze, it fails to reading of emitters, there should be As a consequence, preview in Particle Editor is wrong compared to the final result (emitters have wrong position): I used the latest build from here: https://libgdx-nightlies.s3.eu-central-1.amazonaws.com/libgdx-runnables/runnable-2D-particles.jar |
Please ensure you have given all the following requested information in your report.
Issue details
When I tried importing or loading a 2d particle effect file application freezes with below error
Reproduction steps/code
launch latest particle effect jar,
load any particle effect file
application will freeze
Version of libGDX and/or relevant dependencies
1.10.0
Stacktrace
Please select the affected platforms
The text was updated successfully, but these errors were encountered: