Eddio0141 / osu-file-parser

4 stars 2 forks source link

Version parsing #5

Open ivanstepanovftw opened 2 weeks ago

ivanstepanovftw commented 2 weeks ago

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

ivanstepanovftw commented 2 weeks ago

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