Skip to content

Master Server Emulator for Battlefield: Bad Company 2 that aims to be complete replacement for the original master server, allowing to play the game without contacting EA servers.

License

Notifications You must be signed in to change notification settings

silly7722/BFBC2_MasterServer

Repository files navigation

Battlefield: Bad Company 2 Master Server Emulator

Master Server Emulator for Battlefield: Bad Company 2 that aims to be complete replacement for the original master server, allowing to play the game without contacting EA servers. This is based on packets I captured from the original master server and the game itself. Game Clients and Servers need to use BFBC2_Hook to be able to connect to this server, because I reworked how game communicates - to make it more modern.

Demo Server

Config (for BFBC2_Hook, if you didn't override it in config you don't need to configure it manually):

  • Address: bfbc2.grzyb.dev
  • Port: 443
  • Secure: Yes

Serial Keys:

  • Activate base game: ACTIVATE-GAME
  • Activate Vietnam DLC: ACTIVATE-VIETNAM
  • Activate access to SPECACT kits: ACTIVATE-SPECACT
  • Activate Premium Edition (some game items are pre-unlocked): ACTIVATE-PREMIUM
  • Activate veteran rank/weapons (M1 access): ACTIVATE-VETERAN

Table of Contents

Game Info

Battlefield: Bad Company 2 Cover

Type Value
Developer(s) EA DICE
Publisher(s) Electronic Arts
Writer(s) David Goldfarb
Composer(s) Mikael Karlsson, Joel Eriksson
Series Battlefield
Engine Frostbite 1.5
Platform(s) Microsoft Windows, PlayStation 3, Xbox 360, iOS, Kindle Fire
Genre(s) First-person shooter
Mode(s) Single-player, Multi-Player

Legal notes

  • The project doesn't contain any original code from the game!
  • To use this project you need to have an original copy of the game (bought from Origin), the project doesn't make piracy easier and doesn't break any of the DRM included in-game.

Requirements

  • Docker and Docker Compose

Eventually, running manually:

  • Python 3.7+
  • See requirements.txt for Python dependencies (...or just install everything via pip install -r requirements.txt)
  • Redis server
  • PostgreSQL server

Setup

  • See .env.template for required environment variables
  • Create .env file with required environment variables

Either use VSCode "launch" configuration or run manually:

  • Apply all environment variables from .env file
  • Install requirements: pip install -r requirements.txt
  • Start postgres and redis server
  • Run python manage.py migrate
  • Run python manage.py runserver
  • Create superuser: python manage.py createsuperuser
  • Create serial keys by logging to Django Admin panel

Example Traefik configuration can be found in 'docker-compose.yml' file

Credits

Special thanks to:

  • Domo and Freaky123 (for sharing the Server Files and the v10.0 source code)
  • Aluigi (for the tools that made it possible to view and record the BF:BC2 network traffic)
  • DICE (for making the game)

About

Master Server Emulator for Battlefield: Bad Company 2 that aims to be complete replacement for the original master server, allowing to play the game without contacting EA servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published