Skip to content

3.0.0

Latest

Choose a tag to compare

@11EJDE11 11EJDE11 released this 03 Dec 03:50
1cdbf32

After a long RC cycle, xna-cncnet-client v3.0.0 is finally out, and everyone should update to it. Alongside V3 tunnels, which give each pair of players its own best route in online games, it fixes a large number of security issues found in an audit of the client.

Please update. Razer (@CnCRAZER) with @claude audited the client and found many ways a malicious player, game host or custom map could crash other players' clients or make them do things they shouldn't. All of them are fixed in this release. Every older client version is still affected, and now that the fixes are public, it is easier for anyone to find and use those issues against players on old clients. By @CnCRAZER with @claude, with code refactor by @SadPencil and testing by @11EJDE11.

To make upgrading easier, this release comes with a Migration Tool, a separate download (migration-tool-3.0.0.7z) attached to this release. It applies the steps in Migration.md to an older client package automatically, covering every version back to v2.11.0.0. Back up your client first. By @MahBoiDeveloper. @SadPencil assisted.

We strongly encourage every package to upgrade to 3.0.0 as soon as possible, however far behind it is. If your package is several versions behind, the Migration Tool is the easiest way to catch up.

Thank you to @SadPencil for managing every release candidate and doing much of the groundwork in between, to @MahBoiDeveloper for the Migration Tool, to Razer (@CnCRAZER) for the security audit, and to Kerbiter (@Metadorius) and @Rampastring for all their guidance along the way. Thanks as well to everyone who reported bugs and helped with testing.

What's new

  • The client now supports V3 tunnels, and Dynamic V3 is the new default. With V2, every player in a game shares one tunnel, so two players on the same continent can still be routed through a server on the other side of the world. In Dynamic V3 mode, each pair of players finds the best tunnel between them, and the host no longer needs to pick one. For example, in a game with players in Australia, New Zealand and England, Australia ↔ NZ traffic can stay in Australia (~50 ms) instead of going through Europe (~550 ms). See Tunnel Settings in INISystem.md. By @11EJDE11.

    • A new "Tunnel mode" selector in the game creation window and the Options window lets you choose between Dynamic (V3), Static (V3), where the host picks one tunnel for everyone, and Legacy (V2).
    • Optional direct P2P connections. If both players enable it, the client tries to connect them directly and falls back to the agreed tunnel when that fails. This is off by default because it shares your IP address with the other players.
  • New Storage tab in the Options window. It keeps client logs, game logs, save games and replays in check, with limits on how many files are kept and how much space they use. By @11EJDE11. @SadPencil assisted.

  • New game and engine support:

    • Tiberian Dawn and Dune 2000 game types (ClientGameType=TD / ClientGameType=D2K). By @MahBoiDeveloper.
    • The client is now able to read OpenTS saved games. By @ZivDero.
    • Replay recording and playback, for packages whose spawner supports it (currently CnCNet's Yuri's Revenge, from the yr-build branch). Packages opt in with ReplaySupport=true in ClientDefinitions.ini. By @11EJDE11.
  • New features for modders:

    • Difficulty dropdown for co-op game modes. By @Starkku.
    • Map previews can overlay icons for buildings specified through [AutoMapOverlays] in ClientDefinitions.ini, such as oil derricks and airports. Start locations on raised terrain are now drawn in the right place. By @11EJDE11.
    • The XNAClientScrollPanel composite control for INItializableWindow, and pass-through of XNAScrollPanel INI options. By @Metadorius.
    • The minimum client resolution can be configured with MinimumClientWidth / MinimumClientHeight in ClientDefinitions.ini. By @SadPencil.
    • An optional Resources/ingameicon.ico replaces the window icon while a game is running (Windows/WinForms builds only). By @ZivDero.
    • A verbose translation stub can be generated. By @SadPencil.
    • The UI library has been synced with upstream Rampastring.XNAUI, which brings a revised font fallback system, tab control improvements, per-checkbox textures and many smaller fixes. By @SadPencil and @11EJDE11.
  • Quality of life:

    • IRC formatting codes in chat are stripped down to a basic level. By @brichardson1991.
    • The player list re-sorts when someone's operator, voice or friend status changes. By @CO2-code.
    • A Browse Client Logs button in the Storage tab opens the folder containing the client log. By @brichardson1991.
    • After an error, the client offers to open the log folder so the log is easy to share. By @brichardson1991.
  • Bug fixes:

    • Various LAN lobby fixes, including host startup lag, a 20-second freeze when joining an unreachable game, and several crashes. By @11EJDE11 and @CnCRAZER.
    • Fixed a crash at startup when the saved client theme no longer exists in ClientDefinitions.ini. By @11EJDE11.
    • Fixed a hang when loading a map with an invalid ExtraTexture, and a crash on tunnels with an invalid IP address. By @11EJDE11.
    • The lobby now shows a notice instead of crashing when the game fails to launch. By @CnCRAZER.
    • Fixed a crash when pinging fails under CrossOver on macOS. By @QyInvoLing.
    • Fixed the client crashing when StartShellProcess fails. By @SadPencil.
    • Fixed DLL search setup when running under Wine. By @oguzhantanrikulu.
    • Lobby joins that exceed the player limit are now rejected, and lobby dialogs now close with the CnCNet game lobby. By @keysmon.
    • Fixed the expected rank star being hidden in game lobbies, and channel size not updating from Lobby Settings. By @11EJDE11.
    • Fixed the previous match being saved to statistics again after an aborted start. By @CnCRAZER.
    • Fixed non-English characters in chat sometimes being garbled. By @CnCRAZER.
    • Fixed CampaignForcedSpawnIniOptions not being applied when loading a saved game. By @SadPencil.
    • Fixed the save date/time being cut off in the game loading window. By @Flactine.
    • The updater retries a failed download up to five times with a short wait, and reuses files that were already downloaded when an update is retried. By @11EJDE11 and @SadPencil.

Migrations

Please check section 3.0.0 in Migration.md, or use the Migration Tool. In short:

  • As with every update, delete the Binaries and BinariesNET8 folders in Resources before copying in the new client files.
  • Fonts.ini must be migrated: per-font Fallback=N keys are replaced by a shared [FallbackFonts] section, and [Fonts]->Count is no longer used. Migrate every copy of Fonts.ini, including those in theme and translation folders.
  • The default tunnel mode is now Dynamic (V3). If you really want to opt out and keep V2 as the default, set TunnelMode=2 in [MultiPlayer] of Resources/UserDefaults.ini.
  • Copy negotiating.png and negotiationFailed.png into your Resources folder.
  • The Options window has a new Storage tab. To fit seven tabs in the existing 576 px window, tabs now use 78 px art. Therefore, copy 78pxtab.png and 78pxtab_c.png into your Resources folder, or provide your own.
  • After the UI library update, alignment can differ slightly. Check labels, buttons, list boxes and drop-downs for clipping.

See also NewFeatures.md for the optional features you can adopt.

New Contributors

Full Changelog: 2.13.4...3.0.0