Skip to content

feat(Match2): Enable FFA on Tarkov Arena#7681

Open
Hesketh2 wants to merge 8 commits into
mainfrom
Hesketh2-patch-1
Open

feat(Match2): Enable FFA on Tarkov Arena#7681
Hesketh2 wants to merge 8 commits into
mainfrom
Hesketh2-patch-1

Conversation

@Hesketh2

@Hesketh2 Hesketh2 commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Previously the wiki does not have any FFA-type events so MGI for this wiki removes that originally, now they did start having it so I'm reworking this setup by just clean re-pasting the entire Lab setup again.

How did you test this change?

LIVE

@Hesketh2 Hesketh2 self-assigned this Jun 20, 2026
@Hesketh2 Hesketh2 added c: match2 g: tarkovarena Escape From Tarkov: Arena labels Jun 20, 2026
@Hesketh2 Hesketh2 marked this pull request as ready for review June 20, 2026 10:07
@Hesketh2 Hesketh2 requested review from a team as code owners June 20, 2026 10:07
hjpalpha

This comment was marked as resolved.

* feat: Enable FFA on tarkovarena

* Add FFA copypasta

* chore: update visual snapshots

* chore: update visual snapshots

* Update lua/wikis/tarkovarena/MatchSummary/Ffa.lua

Co-authored-by: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com>

* Update Ffa.lua

---------

Co-authored-by: mbergen <16326643+mbergen@users.noreply.github.com>
Co-authored-by: ElectricalBoy <15651807+ElectricalBoy@users.noreply.github.com>
@mbergen mbergen changed the title Feat(Match2): Tarkov Arena adjustments feat(Match2): Enable FFA on Tarkov Arena Jun 21, 2026

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm on phone

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Enables Free-For-All (FFA) Match2 support on the Tarkov Arena wiki by adding an FFA match summary module, extending MatchGroup input parsing to handle FFA matches, and updating the match code copy-paste generator to emit FFA match markup when there are more than two opponents.

Changes:

  • Added MatchSummary/Ffa.lua implementation for rendering FFA match summaries via the shared commons FFA widgets/base helper.
  • Extended MatchGroup/Input/Custom.lua to pass an FFA parser into standardProcessMatch and implement FFA map extraction + scoring.
  • Updated GetMatchGroupCopyPaste/wiki.lua to generate FFA-style {{Match}} code when opponents > 2.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
lua/wikis/tarkovarena/MatchSummary/Ffa.lua Adds an FFA match summary entrypoint for Match2 using the shared FFA summary base/widgets.
lua/wikis/tarkovarena/MatchGroup/Input/Custom.lua Adds FFA parsing/scoring support by wiring in an FfaMatchFunctions parser.
lua/wikis/tarkovarena/GetMatchGroupCopyPaste/wiki.lua Generates appropriate Match2 copy-paste output for both standard and FFA matches based on opponent count.

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

Comment on lines +19 to +21
---@param props {bracketId: string, matchId: string}
---@return Widget
function CustomMatchSummary.getByMatchId(props)
Comment on lines +22 to +23
---@class FFAMatchGroupUtilMatch
local match = MatchGroupUtil.fetchMatchForBracketDisplay(props.bracketId, props.matchId)
Comment on lines +75 to +80
Array.map(Array.range(1, bestof), function(mapIndex)
return INDENT .. '|map' .. mapIndex .. '={{Map|map=|date=|finished=|vod=}}'
end),
Array.map(Array.range(1, opponents), function(opponentIndex)
return INDENT .. '|opponent' .. opponentIndex .. '=' .. WikiCopyPaste.getFfaOpponent(mode, bestof)
end),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Array.mapRange

Comment thread lua/wikis/tarkovarena/MatchSummary/Ffa.lua
Comment thread lua/wikis/tarkovarena/MatchSummary/Ffa.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: match2 g: tarkovarena Escape From Tarkov: Arena

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants