kabiiQ / BeatmapExporter

osu!lazer beatmap exporter utility. Allowing mass export of beatmaps from the new osu!lazer file storage back into .osz files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exits with Unhandled exception. Realms.Exceptions.RealmException: Provided schema version 14 is less than last set version 16.

xayanide opened this issue · comments

Description
OS: Windows 10 21H2 19044.1826
osu! Lazer version: 2022.716.1

Steps to reproduce

My osu!Lazer's directory is at C:\Users\Ava\AppData\Roaming\osu

  1. Download binary from releases page

https://github.com/kabiiQ/BeatmapExporter/releases/download/v1.2.1/BeatmapExporter.exe

  1. Run the executable file

Issue persists even when running as administrator just in case.

  1. See command prompt
  2. See error
--- kabii's Lazer Exporter ---

Checking directory: C:\Users\Ava\AppData\Roaming\osu
Run this application with your osu!lazer storage directory as an argument if this is not your osu! data location.
Unhandled exception. Realms.Exceptions.RealmException: Provided schema version 14 is less than last set version 16.
   at Realms.NativeException.ThrowIfNecessary(Func`2 overrider)
   at Realms.SharedRealmHandle.Open(Configuration configuration, RealmSchema schema, Byte[] encryptionKey)
   at Realms.RealmConfiguration.CreateHandle(RealmSchema schema)
   at Realms.RealmConfigurationBase.CreateRealm()
   at Realms.Realm.GetInstance(RealmConfigurationBase config)
   at BeatmapExporter.Exporters.Lazer.LazerDB.LazerDatabase.Open()
   at BeatmapExporter.Exporters.Lazer.LazerLoader.Load(String directory)
   at BeatmapExporter.ExporterLoader.Main(String[] args)
   at BeatmapExporter.ExporterLoader.<Main>(String[] args)

Oh yep, osu!lazer database schema updated a few days ago.
https://github.com/ppy/osu/blob/master/osu.Game/Database/RealmAccess.cs#L61

Thanks, will push an update in a moment.