Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(secure): Mark Splatfest sessions as OpenParticipation #4

Closed
wants to merge 2 commits into from

Conversation

ashquarky
Copy link
Member

Resolves #3

Changes:

Splatoon marks Fest rooms (type 12) as OpenParticipation=false, making them impossible to matchmake into. Trouble is, we want to matchmake into them, so the teams of a fest can join. Hack around it for now until we have a better understanding of what's meant to be going on here.

Fests need PretendoNetwork/nex-protocols-common-go#40 to work.

// * Set Splatfest rooms to open participation
for _, session := range common_globals.Sessions {
if session.GameMatchmakeSession != nil && session.GameMatchmakeSession.GameMode.Value == 12 {
session.GameMatchmakeSession.OpenParticipation = types.NewPrimitiveBool(true)

Choose a reason for hiding this comment

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

iirc you can just set session.GameMatchmakeSession.OpenParticipation.Value to true, might be a smidge faster

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately not:

# github.com/PretendoNetwork/splatoon/nex
nex/register_common_secure_server_protocols.go:115:53: cannot use true (untyped bool constant) as *"github.com/PretendoNetwork/nex-go/v2/types".PrimitiveBool value in assignment

You might be thinking of the type refactor; PretendoNetwork/nex-go#56 , which we aren't targeting for this server yet.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, .Value, I can read. That compiles okay, actually.

Bit of a hack but good enough to make things work for now
Fixes freezes related to Splatfest results upload
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.

[Bug]: Splatfest matchmaking doesn't work
2 participants