How to build+run osu!lazer native on Ubuntu 17…

How to build+run osu!lazer native on Ubuntu 17.10:

Since I spent some time trying to get this working I thought I’d write a shot how-to in case anyone else wants to do it.

Osu! is a free rythm game where you click circles. osu!lazer is the almost-finished next generation osu! client, which is open source and written in C#.

I’ve been working on this for a few hours and I’m writing most of it from memory. I can re-run the build steps to verify that I got it right but I might’ve forgotten about some package I installed. Write a comment if something doesn’t work for you and we’ll try to solve it!

I’m using Xubuntu 17.10 but I’m guessing the same instructions should work on Ubuntu and derivates 16.04 and later.

  1. Add mono repository, because the mono-devel that comes with Ubuntu 17.10 does not work for this (I tried and it says the compiler crashes). The repo is for Ubuntu 16.04 but luckily it also works for later versions. Original download instructions but I copy them here for convencience:

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://ift.tt/2l0ch8W xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list sudo apt-get update 
  2. Install dependencies, make sure you get the xamarin versions from the repo we added above. At the time of writing the correct versions are 5.4.x.x and the wrong versions are 4.6.x.x so don’t forget apt-get update:

    sudo apt-get install mono-complete msbuild 
  3. Clone the repository somewhere and cd to the new folder:

    git clone http://ift.tt/2lcLs0v cd osu git submodule update --init 
  4. Download a newer version of NuGet, a C# package manager:

    wget http://ift.tt/2l0dxJs 
  5. Download/install dependencies using NuGet:

    mono nuget.exe restore 
  6. Build osu!lazer. It should say “Build succeeded. 0 Warning(s) 0 Error(s)” when it’s done. At first I tried using xbuild but it failed:

    msbuild 
  7. Verify that it’s working:

    mono ./osu.Desktop/bin/Debug/osu\!.exe 
  8. Download a beatmap to play, to get started quickly you can use a site which doesn’t require an account. Ignore the “tutorial” maps since they’re just trolling 🙂 Here’s a nice classical song instead: http://ift.tt/2lbvSCy

  9. Open a file manager and drag the downloaded .osz file onto the running osu! application OR you can re-launch osu!.exe and add the path to the downloaded file as a command line argument.

  10. Play the game! Click circles when the outer shrinking circle hits the inner circle. For sliders click, hold the button and follow the circle to the end of it. I think most players use Z and X on the keyboard instead of clicking the mouse.

  11. [optional] Register an account on the official osu! site to download beatmaps. You will need to verify the account using the osu! client. Or keep using bloodcat.com if you prefer.

Or if you just want to see what osu! is about without going through all this get McOsu for free on Steam, It’s also open source but written in C++. It’s a practice client so you never fail a map, it runs very well on Linux and it has VR support. On the other hand it doesn’t look as fancy, it doesn’t have online play, chat or global highscores.

submitted by /u/sprkng
[link] [comments] via GNU/Linux Gaming on Reddit