No description
Find a file
2020-04-21 10:49:13 +02:00
.github Exclude thirdparty scripts from clang-format checks. 2020-03-19 00:55:49 +01:00
cmake Fix Travis CMake builds for Linux and MinGW targets. 2018-10-08 09:29:17 +02:00
data/language nl-NL: Translate some more strings (#408) 2020-04-12 15:28:21 +02:00
distribution Generate and build macOS app bundles through CMake. 2019-02-26 09:38:44 +01:00
dockerfiles Remove Boost from Fedora Dockerfile. 2020-03-19 00:55:49 +01:00
resources Set window icon to OpenLoco logo 2019-02-24 20:53:47 +00:00
scripts Exclude thirdparty scripts from clang-format checks. 2020-03-19 00:55:49 +01:00
src/openloco Fix #396: Preferred owner name is not saved (#422) 2020-04-21 10:41:07 +02:00
.clang-format Update .clang-format for new version of clang-format 2020-03-17 21:02:25 +00:00
.gitignore Generate and build macOS app bundles through CMake. 2019-02-26 09:38:44 +01:00
.travis.yml Travis: stop using transfer.sh for macOS jobs. (#407) 2020-03-23 11:37:41 +01:00
appveyor.yml Update OpenLoco version to v20.03. 2020-03-23 11:40:57 +01:00
CHANGELOG.md Update changelog for #264, #388, #396; add seifer7 to contributors. 2020-04-21 10:49:13 +02:00
CMakeLists.txt Disable stdc++fs linkage on macOS. 2020-03-19 00:55:49 +01:00
CMakeLists_mingw.txt Add mingw toolchain file for cmake 2018-01-29 00:00:53 +01:00
CONTRIBUTORS.MD Update changelog for #264, #388, #396; add seifer7 to contributors. 2020-04-21 10:49:13 +02:00
docker-compose.yml Use OpenLoco's docker images 2020-03-18 23:38:10 +01:00
LICENSE Update license to reflect project state. (#281) 2019-02-24 22:54:39 +00:00
loco.exe Cleanup loco.exe file (#6) 2018-01-21 13:18:43 +00:00
openloco.common.props Use C++17 for Visual Studio (#405) 2020-03-19 22:16:42 +01:00
openloco.sln Add initial working wrapper 2018-01-07 03:18:38 +00:00
README.md Replace Gitter link with Discord server invite. 2020-04-20 14:03:09 +02:00

OpenLoco

An open source re-implementation of Chris Sawyer's Locomotion. A construction and management simulation video game that simulates running a transport company.


Contents


Build Status

Windows Linux / Mac Download
master AppVeyor Travis CI GitHub release

Chat

Feel free to join our Discord server to talk about developing the game, or for help getting it to run.

Discord

1 Introduction

OpenLoco is an open-source re-implementation of Chris Sawyer's Locomotion (CSL). CSL is the spiritual successor to Transport Tycoon and OpenLoco aims to improve the game similar to how OpenTTD improved Transport Tycoon and OpenRCT2 improved RollerCoaster Tycoon.

Chris Sawyer's Locomotion was written by Chris Sawyer in x86 assembly building on top of his RollerCoaster Tycoon 2 engine. Much of the code is 1:1 with RollerCoaster Tycoon 2. This means that only select areas of the game such as the update logic should be written. The engine code such as audio, drawing and the window system should be left alone as it would only repeat the work that has already been done for OpenRCT2. It is more beneficial to share as much code as possible between OpenRCT2 and OpenLoco.


2 Downloading the game (pre-built)

OpenLoco requires original files of Chris Sawyer's Locomotion to play. It can be bought at either Steam or GOG.com.

The latest release can be found on GitHub.


3 Building the game

3.1 Building prerequisites

OpenLoco requires original files of Chris Sawyer's Locomotion to play. It can be bought at either Steam or GOG.com.

Windows:

Linux / macOS:


3.2 Compiling and running

Windows:

  1. Check out the repository. This can be done using GitHub Desktop or other tools.
  2. Install dependencies using vcpkg or use the nuget package.
  3. Open a new Developer Command Prompt for VS 2017, then navigate to the repository (e.g. cd C:\GitHub\OpenLoco).
  4. Run msbuild openloco.sln
  5. Run mklink /D bin\data ..\data or xcopy data bin\data /EIY
  6. Run the game, bin\openloco

Linux / macOS:

The standard CMake build procedure is to install the required libraries, then:

mkdir build
cd build
CXXFLAGS="-m32" cmake ..
make

Running the game will need the data directory from the root of the source code next to the binary. Assuming you're in $SRC/build,

ln -s ../data
OR
cp -r ../data ./data 

4 Licence

OpenLoco is licensed under the MIT License.


5 More information