Eddio0141/osu-file-parser

Version parsing

Opened this issue · 3 comments

I have exported beatmap in .osz format from osu! Lazer 2024.521.2 beatmap editor, and it have osu file format v128, which will cause InvalidFileVersion error when trying to load unpacked osu file.

let osu_file_str = include_str!("../assets/sounds/maps/L. V. Beethoven - Moonlight Sonata (Cranky Remix) (Ukty)/L. V. Beethoven - Moonlight Sonata (Cranky Remix) (Ukty) [Harder].osu");
let mut osu_file = osu_file_str.parse::<OsuFile>().unwrap();

L. V. Beethoven - Moonlight Sonata (Cranky Remix) (Ukty).zip

Colours also have problem. Though wiki says that colours are comma separated triplets, 4 comma separated values provided:

[Colours]
Combo1: 108,61,253,255
Combo2: 255,0,0,255
Combo3: 0,165,255,255
Combo4: 255,76,152,255

Ah yeah lazer has some strange version number, I will fix that
Also, didn't think there was a problem with colours, very weird. I didn't think I got something like that wrong, I will check
It maybe be RGBA and the wiki isn't properly documented

Oh wait I see the problem with colours yeah
I'm guessing the wiki is on stable still, I haven't checked so I need to test this