An open source re-implementation of Chris Sawyer's Locomotion. A construction and management simulation video game that simulates running a transport company.
- 1 - Introduction
- 2 - Downloading the game (pre-built)
- 3 - Building the game
- 4 - Licence
- 5 - More information
|Windows||Linux / Mac||Download|
Feel free to join our Discord server to talk about developing the game, or for help getting it to run.
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 originally 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. However, the engine has changed substantially enough that OpenLoco currently does not share its codebase with OpenRCT2.
Recent implementation efforts have focussed on re-implementing the UI, so that the data structures involved may be better understood. Once this is done, it is our hope the game logic will be easier to understand and implement.
2 Downloading the game (pre-built)
The latest release can be found on GitHub.
3 Building the game
3.1 Building prerequisites
Regardless of platform, the following libraries/dependencies are required:
Linux / macOS
- make or ninja
- 32-bit versions of the libraries mentioned above
3.2 Compiling and running
- Check out the repository. This can be done using GitHub Desktop or other tools.
- Open a new Developer Command Prompt for VS 2019, then navigate to the repository (e.g.
msbuild openloco.sln /t:restore;build
mklink /D bin\data ..\dataor
xcopy data bin\data /EIY
- Run the game,
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
ln -s ../data OR cp -r ../data ./data
OpenLoco is licensed under the MIT License.