forum

[resolved] osz files with huge filenames can't be imported [confirmed]

posted
Total Posts
22
Topic Starter
happy623
Every time people download the beatmap (https://osu.ppy.sh/s/105881), and Osu did not able to load the file and said it corrupted
And I discovered that the other beatmaps (https://osu.ppy.sh/s/105358 , https://osu.ppy.sh/s/105000) with the same song title have the same problem.

If I change a shorter song title, the problem will be fixed, like this : https://osu.ppy.sh/s/105465
Also, I can use WinRAR to open the file without any problems.

Is there any solution? :?

Edit: The problem is the filepath is exceeding 255 characters. Additional details in this thread.
Rei Hakurei
sounds tl;dr to read this short thing
since osz extraction creates the folder with the osz name,
so you can download it, and renaming it; don't forget this one still a .zip, so you can extract it manually and create a folder with shortened name,

(milhi said, wait osz2 to prevent extraction)
TheVileOne
It's still not going to work. If the filename is still too long, it's still going to fail even if it doesn't need to extract.
Umi
well same problem as Happy623, don't really know what to do?
I already talk with TheVileOne about reduce the tittle, is it allowed ? or are there any others solutions ?

> https://osu.ppy.sh/s/104437
TheVileOne
I like this thread more than the one I made. Confirming this.
Umi
The beatmap can't be ranked until the problem is resolved ?
Shohei Ohtani
I'm not having this issue. I modded -Umi-'s map a bit ago, and just re-downloaded manually (Deleting the beatmap first of course) and it works just fine

It only happens on some beatmaps. I just downloaded all of the beatmaps in the thread. The first and second one don't work, but the third one works just fine, and -Umi-'s works.
Topic Starter
happy623

CDFA wrote:

I'm not having this issue. I modded -Umi-'s map a bit ago, and just re-downloaded manually (Deleting the beatmap first of course) and it works just fine

It only happens on some beatmaps. I just downloaded all of the beatmaps in the thread. The first and second one don't work, but the third one works just fine, and -Umi-'s works.

the third one title is shortened, it was same as mine before o/
Scorpiour
currently it is not suggested to use file name which is longer than 50 chars.
Umi
Yeah but if it's the right tittle ?

we have to reduce ?

like that:
Oratorio The World God Only Knows - God only knows -Secrets of the Goddess- (TV Size) > Oratorio The World God Only Knows -Secrets of the Goddess- (TV Size)

or something else ?
Rei Hakurei

(don't forget add beatmapID + a space, and follow something like that)
256chars is maximum limit of a path,
having total title and artist about 80 could be a limit before the mapper name and diff name is too long
DingGGu
If Beatmap file name was very long, osu can't unzip (open) osz files.

here is example of files http://osu.ppy.sh/forum/t/146146



Rei Hakurei
ah it's 260, i didn't know about that o.o
(sorry for derailing)

In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is "D:\some 256-character path string<NUL>" where "<NUL>" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.)
(basically: 3 + 256 + 1 = 260)
MillhioreF
A fix for this is being worked on. As such, moving it to low priority to free up space in the main Tech Support page.
Topic Starter
happy623

MillhioreF wrote:

A fix for this is being worked on. As such, moving it to low priority to free up space in the main Tech Support page.
thanks!! <3
Regou
this needs a higher priority :(
TheVileOne
If the filename is too long, pick a suitable shortened version. The title can be fixed at a later time.
MillhioreF
It's low priority because you can still import the maps by renaming the downloaded .osz manually.
Regou

MillhioreF wrote:

A fix for this is being worked on. As such, moving it to low priority to free up space in the main Tech Support page.
passing by
MillhioreF
It never got fixed, yeah :o. peppy does want to change the extraction process to fix this and other bugs at some point, so it'll probably happen eventually.
TheVileOne
Easy - fix

Truncate folder name. The folder name doesn't seem very important.
TheVileOne
I am working on a solution for this.


Edit: Fixed.
Please sign in to reply.

New reply