How openomsi-project/openomsi works
openOMSI is a Rust recreation of OMSI 2 that runs on the user’s original installation and content. The documented user journey is to locate or select that installation, choose a map, bus and duty, then start driving. The app coordinates runtime simulation and rendering, while separate crates cover compatibility formats, audio, textures, and LAN play; documented capabilities also include mods, VR, and a dedicated server. The graph follows README-described relationships and sampled source references; unsampled subsystem internals are not asserted.
Main entry points: app.rs Game app · vehicle.rs Vehicle simulation · pages.rs Launcher · scene.rs World and scene
Components 20
Launcher and setup
- Launcher
crates/omsi-app/src/launcher/pages.rs - Install discovery
crates/omsi-cfg/src/install_search.rs - Settings
crates/omsi-app/src/settings.rs
Driving runtime
- Game app
crates/omsi-app/src/app.rs - Drive selection
crates/omsi-app/src/game_lists.rs - Vehicle simulation
crates/omsi-sim/src/vehicle.rs - World and scene
crates/omsi-app/src/scene.rs - Controller input
crates/omsi-app/src/controllers.rs
Content compatibility
- Map data
crates/omsi-map/src/tile.rs - Vehicle content
crates/omsi-vehicle/src/vehicle.rs - OMSI content config
crates/omsi-content/src/lib.rs - Script runtime
crates/omsi-script/src/vm.rs
Engine services
- Texture loading
crates/omsi-texture/src/dds.rs - Rendering
crates/omsi-render/src/lib.rs - Audio mixer
crates/omsi-audio/src/mixer.rs
Multiplayer and extensions
- LAN sessions
crates/omsi-net/src/lib.rs - Dedicated server
crates/omsi-app/src/server.rs - Plugins
crates/omsi-plugin/src/lib.rs - VR support
crates/omsi-app/src/openxr.rs
Other components
- Player
Connections 21
- Player → Launcher: starts
- Launcher → Install discovery: finds installation
- Player → Launcher: chooses settings
- Launcher → Settings: stores preferences
- Player → Drive selection: selects map and duty
- Drive selection → Game app: starts session
crates/omsi-app/src/app.rs - Install discovery → OMSI content config: provides original content
- OMSI content config → Map data: loads map files
- OMSI content config → Vehicle content: loads bus files
- Game app → Vehicle simulation: runs driving session
- Game app → World and scene: renders world
crates/omsi-app/src/app.rs - Player → Controller input: drives
- Vehicle simulation → Script runtime: executes vehicle scripts
- World and scene → Texture loading: loads textures
- World and scene → Rendering: draws scene
- Vehicle simulation → Audio mixer: produces vehicle sound
- Player → LAN sessions: joins LAN play
- Game app → LAN sessions: exchanges multiplayer state
- Player → Dedicated server: runs dedicated server
- Vehicle simulation → Plugins: supports plugins
- Player → VR support: uses VR