Skip to content

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

Open
@Eauix

Description

@Eauix

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions