forum

Malformed .osu file causes crash

posted
Total Posts
3
Topic Starter
anonymous_old
I tried adding a comment to the [HitObjects] section of an .osu file by prepending a line with #. Actually, I prepended an existing hit object line with #.

When I loaded the map, osu! crashed with this stacktrace:

Stacktrace wrote:

System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
at #4X.#lf.LoadFile(Boolean )
at #4X.#lf.LoadFile()
at osu.GameModes.Edit.Editor.LoadFile(Boolean )
at osu.GameModes.Edit.Editor.LoadFile()
at osu.GameModes.Edit.Editor.#5q(Object , Keys )
at #jd.#9e.#u.#af.Invoke(Object , Keys )
at #jd.#9e.#uF(Keys )
at #jd.#Ed.#Bnb(List`1 )
at #jd.#Ed.#Kv()
at #ee.#Re.Update(GameTime )
Looks like osu! doesn't like my # as it's trying to read it as a number.

Catch exception and show the 'can't open =[' error dialog, kthx.
mattyu007
Why are you even editing that section of the osu file?
peppy
No.
Please sign in to reply.

New reply