File storage in osu!(lazer) · wiki (2024)

By default, osu!(lazer) stores beatmaps, skins, and score replay files in the following directories:

On desktop platforms, the file store can also be moved in its entirety to another location, using the Change folder location... button in the client settings.

Storage structure

osu!(stable)'s storage structure, where data was directly accessible to users as standard files, resulted in a lot of teething issues due to having to explicitly handle unwanted modifications of key files. To avoid this, osu!(lazer) employs a more stringent method of file storage. As such, there is no equivalent of the Songs and Skins folders. All files that are imported to lazer are stored under filenames that reflect their SHA-256 hashes. Mappings to these files are held inside a client database.

For example, a file with the SHA-256 hash of

1a47929b6056d34d25a95eeb2012395ceed66af6f40cc37c898a08482d6325d2

would be stored under the path of

See Also
osu! Skins

files/1/1a/1a47929b6056d34d25a95eeb2012395ceed66af6f40cc37c898a08482d6325d2

This allows for saving storage space by preventing duplicates of the same file from being persisted to disk, and prevents users (or other applications) from easily tampering with files that should not be tampered with. All inconveniences compared to stable that arise from this choice have been addressed by either allowing exports or adding new in-game management features, or will be addressed in due time by new features.

For now, the correct procedure to manually modify skins or beatmaps outside of the facilities available in-game is to export the item, update it, and then reimport it again with the desired changes.

Migration from osu!(stable)

Via hard links

On most systems, osu!(lazer) will be able to import data from the stable version of the game without having to create a second copy of the data on disk. This is possible thanks to an operating system feature called hard links.

A hard link is conceptually similar to a shortcut in that it is a method that allows a user to have the same file available from multiple different places on their filesystem. However, while shortcuts are just plain files that point to a different file (and therefore require additional space), hard links work one level deeper, at the level of the filesystem itself.

In simple terms, two hard-linked files are just two different names for the same piece of physical space on the hard drive. This means that once the migration completes using hard links, both the Songs folder in stable, and the files folder in lazer will contain files which will point to shared underlying data on the disk. Deleting files from one installation will not affect the other. Updating or editing files causes the files to become separate, and will therefore also not affect the other installation, as long as osu! is used to make the changes.

Note that if disk usage is checked using the Properties window in Explorer or any other similar method, it will appear that both the Songs directory and the files directory are consuming disk space, potentially misleading users to think that the data is stored twice. This is an artifact of file size accounting, and the actual underlying data is not duplicated. This can be verified by comparing the total amount of free space on the entire disk before and after the migration.

Supported systems

As hard links are a filesystem-level feature, it is required that the hard-linked files reside on a common drive.

  • Windows: The drive must be formatted using NTFS.

  • macOS: The file system must support hard links.

  • Linux: The file system must support hard links.

Via file copy

On other operating systems and filesystems where hard links are not available (or the functionality to create them has not been implemented yet), the migration from stable to lazer works by copying all files across from the old installation to the new. Both installs are therefore fully separated, but also consume up to twice the disk space.

File storage in osu!(lazer) · wiki (2024)

FAQs

Where is osu lazer data stored? ›

All files that are imported to lazer are stored under filenames that reflect their SHA-256 hashes, in the ~/. local/share/osu/files (or OS equivalent) folder. Mappings to these files are held inside a client database.

Where is the default folder for osu Lazer? ›

In osu! lazer's setting panel, there is a button to Open osu! folder within the “General” section. On windows you could navigate to the data folder directly via Windows Explorer, by default this location is %AppData%/osu!/rulesets .

Where are osu files stored? ›

C:\Users\<Username>\AppData\Local\osu!

Where are osu replay files? ›

Osu! saves player replays in the osu!/data/r directory as . osr files.

Does osu lazer give pp? ›

you can now finally get real pp on osu! lazer. this is not a drill. The next client is ready for worldwide competition.

Does osu lazer count towards playtime? ›

lazer plays now show up in the play history section and count towards the play count stat!

What is lazer in osu? ›

"lazer" is a codename and will eventually be dropped as it becomes the primary release of the game. The rest of this document will refer to osu!(

How to change osu lazer install directory? ›

lazer, go to the settings, search for the button that allows the user to change the lazer directory, choose the new directory (the thumbdrive), allow it to import, then plug the thumbdrive into the new computer, open osu!

How to unpin osu lazer from taskbar? ›

Simply right-click on the item you want to unpin and choose "Unpin from taskbar" from the menu.

How to backup osu lazer songs? ›

While there is no official way to backup and restore your osu! library, you can still copy the beat maps directly from one PC to another by navigating to the osu! folder in the appdata directory and copying the songs and skins folders.

References

Top Articles
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 5992

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.