Skip to content

OpenBF2 v0.2.0-rc2

Pre-release
Pre-release

Choose a tag to compare

@kr4uzi kr4uzi released this 15 Nov 13:08
· 41 commits to main since this release
70641c2

OpenBF2 v0.2.0

OpenBF2 runs Battlefield 2 1.50 natively on macOS, Windows and Linux (dedicated server) from your own copy of the game. This release adds a macOS app that installs and starts the game, brings back voice chat and demos, and closes every known gap in the game code.

Highlights

  • macOS app. openbf2-macos.dmg is a drag-and-drop disk image. OpenBF2.app installs Battlefield 2 1.50 from your own DVD or ISO plus the two official patches, checks your CD key, and starts the game. No Wine. It runs natively on Apple silicon and Intel, and it is signed and notarised, so it opens with a normal double-click.
  • Every known gap in the game code is closed. All 82 places where the game used to stop or skip work now behave as the original does, each with a test.
  • Voice chat is back, rebuilt on the voice and codec libraries the original uses: in-game voice, push-to-talk, the microphone test and the voice settings. Tested between macOS and the original Windows client in both directions.
  • Demos. Servers record rounds (sv.autoRecord 1 or demo.recordDemo); the client plays them back from +demo <file>.con and from the menu's demo list, with the free and follow cameras, the playback keys and both command roses.
  • Windows x64 client next to x86. The x64 client has no PunkBuster support (PunkBuster exists only as 32-bit); use the x86 client for PunkBuster servers. Both clients bring OpenAL Soft as their sound library.
  • Special Forces night maps (Devil's Perch, Night Flight, Leviathan) load and play on macOS.
  • Flash menus run on a recovered SwiffPlayer engine that now follows the original's structure: single player, multiplayer, server browser, options, login, loading screens.

The macOS app

  • Setup assistant: DVD or ISO, the patches 1.0 → 1.41 → 1.50, CD key, installation with one progress bar per step, then voice setup (microphone permission, level meter, volume, threshold, boost). Deluxe discs get an "Install Special Forces" checkbox.
  • Launcher: once the game is installed, opening the app starts the game straight away. Hold Option (⌥) while opening it for the launcher page: start-up options (intro movies, fullscreen or a window size, mod, a server to join with password and player name), Play, Voice Setup and "Verify Game Data…".
  • Your own mods go into CustomMods and appear in the mod list.
  • Game data, keys and profiles live in ~/Library/Application Support/OpenBF2; the app itself is never modified.

Changes

  • New profiles start at High with the highest antialiasing and a resolution that fits your screen, on every platform. The original's hardware detection only knows 2005 graphics cards and put current machines at Medium or Low.
  • Fullscreen by default, as in the original; +fullscreen 0 starts in a window.
  • Joining from the command line (+joinServer … +port … +password …) now passes the password on. The original dropped it.
  • Other players' weapons are heard again: infantry weapons and vehicle main guns fired by other players, and remote machine guns no longer keep firing on their own.
  • LAN games hosted by a macOS or Linux server bound to one address show up in the LAN list.
  • Connect to IP also works in offline profiles (the original only offers it for online accounts).
  • The loading screen shows the server IP, and the server browser shows the bot fields.
  • Clean quit from the menu, the in-game dialog and the console.
  • Ending a locally hosted game no longer hangs on macOS and Linux.
  • macOS:
    • the menu shows Battlefield 2's own animated cursors;
    • a first load takes about half as long as before, because identical shaders are compiled once;
    • weapons and buildings from Special Forces and the booster packs no longer show striped placeholder textures;
    • AMD Macs use the original's ATI shader paths;
    • the login list preselects your saved profile, and the clan prefix shows the saved value;
    • if Local Network access is denied, the server browser says so and tells you where to allow it;
    • the lock file and renderer log are written to the game folder like the original; profiles, settings and the shader cache go to Application Support.
  • Release builds keep running past a renderer feature that isn't covered yet and log it, instead of stopping the game.
  • PunkBuster uses the vendor's own 32-bit files with the x86 Windows client and server, as the original does; the x64 client, macOS and Linux clients behave as if it isn't installed.

Packages

Package Contents
openbf2-macos.dmg macOS app: setup assistant, launcher and the universal client (macOS 13.3 or later)
openbf2-windows.zip x64\ client, x86\ client (the one for PunkBuster servers), server\ (x86 dedicated server), editor\ (x86 editor)
openbf2-linux.zip Linux x64 dedicated server
openal-soft-1.25.2.tar.bz2 source of the OpenAL Soft library bundled with the Windows clients (LGPL)

Each file has a .sha256 next to it, and each ZIP contains a README with the install steps.

You need your own Battlefield 2 (DVD or ISO, regular or Deluxe), the official patches 1.0 → 1.41 and 1.41 → 1.50, and your CD key(s). OpenBF2 contains no game content.

Known limitations

  • First-use stutter on macOS: on a fresh installation the game can hitch briefly the first time a weapon or effect appears, and the first load of each map takes longer, while its shaders are built. Each one is built once and then cached. Better handling is planned for 0.3.0.
  • Case-sensitive disks: the macOS client can't find the game files on a disk formatted as case-sensitive APFS. The default format works.
  • Apple silicon: the arm64 build is compiled and packaged but hasn't been played on Apple-silicon hardware yet.
  • PunkBuster on macOS: no PunkBuster client exists for macOS, so servers that require it can't be joined.
  • Microphone on macOS: the game uses the system's default input (System Settings → Sound). The in-game microphone settings have a volume slider but no boost or mute.
  • Demos: playing from the menu's demo list and downloading a demo from a server are less tested than +demo.
  • Windows packages aren't code-signed, so Windows may show a SmartScreen warning.
  • Novint Falcon isn't supported.
  • Renderer: everything the game uses is covered. Direct3D 9 features the game itself never uses are completed in 0.3.0.
  • Ranked stats and GameSpy online services are not included.

Full Changelog: v0.1.0...v0.2.0