Skip to content

mafia2online/m2o-reborn

Repository files navigation

Mafia 2 Online
Build status Build status Discord server license

A multiplayer modification for a steam version of Mafia II.
Built with love using librg • Brought to you by @inlife, @tyldar and contributors

Description

This is a core repository of "Mafia 2 Online" multiplayer modification for Mafia II.

Mafia 2 Online is an open-source project, which is under active development. It is not yet ready to be used by players.

We invite each and everyone to contribute, to add issues regarding bags/ideas/propositions and to share this repo with everyone who could potentially be interested in such development process.

To run the binaries you are required to have a steam version of the game installed in your steam library.

Features

  • cross-platform/env project generation
  • code style somewhat influenced by Orthodox C++
  • heavy use of single-header styled libraries
  • unity builds based projects
  • fast compile time orientation
  • auto-building and auto-delivery (not fully implemented atm)

Prerequisites

  • visual studio 2017 (project itself isn't version dependant, however multiple static libs inside vendors, are built targeting vs2017, something that hepefully we gonna fix in the future)
  • bought and installed steam version of the Mafia II
  • running steam client

Structure

  • binary/ This is a folder which you should use to run client or server. Contains files and resources and scripts needed fro running them both. Compiled binaries are automatically copied there after build.
  • build/ Is a git-ignored folder where cmake will generate your project files to.
  • misc/ A set of small things/tools that are used in the repo.
  • projects/ Place where you put your code.
  • vendor/ A folder containing dependencies

Building

  1. Install cmake
windows: https://cmake.org/files/v3.9/cmake-3.9.0-win64-x64.msi (**Make sure to add to path**)
linux: using your package manager
macos: brew install cmake
  1. Clone
$ git clone https://github.com/mafia2online/m2o-reborn.git
  1. Generate project
$ generate.sh.bat
  1. Open the solution (Windows)
build/m2o-reborn.sln
  1. Build the stuff (*nix)
$ cd build && make -j4

Contributors

The list of contributors goes there (do not hesitate adding yourself):

License

Project is licensed under Apache 2.0 license. You can check it out there.