Closed Wieku closed 2 years ago
Can you tell me more about how you recreate the issue? I downloaded https://osu.ppy.sh/beatmapsets/423194#osu/914570, imported it into osu!lazer, exported it, imported the export in osu! and it loads fine. Tried that with the latest release of lazer and with master with this as the last commit https://github.com/Youssef-Hammad/osu/commit/90f1592d151229b0fa3f7bdc22662bea5ba554ce
@Youssef-Hammad please re-read the opening post. the reproduction scenario is described quite clearly.
the cause is the exportBeatmap()
call re-saving the beatmap:
which ends up changing the filename of the .osu
file and making it so that it contains slashes:
as could be seen on the original (if renamed to .zip
and previewed/extracted) stable looks to sanitize slashes from difficulty names when creating .osz
archives. the way to proceed here is probably to mirror that.
Additional note, looking at that snippet @bdach shared it seems that no Windows incompatible characters are sanitized, so maps containing \
, <
, >
, |
, ?
, *
, "
and :
will fail to import/unpack as well.
@Wieku Thanks for the note, I think I got it working for the /
then I saw your comment, will add the rest of the characters and make a PR
This is a pretty important one, but I'm going to hold off fixing it until we've switched to the realm importer, to save fixing it potentially in two different implementations.
Describe the bug: When a map contains slash character anywhere in artist/title/difficulty metadata, after exporting it, it's unimportable in stable. It looks like slashes aren't sanitized so .osu files end up being in subfolders.
Example maps that fail to import after exporting in lazer: https://osu.ppy.sh/beatmapsets/423194#osu/914570 https://osu.ppy.sh/beatmapsets/855677#osu/1787848
Screenshots or videos showing encountered issue:
osu!lazer version: 2021.907.0-lazer
Logs: not needed