Skip to content

Turn on ranked play - #206

Merged
winnerspiros merged 1 commit into
winnerspiros:masterfrom
ppy:master
Apr 19, 2026
Merged

Turn on ranked play#206
winnerspiros merged 1 commit into
winnerspiros:masterfrom
ppy:master

Conversation

@winnerspiros

@winnerspiros winnerspiros commented Apr 19, 2026

Copy link
Copy Markdown
Owner

Summary by Gitar

  • Configuration changes:
    • Enabled ranked play by setting RankedStatus to Active in RulesetConfiguration.
    • Updated osu-server API endpoints to allow ranked submissions for competitive play.

This will update automatically on new commits.

Summary by CodeRabbit

  • Changes
    • Quick Play is temporarily unavailable in the main menu.

Copilot AI review requested due to automatic review settings April 19, 2026 08:27
@gitar-bot

gitar-bot Bot commented Apr 19, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@winnerspiros
winnerspiros merged commit 4663603 into winnerspiros:master Apr 19, 2026
1 of 9 checks passed
@coderabbitai

coderabbitai Bot commented Apr 19, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ddbd4e77-48e5-4d80-8af1-a35e5b7b9bdf

📥 Commits

Reviewing files that changed from the base of the PR and between b4b705d and 1168c47.

📒 Files selected for processing (1)
  • osu.Game/Screens/Menu/ButtonSystem.cs

📝 Walkthrough

Walkthrough

The conditional compilation directives in ButtonSystem.load that selected "Ranked Play" for DEBUG builds and "Quick Play" for non-DEBUG builds have been removed. "Quick Play" is now commented out as temporarily unavailable, while "Ranked Play" is unconditionally included.

Changes

Cohort / File(s) Summary
Button System Configuration
osu.Game/Screens/Menu/ButtonSystem.cs
Removed conditional compilation (#if DEBUG / #else); "Quick Play" button now commented out with temporary unavailability note; "Ranked Play" button no longer conditionally compiled.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A button once danced in the debug's bright gleam,
Quick play and ranked play, a conditional dream!
Now Quick Play lies silent, a note marks its rest,
While Ranked Play stands ready—the solo guest! 🎮

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Enables the Ranked Play button in the main menu by removing the build-configuration gating and disabling Quick Play to make room.

Changes:

  • Removed #if DEBUG conditional around menu button selection.
  • Always adds Ranked Play to the multiplayer button set.
  • Commented out Quick Play button creation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 165 to +167
buttonsMulti.Add(new MainMenuButton(ButtonSystemStrings.RankedPlay, @"button-daily-select", FontAwesome.Solid.Crown, new Color4(94, 63, 186, 255), onRankedPlay, Key.R));
#else
buttonsMulti.Add(new MainMenuButton(ButtonSystemStrings.QuickPlay, @"button-daily-select", FontAwesome.Solid.Bolt, new Color4(94, 63, 186, 255), onQuickPlay, Key.Q));
#endif
// disabled for now to give ranked play space.
// buttonsMulti.Add(new MainMenuButton(ButtonSystemStrings.QuickPlay, @"button-daily-select", FontAwesome.Solid.Bolt, new Color4(94, 63, 186, 255), onQuickPlay, Key.Q));

Copilot AI Apr 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commenting out the Quick Play button leaves dead code in-place and makes it harder to track intended behavior over time. Prefer using a clear feature toggle (config/setting/constant) or an explicit conditional (e.g., based on a capability flag) to choose between Ranked Play and Quick Play, and remove the commented-out line to keep the menu definition unambiguous.

Copilot uses AI. Check for mistakes.
Padding = new MarginPadding { Left = WEDGE_WIDTH }
});
#if DEBUG
buttonsMulti.Add(new MainMenuButton(ButtonSystemStrings.RankedPlay, @"button-daily-select", FontAwesome.Solid.Crown, new Color4(94, 63, 186, 255), onRankedPlay, Key.R));

Copilot AI Apr 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes Ranked Play available in non-DEBUG builds (previously it was gated), which can unintentionally expose an incomplete or environment-dependent feature in production. If Ranked Play is not guaranteed to be fully supported for all release channels/servers, guard it behind a runtime feature flag (or server capability) rather than removing the build-time gating entirely.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants