openOMSI README

项目的 README,来自 github.com/openOMSI-org/openOMSI。合并为一个 markdown 文件:README.md。

openOMSI

Version Playing now Build Docs Discord Buy me a coffee Ko-fi License

[!WARNING] Early development. Expect bugs. Things may be missing, broken or change between versions. Please report problems in Issues or on our Discord server.

openOMSI is a from-scratch recreation of the bus simulator OMSI 2, written in Rust: 64-bit, multithreaded, with a modern renderer (Metal / Vulkan / DirectX 12 through wgpu). It loads the existing OMSI 2 maps, buses, scenery and mods as they are.

[!IMPORTANT] openOMSI needs an installed copy of OMSI 2. It contains no game content of its own: it plays on the maps, vehicles and other files of your OMSI 2 and will not start without one.

What you get

The openOMSI family

Project What it is
openOMSI the game and its launcher (this repository)
openMapper a simple map editor: draw roads, place objects, shape the ground, drive the map in openOMSI (docs/MAPPER.md)
openOMSI Plugins the catalog of reviewed, open source Lua plugins
Development Tools the plugin workbench: projects, API docs, the .oop compiler
Add-ons list projects others make for openOMSI, shown on the launcher's Add-ons page

Download

The newest stable version is always at Releases → Latest and on the website. Newer, untested builds are published as Pre-release (beta) on the Releases page.

Platform File
Windows x64 / ARM64 openOMSI-<version>-windows-x64-setup.exe / -windows-arm64-setup.exe - installs openOMSI for you, no administrator rights (or the .zip: run openomsi.exe)
macOS (Apple silicon / Intel), macOS 11+ openOMSI-<version>-macos-arm64.dmg / -macos-x64.dmg - drag openOMSI.app onto Applications (or the .zip)
Linux x64 / ARM64 openOMSI-<version>-linux-x64.zip / -linux-arm64.zip - run openomsi
Android 8.0+ (arm64) openOMSI-<version>-android-arm64.apk - see docs/ANDROID.md
Dedicated server openOMSI-<version>-server-<linux|windows>-<x64|arm64>.zip - see docs/SERVER.md

SHA256SUMS in each release lists the checksums of all files.

The launcher keeps itself up to date: when a newer version is out it offers it at the start and installs it with your yes. Settings → General → Updates chooses the channel (Stable or Beta), turns the check off or installs without asking.

Installation

You need OMSI 2 installed (Steam or retail) with its stock content.

  1. Install it. On Windows the -setup.exe installs openOMSI into your user folder (%LOCALAPPDATA%\Programs\openOMSI) with a Start menu entry; on macOS open the .dmg and drag openOMSI.app onto Applications. The .zip (Linux, or the portable Windows and macOS version) goes into a folder of its own that you can write to (your Documents, a games folder, or the OMSI 2 folder itself) - not Program Files, where the launcher cannot update itself.
  2. Start it.
    • Windows: openOMSI in the Start menu (or openomsi.exe). SmartScreen may warn about an unknown app: More info → Run anyway.
    • macOS: openOMSI.app. If macOS refuses an app from the internet: right-click → Open → Open, or run xattr -dr com.apple.quarantine /path/to/openOMSI.app once.
    • Linux: ./openomsi (chmod +x openomsi first if needed). It needs a Vulkan or OpenGL driver (Mesa: mesa-vulkan-drivers, or your GPU vendor's driver), and WebKitGTK 4.1 for the launcher window (libwebkit2gtk-4.1-0 on Debian/Ubuntu, webkit2gtk4.1 on Fedora, webkit2gtk-4.1 on Arch; for the Steam Deck see Troubleshooting).
    • Android: see docs/ANDROID.md - the OMSI 2 folder is copied onto the device first.
  3. Find OMSI 2. The launcher usually finds the installation by itself (Steam libraries and the usual folders). If not, open Setup, press Browse… beside OMSI 2 folder, pick the folder with Omsi.exe, maps and Vehicles in it (Steam: …\Steam\steamapps\common\OMSI 2) and press Save.
  4. Drive: choose a map, line, tour and bus on the Drive page and press Start the duty.

Mods are installed on the Mods page (a folder or an archive, or dropped onto the window) or put into the Mods folder next to the game.

When something goes wrong

Goals

  1. 1:1 behaviour. Every content format of the original loads and behaves as in OMSI 2.2.032. Existing maps and mods work unchanged.
  2. No original code or assets. Nothing from the original is copied; the formats are described in docs/FORMATS.md.
  3. A better engine. 64-bit, multithreaded, multiplayer, and every platform.

Documentation

The documentation is on the website, https://openomsi.org/, and in docs/:

Document What is in it
Getting started install, find OMSI 2, drive your first bus
Driving keys, cameras, service at the stops, photo mode
Launcher and settings every launcher page and every setting
Graphics renderers, presets, DLSS and FSR, mirrors
Mods the content folder, installing mods, the object editor
Troubleshooting performance, failed starts, logs, bug reports
Playing together hosting and joining a session
Android the mobile version: install, touch controls, building the APK
Virtual reality OpenXR headsets on Windows
Dedicated server hosting a multiplayer session without a window
Modding what openOMSI allows beyond OMSI 2: more lights, larger textures, additions OMSI 2 ignores
PBR materials normal, roughness, metalness and occlusion maps
Map packages optional surroundings a map can ship for the navigator and city map
Plugins Lua and WebAssembly plugins, .oop files, OMSI plugin DLLs (API reference)
openMapper the map editor: install and five tutorials
Trams, metros and trains rail vehicles, tracks and stations
Transport modes how a vehicle and a map say what kind of transport they are for
Trolleybuses the overhead wire and the poles
HTML textures web pages as textures in buses and on maps
Interface themes the look of the game's own screens
Voice chat talking to other players
Development Tools the plugin workbench: projects, API docs, the .oop compiler
Add-ons the launcher's directory of add-ons, and how to list yours
Content formats every OMSI 2 file format
Routes timetables, chrono, HOF files, IBIS
Building building from source on every platform
Architecture crates, threading, renderer
Debug switches environment variables for testing and bug reports
Versioning & releases version numbers, beta and stable releases
Changelog what changed in each version

Building from source

git clone https://github.com/openOMSI-org/openOMSI.git && cd openOMSI
scripts/build-macos.sh        # macOS   → dist/macos/openOMSI.app
scripts\build-windows.cmd     # Windows → dist\windows\openomsi.exe
scripts/build-linux.sh        # Linux   → dist/linux/openomsi
scripts/build-android.sh      # Android → dist/android/openOMSI-<version>.apk
scripts/build-server.sh       # server  → dist/server

Needs the latest Rust stable and the platform's C toolchain (on Linux also the WebKitGTK 4.1 headers for the launcher); details in docs/BUILDING.md.

Repository layout

openOMSI/
├── crates/        the game, one crate per subsystem (omsi-app is the program `openomsi`;
│                  formats, scripts, simulation, renderer, sound, network, plugins, launcher data)
├── launcher/      the launcher window (Tauri; web UI in launcher/ui)
├── android/       the Android app wrapper
├── apple/         the iPhone, iPad and Mac app wrapper (SwiftUI, not released yet)
├── services/      the "playing now" counter
├── tools/         omsi-check (format coverage), avatar and ambience pack builders, voice chat plugin
├── scripts/       build scripts for every platform, version.sh, release notes
├── assets/        fonts, icons, logos
├── docker/        container images of the dedicated server
├── docs/          documentation (also published on the website)
├── site/          the website
├── release/       health.json: released versions known to be broken
└── VERSION        MAJOR.MINOR of the next release

Contributing

Issues and pull requests are welcome - see CONTRIBUTING.md; how the project is run, reviewed and released is in GOVERNANCE.md.

Support

openOMSI is made in free time. If you enjoy it and want to help it along, you can buy me a coffee or support it on Ko-fi - thank you!

Buy me a coffee Support me on Ko-fi

Acknowledgements

Some ideas and fixes in openOMSI date back to the public work of neoOMSI: their reports and pull requests pointed at bugs and features that we then implemented in our own code. Thank you.

License

openOMSI is released under the GNU Affero General Public License, version 3 only (AGPL-3.0-only). The historical MIT copyright and permission notice is retained in LICENSE; earlier MIT releases keep their terms. Third-party files keep their own licenses. The launcher's bus preview encodes its pictures with jpeg-encoder: this software is based in part on the work of the Independent JPEG Group. The openOMSI name and original project logos are marks of usonskyyyy, who created the original codebase; see TRADEMARKS.md. The official organization is openOMSI.org (openOMSI-org). OMSI and OMSI 2 are trademarks of their respective owners. openOMSI is an independent project and is not affiliated with them.

openOMSI (openOMSI-org/openOMSI)

正在搜索数据库…

这是什么?openOMSI 是用 Rust 从零重写的巴士模拟器 OMSI 2 复刻版,配备现代的 wgpu 渲染器(Metal/Vulkan/DirectX 12)。它能加载并游玩原版 OMSI 2 的地图、巴士和 mod,但自身不包含任何游戏内容。
这是一个完整的游戏,还是启动器加引擎?它是一个完整的替代游戏引擎加启动器:启动器负责找到或设置你的 OMSI 2 文件夹、管理 mod 和更新,然后由它自己运行实际的驾驶模拟,读取原版的地图和车辆文件。
怎么让它跑起来?从 Releases 页面下载适合你平台的构建,解压到可写的文件夹(不要放在 Program Files),启动可执行文件,让启动器自动检测你的 OMSI 2 安装(或在 Setup 中手动指定文件夹)。然后选择地图、巴士和任务,开车出发。
我必须拥有原版 OMSI 2 才能使用它吗?是的,这是强制要求。openOMSI 需要一份已安装的 OMSI 2(Steam 或实体零售版)及其自带地图和巴士——没有它就无法启动,而且原安装文件夹绝不会被修改。
它现在就能正常使用,还是仍处于早期?这是一个早期版本:要预料到会有 bug,功能可能缺失、损坏,或在不同版本之间变动。项目通过 GitHub Issues 和 Discord 跟踪问题。
它能运行在哪些平台上?Windows(x64/ARM64)、macOS(Apple Silicon 或 Intel)、Linux(x64/ARM64)和 Android 8.0+(arm64),另外还有面向 Linux 和 Windows 的独立专用服务器构建。
诊断导出实际会发送什么数据?导出的诊断包包含程序、系统、显卡/驱动/设置、控制器信息以及上一局游戏的地图和巴士,但明确不包含文件夹路径、姓名、聊天、局域网代码或地址——而且不会有任何内容被自动发送,需要你自己附上提交。
为什么要重写 OMSI 2,而不是直接用原版?目标是打造一个现代的 64 位多线程引擎,在工作者线程上进行流式/纹理加载(没有 2GB 限制,没有单线程卡顿),外加局域网多人游戏和专用服务器——同时对现有内容的行为与原版完全一致。
我可以用现有的 mod 地图玩多人游戏吗?可以,但双方都需要有房主的地图:直接放在 OMSI 2 文件夹里的地图不会被共享,而通过 Mods 页面安装的地图会自动传给加入的玩家。
支持 VR 吗?支持,有一个基于 OpenXR 的虚拟现实模式,拥有自己独立的设置和操控,在 Windows 上有单独文档说明。
如果我的显卡不支持 Vulkan 怎么办?openOMSI 会自动从 Vulkan 退回 DirectX 12,再退回 OpenGL;你也可以在 Settings → Graphics 中手动选择图形 API。
有哪些类似的项目?bgfx, pt-pc, OpenRCT2, Yakumo, iw4L, luanti, JoltPhysics, LostOdysseyRecomp
大小
134.7 MB
星标
774
时长
2个月
提交 · 90 天