Skip to content
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

[Crash]: Loading a custom particle file from a subfolder causes a fatal exception #3101

Open
6 tasks done
Eauix opened this issue Nov 16, 2024 · 1 comment · May be fixed by #3102
Open
6 tasks done

[Crash]: Loading a custom particle file from a subfolder causes a fatal exception #3101

Eauix opened this issue Nov 16, 2024 · 1 comment · May be fixed by #3102
Assignees

Comments

@Eauix
Copy link
Contributor

Eauix commented Nov 16, 2024

SuperTux Version

SuperTux-v0.6.3-1452-g126e60e47-win64

System Information

Windows 10, 64-bit

Steps To Reproduce Crash

  1. Add a "custom particles from file" to your sector
  2. Right click it and open the particle editor
  3. Save your custom particle in the particles/custom folder
  4. Try to load this custom particle file

Debugging Information (Stacktrace)

No response

Additional Information

Seemingly, the crash happens because of a backslash (\) that gets placed in the file location path instead of a regular slash (/). The crash doesn't happen if you load a particle file that is directly in the particles folder, but happens if the file is in any subfolder of particles.
image
image

Guidelines For Reporting Issues

  • I have read https://github.com/SuperTux/supertux/blob/master/CONTRIBUTING.md#bug-reports.
  • I have verified this isn't an issue that's already been reported.
  • I have verified this isn't a discussion, or an issue about unintended behavior or a feature request, but rather an actual crash ─ that is, the game closed unexpectedly.
  • I have verified this issue is not about wrong translations (use Transifex for those), or anything unsupported (e.g. third-party add-ons).
  • In this report, I have only included details about one (1) crash.
  • If I make a mistake while submitting this report, I agree to use the "Edit" feature to correct it, instead of closing this issue and opening a new one.
@tobbi tobbi self-assigned this Nov 16, 2024
@tobbi tobbi linked a pull request Nov 16, 2024 that will close this issue
@tobbi
Copy link
Member

tobbi commented Nov 16, 2024

I've created a potential fix for this. Can you test out the nightly build once it's available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants