Giter VIP home page Giter VIP logo

deck's Introduction

Deck

Deck is an api/score server, designed for every osu! client (2007-2024).

Please view this repository for setup instructions!

Everything has been pretty much completed. You can view the leftover todo's for the project here.

deck's People

Contributors

ascenttree avatar dependabot[bot] avatar digitalfear117 avatar lekuruu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

deck's Issues

Migrate to new common folder

I decided to make a common folder for sharing python code between bancho and the score server. You can view that repository here.

This common folder is currently only present in the new bancho rewrite, and I am planning to migrate this folder to the score server when the rewrite is finished.

Add osu! benchmark submission endpoint

@Digitalfear117 has made a name for himself in the discord due to his modded osu! client, which includes a feature from b20121003shine.test - The Benchmark. His idea was to create a separate leaderboard using the data from the results screen.

Fix filesize_novideo in online_beatmap response

After some more investigation of the code, I found out that the filesize_novideo attribute is always sent by the server no matter what. That also explains why the difficulties are messed up on the client side.

Implement osu!direct

For osu!direct to work properly, I need to make some changes to the database so that beatmaps include attributes like:

  • osz_filesize
  • has_storyboard
  • query_string

The query string will be important for searching, which is maybe not the best practice, but it works.

False-positive autoban on laggy devices (BadFlags.SpeedHackDetected)

I recently tried to play osu! on my 11 year-old laptop with wine, and it was not a great experience. In the middle of submitting my score, I got banned. Why?
It turns out that if the audio timing calculation fails in any way, the client will detect it as a speed hack and submits this flag to the next score submission.

The code of that looks something like this:

if (Math.Abs((float)(AudioEngine.Time - this.audioCheckTime) * (1f / num3) - (float)(GameBase.Time - this.audioCheckTimeComp)) > 60f)
{
	int num4 = this.audioCheckCount + 1;
	this.audioCheckCount = num4;
	if (num4 > 5)
	{
		NotificationManager.ShowMessage("There was an error during timing calculations.  If you continue to get this error, please update your AUDIO/SOUND CARD drivers!  Your score will not be submitted for this play.");
		Player.currentScore.AllowSubmission = false;
		GameBase.Scheduler.Add(delegate
		{
			Player.flag |= BadFlags.SpeedHackDetected;
		}, 200, false);
		this.audioCheckCount = -500;
	}
}
else
{
	this.audioCheckCount = 0;
}

If this error occurs to any of my playtesters, I will try to fix it.

Ranks are not updating correctly

According to one of our playtesters:

"I have one silver SS but the server reports 0 (instead I have one more normal SS than intended)"
...
"?"
"I have 5 Gold SS and 2 Silver SS"
"Now it says I have 6 gold SS and 0 Silver SS"
"The new Silver SS I set without overwriting got vanished"
"The old gold SS I overwrote to silver.. Simply didn't convert to silver."

Refactor server error in osu! direct

If a server error/exception occurs, the client will get a response with "Server error. Please try again.". This shouldn't happen too often, but it is definitely annoying when it does happen.

My plan instead is to retry the query for x amount of times, before a server error is returned.

Implement a proper anti-cheat system

The score submission currently does not include an anti-cheat. I have played around with circleguard in the past, but I removed it because it often lead to false-positives. However I have plans to fix that and want to implement it again sometime.

Implement missing achievements

Achievements missing:

  • Most Improved
  • Video Game Pack vol.1
  • Video Game Pack vol.2
  • Video Game Pack vol.3
  • Video Game Pack vol.4
  • Anime Pack vol.1
  • Anime Pack vol.2
  • Anime Pack vol.3
  • Anime Pack vol.4
  • Internet! Pack vol.1
  • Internet! Pack vol.2
  • Internet! Pack vol.3
  • Internet! Pack vol.4
  • Rythm Game Pack vol.1
  • Rythm Game Pack vol.2
  • Rythm Game Pack vol.3
  • Rythm Game Pack vol.4

Add profile activity/highlights

Here is an example of how this should look on the frontend:

example

I've already added a table for this and there are already bot messages on the #announce channel for stuff like this.

Refactor anti-cheat reports

I personally don't like the way that circleguard reports are implemented right now. My idea is to add a separate table for it, instead of crushing it inside the logs table. The same goes for the !report command.

Implement bancho_connect.php endpoint

Some newer clients, such as b2013815, require the bancho_connect.php endpoint to connect to bancho. Well... they do not really require it, but the login can take a while, if the endpoint is not there.

After some investigation of the code, I found out that the endpoint just returns a normal ipv4 address, that the client will parse and connect to. The response can also be just empty, so that the client can use the normal hardcoded ip to connect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.