On this page
Heroes: the screens around the game
Around the fight a hero reads a great deal: who killed him and with what, how many points a deed gave, who leads the scoreboard, who won. A sweep read each of those numbers, names and texts in the original's code and laid it beside the port's. This page is that sweep's state after its last round, in its own verdict words.
The HUD's own variables (health, ammunition, the item bar, tickets, name tags) are another sweep's and stand on the HUD; abilities, widgets and classes have their own pages too.
SAME: the original's function was read against the port's statements. DIFFERS: filed. NOT WIRED: the original writes it and the port does not. MENDED: it differed and is mended in the tree, each with a test that was red before and one mutation caught. After the sweep's round 40 (2026-11-28) its table has 78 rows: 60 SAME, 13 DIFFERS, 4 NOT WIRED, and one that is another sweep's. Several DIFFERS rows are mended since they were filed; the table keeps the verdict it was filed with and adds the mend, and so does this page.
What is the same#
Sixty rows. The larger groups:
| Screen | Read as the same |
|---|---|
| the scoreboard | a row's score, kills and third number (deaths; rocket captures in one mode, flag captures in another), the name, a dead hero's grey row and the colours, the order of the rows, the row of a hero who left, the head with the two flags and army names, the picture behind your own row and a friend's, the missions list under the rows, the add-friend and bookmark lines |
| the points | the valor points' pop and sound, hero points, how many points a deed gives, the +N in the middle when the target is off the screen, the war room points of a round |
| the killed panel | who killed me, the killer's health bar, the weapon's name, which panel shows (killed by, or an accident), the kill message to the killer and his list of killed heroes |
| experience | the level arc round the portrait (all thirty levels' numbers equal), the level's number, the level-up line, the prestige bar |
| the round's start | the welcome dialog, the unranked line, the waiting line |
| the round's end | the winner's line and the team picture, the winners' valor badge, the card's numbers on the client, the card's parts |
| the middle of the screen | the special line, the important line, the in-game event line with its queue, "this flag cannot be taken yet", a control point captured or lost, the connection problem line |
| capture the flag, the rocket mode | the lines and voices for a flag picked up, dropped, captured and returned; the line at a spawn in the rocket mode |
| the chat | the form of a line, what a team, squad or whisper line is sent with, the spam warning, the labels over the input box, whose lines a hero sees |
| around the game | the emote wheel, the loading page's bar, the Escape pop-up with its three buttons, the map's screen, the in-game store's two lines |
Some of these rest on a read "in outline" or on one part that was not opened; the sweep's rows say which (notes/bfheroes/screen_sweep.md).
What differed and is mended#
| What | The original, as read | State |
|---|---|---|
| the end-of-round card's lines | each team's heroes sorted by score (BFHeroes.exe@bfh126!0x00528d2f) | MENDED and seen on a page: the card lists by score where it listed by joining order |
| capture the flag, the line at the spawn | one of three lines by who carries which flag (0x008a2203) | MENDED and seen on a page |
| the XP booster's pop beside the portrait | the bonus, not the points (0x006e607c) | MENDED and seen on a page: a green +40 beside the portrait |
| the respawn countdown | the true seconds above 120; the last number stays at the round's end | MENDED (the HUD sweep's row; the HUD) |
| the pre-game line | written only in the start delay and in the round itself (0x004a5b6e) | MENDED on tests; a play would show one frame's difference |
| the purple points over a target that takes more damage | purple while a damage field holds the target, and a field counts only once it is active (0x0078cf65) | MENDED on tests; not seen on a page (its scenario is written and was not played) |
| the list of killed heroes under the round's result | emptied while the dialog stands | MENDED on tests |
| a chat line of a sender without a team | white | MENDED on tests |
| a demo's key labels | Heroes' own text keys | MENDED on tests; a demo's playback was not played |
| the centre info line's two timed texts | Heroes' own keys | MENDED; nothing changes on a screen, because no node of version 1.126 shows the line |
What differs today#
| What | The original, as read | The port | What a hero meets |
|---|---|---|---|
| a kill's assisters | the server gives each assister of a kill one kill on the scoreboard and tells his client (0x00753ebe); his HUD adds the row "Assist Kill" with the victim's portrait (0x008a9653) | the server runs Battlefield 2's form; the client has no case for the event | no kill and no row for the assister. No mend: it waits for the owner's yes or no, because stored progress would change |
| the picture that slides in while an ability is active | the component does nothing when its ability turns on or off (0x007e4bdc); nothing posts the events the pictures' manager handles | the port posts them itself | with the one shipped ability that has the component, a picture slides in for its 12 s; the original shows none. Whether it goes is the owner's call |
| the change from one screen to another | each screen's lists of flags (0x008e6a5d, read whole) | the same for most; four things differ | at the round's end a special message line that is up, the vehicle icon and the "killed by myself" flag stay as they were. The mend is written, not built. Not seen on a page |
| the end-of-round card's names and numbers | drawn whole | the port's Flash player sizes the text a little short | some names and scores lack their last character. The mend is a patch for the Flash player: written, not applied |
| the scoreboard's totals rows | no node of version 1.126 shows them | the key differs | nothing |
What is not wired#
| What | State |
|---|---|
| basic training's task panel | NOT WIRED: the port has no tutorial manager and tasks, which hold the panel's state. Its rules are read (tutorial and missions); more than a mend |
| the assist on the client | NOT WIRED, with the server's side above |
| the VIP message | the client's side is mended since (the HUD sweep); the port's server has no statement that sends the event, so it cannot be played |
What the original does not show#
Read so that nobody ports it by mistake:
- No kill feed line for everyone. The texts are built and handed to a function that only frees them (
0x00930032). - No line in words for a kill, an assist, a heal, a repair or a capture: all 37 calls of the line's setter pass the flag that leaves it out (
0x009300aa). - No level and no ping in a scoreboard row, and no totals rows.
- No "has left the game" line: no function references the key.
- No options screen and no server list in game: Escape shows the leave pop-up.
What the port has#
| Part | State |
|---|---|
| sixty rows of the sweep | read as the same |
| a kill's assisters, server and client | differs and not wired; waits for the owner's word |
| the picture of an active ability | differs: the port shows more; the owner's call |
| the change from one screen to another | differs in four things; the mend is written, not built |
| the end-of-round card's last characters | differs; the mend is an unapplied patch |
| basic training's task panel | not wired |
| the purple points, the killed list, the pre-game line | mended on tests; not seen on a page |
How it is tested#
Every mend of this sweep has a test written from the original's address that was red before the mend, and one mutation that the test caught (how a port is made). What a hero can see was then played on a page built from the tree, beside a page built from the commit before the mend: the card's order (bfh_r0108_card_order), the line at a capture-the-flag spawn, the booster's pop. The rows above that say "not seen on a page" have their tests and no such play yet. See scenarios.
In the code#
| What | Where |
|---|---|
| the points and their colour | crates/bfh-client/src/stealth.rs (damage_value, field_active) |
| the result dialog's frame | eor_dialog in crates/bfh-client |
| the screens' lists of flags | crates/bf2-hud/src/screen.rs (screen_vars_in) |
| missions on the client | crates/bfh-client/src/missions.rs |
Notes: notes/bfheroes/screen_sweep.md. See also the HUD, widgets, abilities, what is still open.
docs/dev/heroes/screens.md · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.