百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

OpenLoco

> 编程语言
开源

An 开源 重新实现了 Chris Sawyer 的 Locomotion

1.8K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

An 开源 重新实现了 Chris Sawyer 的 Locomotion

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

  • 1 - Introduction
  • 2 - Downloading the game (pre-built)
  • 3 - Contributing
  • 4 - Compiling the game
    • 4.1 - Building prerequisites
    • 4.2 - Compiling and running
  • 5 - Licence
  • 6 - More information

Build Status

Windows / Linux / MacOS Download master

Chat

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

1 Introduction

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

CSL was originally written in x86 assembly, building on top of the RollerCoaster Tycoon 2 engine. However, the engine has changed substantially enough that OpenLoco currently does not share its codebase with OpenRCT2.

As of December 2025, we have completed reimplementing the game in C++. It is now our goal to get a solid multiplayer experience working in OpenLoco. It is also our goal to increase the map and vehicle limits. However, until creating a new save format (NSF), we are bound to the limits imposed by the CSL save format (SV5/SC5).


2 Downloading the game (pre-built)

The latest releases can be downloaded from GitHub. Releases are currently provided for Windows, Linux and MacOS. For BSD distributions, we currently do not provide any builds. Please refer to the next section to compile the game manually. For macOS the builds are unsigned and unnotarized. This means that Gatekeeper may block them.

Please note that OpenLoco requires the asset files of the original Chris Sawyer's Locomotion to play the game. It can be bought at e.g. Steam or GOG.com.


3 Contributing

We warmly welcome any contributions to the project, e.g. for C++ code (game implementation, bug fixes, features) or localisation (new translations). Please have a look at our issues for newcomers.

For code contributions, please stick to our code style. You can use clang-format to apply these guidelines automatically.


4 Compiling the game

If you would like to contribute code to OpenLoco, please follow the instructions below to get started compiling the game.

If you just want to play the game, you can just download the latest release from GitHub. Releases are provided for Windows (64 & 32-bit) / Linux (64-bit only) / MacOS (arm64 only).

4.1 Building prerequisites

The following libraries/dependencies are used:

  • libpng
  • libzip
  • OpenAL
  • SDL3
  • yaml-cpp (fetched during CMake generation)
  • fmt (fetched during CMake generation)
  • sfl (fetched during CMake generation)
  • breakpad (only required on Windows)
  • tbb (only required if using libstdc++)
  • gtest (only required for building tests)

Windows

  • 10 / 11
  • Visual Studio 2022
    • Desktop development with C++ (ensure MFC component is selected)
    • Dependencies are managed with vcpkg

Linux

  • cmake 3.22+
  • make or ninja
  • If building x86-32 then 32-bit versions of the libraries mentioned above
  • Dependencies can optionally be managed by vcpkg

MacOS

  • cmake 3.22+
  • make or ninja
  • Libraries mentioned above installed to standard paths using e.g. Homebrew
  • Dependencies can optionally be managed by vcpkg

4.2 Compiling and running

Windows:

  1. Check out the repository. This can be done using GitHub Desktop or other tools.
  2. With VS 2022 use the "Open a local folder" option to start the project file generation. This may take some time as it downloads dependencies.
  3. After successful generation of the project files open "build/windows/openloco.sln".
  4. Select a config Debug or Release and run Build -> Build Solution.
  5. Run the game from "build/windows//OpenLoco.exe" or within VS.

Alternatively using CMake use the following commands.

  1. Run cmake --preset windows
  2. Run cmake --build --preset windows-release

Linux:

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

cmake --preset posix
cmake --build --preset posix-release

Note: If building x86-32 installing some packages can be problematic. To work around this, you can use our Docker images for compilation.

Note: Due to issues with distro yaml-cpp packages, its source release is downloaded during CMake generation.

MacOS

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

cmake --preset posix
cmake --build --preset posix-release

Note: Only arm64 builds have been tested.


5 Licence

OpenLoco is licensed under the MIT License.


6 More information

  • GitHub
  • TT-Forums
  • Locomotion subreddit

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •1 - Introduction
  • •2 - Downloading the game (pre-built)
  • •3 - Contributing
  • •4 - Compiling the game
  • •4.1 - Building prerequisites
  • •4.2 - Compiling and running
  • •5 - Licence
  • •6 - More information
  • •yaml-cpp (fetched during CMake generation)
  • •fmt (fetched during CMake generation)

> 标签

C++c-plus-pluscmakegamehacktoberfest

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言