Fix osu chart ruleset and effect point.
This commit is contained in:
@@ -61,6 +61,9 @@ namespace Cryville.Crtr.Extensions.osu {
|
|||||||
ParseLine(meta, chart, diff, evs, ref ftc, section, line);
|
ParseLine(meta, chart, diff, evs, ref ftc, section, line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (meta.ruleset == "osu!mania") {
|
||||||
|
chart.ruleset = meta.ruleset += "." + diff.CircleSize.ToString(CultureInfo.InvariantCulture) + "k";
|
||||||
|
}
|
||||||
|
|
||||||
if (!ftc) throw new InvalidOperationException("Unconvertible chart: no timing point is present in this beatmap");
|
if (!ftc) throw new InvalidOperationException("Unconvertible chart: no timing point is present in this beatmap");
|
||||||
result.Add(new RawChartResource(string.Format("{0} - {1}", meta.song.name, meta.name), chart, meta));
|
result.Add(new RawChartResource(string.Format("{0} - {1}", meta.song.name, meta.name), chart, meta));
|
||||||
@@ -83,7 +86,7 @@ namespace Cryville.Crtr.Extensions.osu {
|
|||||||
}
|
}
|
||||||
else if (ev is osuEvent.EffectPoint) {
|
else if (ev is osuEvent.EffectPoint) {
|
||||||
var tev = (osuEvent.EffectPoint)ev;
|
var tev = (osuEvent.EffectPoint)ev;
|
||||||
group.motions.Add(new Chart.Motion { motion = string.Format(CultureInfo.InvariantCulture, "svm:{0}", tev.ScrollSpeed) });
|
group.motions.Add(new Chart.Motion { time = tm.FractionalBeatTime, motion = string.Format(CultureInfo.InvariantCulture, "svm:{0}", tev.ScrollSpeed) });
|
||||||
}
|
}
|
||||||
else if (ev is osuEvent.EndEvent) {
|
else if (ev is osuEvent.EndEvent) {
|
||||||
if (tm == null) throw new InvalidOperationException("Unconvertible chart: timed event before first timing point");
|
if (tm == null) throw new InvalidOperationException("Unconvertible chart: timed event before first timing point");
|
||||||
|
|||||||
Reference in New Issue
Block a user