Skip to content

feat(match2): legacy wrapper for pubg#7030

Open
ElectricalBoy wants to merge 3 commits intomainfrom
pubg-legacy-wrapper
Open

feat(match2): legacy wrapper for pubg#7030
ElectricalBoy wants to merge 3 commits intomainfrom
pubg-legacy-wrapper

Conversation

@ElectricalBoy
Copy link
Collaborator

Summary

This PR adds legacy wrapper for Template:Match standings team in PUBG.

How did you test this change?

pubg:User:ElectricalBoy/Sandbox2

@ElectricalBoy ElectricalBoy requested review from a team February 2, 2026 06:39
@ElectricalBoy ElectricalBoy added c: match2 g: pubg PUBG (PC & Console) labels Feb 2, 2026
Copy link
Collaborator

@hjpalpha hjpalpha left a comment

Choose a reason for hiding this comment

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

review on phone:
seems reasonable at first glance

did you plan to add an additional entry point for converting it to new wikicode (via bot run with subst)?

@ElectricalBoy
Copy link
Collaborator Author

ElectricalBoy commented Feb 2, 2026

did you plan to add an additional entry point for converting it to new wikicode (via bot run with subst)?

not in this pr, maybe in subsequent pr(s)

iirc there are some tiebreaker settings in match1 setup that block botting matches using those tiebreakers

MatchStandingsLegacy.readOpponents(args)
MatchStandingsLegacy.readBackground(args)

Variables.varDefine('islegacy', '')
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we unset this var here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

|detailsX= params are conditionally json strings depending on islegacy page var (ref:https://liquipedia.net/pubg/index.php?title=Template:MatchSummary&diff=556745&oldid=556058)
so it's to prevent uses outside of legacy wrapper from (theoretically) breaking

Copy link
Collaborator

Choose a reason for hiding this comment

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

in that case: do we need to reset it to its former value after the processing done in this module?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think we have to
the only place we define islegacy page var in pubg wiki is right before module invoke in template entrypoint (https://liquipedia.net/pubg/Template:LegacyMatchStandings)

@ElectricalBoy ElectricalBoy requested a review from Rathoz February 3, 2026 08:02

Variables.varDefine('islegacy', '')
return MatchGroup.MatchList(Json.stringifySubTables{
return MatchGroup.Bracket(Json.stringifySubTables{
Copy link
Collaborator

@Rathoz Rathoz Feb 3, 2026

Choose a reason for hiding this comment

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

It's not possible.to say that it should always be a Bracket/2 though.

Eg here it is clearly a matchlist https://liquipedia.net/pubg/PUBG_Development_League/2019/Spring/Division_A#Results

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well that is an inherent problem with pubg's match1 setup; it treated every match as single match (i.e., it had no notion of bracket/matchlist)
since match2 requires all matchgroups to be either one of brackets or matchlists, we would have to make compromise somewhere

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is somewhat the issue I ran into with Apex when I was doing conversions;
If we want to ensure it's all done correctly; you kind of just need to manually sort through conversions generally to see what needs to be applied. (And to be fair; I also ended up merging a lot more pages, Where in the past for Apex' Challenger circuit, it was set as subpages for Quarters/Semis/Finals I then merged it unto a single bracket page)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: match2 g: pubg PUBG (PC & Console)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants