https://github.com/OpenLoco/OpenLoco Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners + Executive Insights * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} OpenLoco / OpenLoco Public * Notifications You must be signed in to change notification settings * Fork 159 * Star 1.3k An open source re-implementation of Chris Sawyer's Locomotion openloco.io/ License MIT license 1.3k stars 159 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 280 * Pull requests 23 * Discussions * Actions * Projects 3 * Wiki * Security * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Wiki * Security * Insights OpenLoco/OpenLoco master BranchesTags [ ] Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 3,423 Commits .github .github cmake cmake data/language data/language distribution distribution scripts scripts src src thirdparty thirdparty .clang-format .clang-format .clang-tidy .clang-tidy .editorconfig .editorconfig .gitattributes .gitattributes .gitignore .gitignore .gitmodules .gitmodules CHANGELOG.md CHANGELOG.md CMakeLists.txt CMakeLists.txt CMakePresets.json CMakePresets.json CONTRIBUTORS.md CONTRIBUTORS.md LICENSE LICENSE README.md README.md docker-compose.yml docker-compose.yml loco.exe loco.exe vcpkg.json vcpkg.json View all files Repository files navigation * README * MIT license OpenLoco An open source re-implementation of Chris Sawyer's Locomotion. A construction and management simulation video game that simulates running a transport company. --------------------------------------------------------------------- [55420349-1] 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 Download master 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), 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. The reimplementation efforts of OpenLoco are gradual, aiming to ultimately rewrite the entire game in C++. In the earlier years of the project, the in-game UI has been completely reimplemented, and most of the underlying data and object structures have been uncovered. Recent efforts have focussed on reimplementing the game (command) logic. Once this has been completed, it is 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 all logic has been reimplemented, 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 only for Windows. For Linux and BSD distributions, we currently do not provide any builds. Please refer to the next section to compile the game manually. For macOS, we recommend using Wine. 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. Alternatively, we have platform-specific guides for Ubuntu and macOS. If you just want to play the game, you can just download the latest release from GitHub. Releases are currently only provided for Windows (32-bit only). 4.1 Building prerequisites The following libraries/dependencies are required: * libpng * libzip * OpenAL * SDL2 * yaml-cpp (fetched during CMake generation) * fmt (fetched during CMake generation) * breakpad (only required on Windows) Windows * 7 / 8 / 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 * 32-bit versions of the libraries mentioned above --------------------------------------------------------------------- 4.2 Compiling and running Note: The game can currently only be built for 32-bit architectures. 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-msvc/openloco.sln". 4. Select a config Debug or Release and run Build -> Build Solution. 5. Run the game from "build/windows-msvc//OpenLoco.exe" or within VS. Alternatively using CMake use the following commands. 1. Run cmake --preset windows-msvc 2. Run cmake --build --preset windows-msvc-release Linux: The standard CMake build procedure is to install the required libraries, then: cmake --preset linux cmake --build --preset linux-release Installing some packages can be problematic on desktop AMD64 distributions. 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. 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 MacOS For technical reasons OpenLoco can only be built as 32-bit x86 application, for which Apple dropped support in Mac OS 10.15. We can't provide MacOS builds at this time. --------------------------------------------------------------------- 5 Licence OpenLoco is licensed under the MIT License. --------------------------------------------------------------------- 6 More information * GitHub * TT-Forums * Locomotion subreddit About An open source re-implementation of Chris Sawyer's Locomotion openloco.io/ Topics game windows macos linux c-plus-plus cmake simulation sdl2 transport help-wanted trains locomotion hacktoberfest transport-tycoon Resources Readme License MIT license Activity Custom properties Stars 1.3k stars Watchers 44 watching Forks 159 forks Report repository Releases 60 v24.11 Latest Nov 28, 2024 + 59 releases Packages 0 No packages published Contributors 62 * @AaronVanGeffen * @duncanspumpkin * @marijnvdwerf * @IntelOrca * @ZehMatt * @janisozaur * @LeftofZen * @petergaal * @niceeffort * @Svelbeard * @trebla64 * @memellis * @jgottula * @Gymnasiast + 48 contributors Languages * C++ 98.7% * CMake 1.1% * Python 0.1% * XC 0.1% * Objective-C++ 0.0% * C# 0.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.