Docs / Playing / User guide
Mods and the content folder
The content folder lies beside the game (beside openOMSI.app on macOS). When that place
cannot be written to (for example under Program Files), it is ~/.openomsi/content
instead.
It is laid out like an OMSI 2 installation - Vehicles, maps, Sceneryobjects,
Splines, Texture, Fonts, Plugins, TicketPacks, Drivers, Weather, … - and is
searched before the original folder: whatever a mod puts there is found exactly as if it
had been copied into OMSI 2, and a file of the same name replaces the stock one.
The
original installation is never written to. OMSI_CONTENT=/some/dir moves the content
folder; the Content folder button on the Mods page opens it.
Depot files can also be placed in a top-level HOFs/ folder. Every vehicle can use those
.hof files without keeping a separate copy in each Vehicles/<bus>/ folder. If a
vehicle folder and HOFs/ contain the same file name, the vehicle's own copy takes
priority (the launcher's depot list shows the shared ones after the bus's own).
A map names the depot files its buses need in maps/<map>/ailists.cfg. When a mod map is
installed in the openOMSI content folder and some of those files are missing from HOFs/, the
launcher's Mods page asks whether to share them with every bus.
Share with every bus
copies them there from the map's folder or from any bus that brought them, so every bus, the
stock ones included, can use the map's depot without copying .hof files by hand.
Not for this map leaves them where they are: some maps (Grand Paris Moulon, for example) have one depot per company or per bus, and buses with their own IBIS show wrong destinations with another one.
Without the copy, a bus that lacks a depot still finds it in the map's folder, and when you choose a line the launcher picks the bus's or the map's depot that carries it. The copy belongs to the map's mod: switching the map off or removing it takes the copy with it. The original OMSI installation is not changed.
A depot file the map needs
that no installed content provides is shown as a warning on the launcher's
Mods page. The Add HOF files to buses button on that page (desktop launcher) copies
.hof files you choose into the content folder's HOFs/; files already there are left
untouched.
Installing a mod: on the launcher's Mods page, Choose a folder or Choose archive
opens the system's picker for a mod folder or a .zip, .7z or .rar archive, or you can
drop one onto the window.
The launcher sorts it into place: OMSI-style folders anywhere
inside are merged, and a lone bus, map, object or spline folder is recognised by its
.bus / global.cfg / .sco / .sli files and put under the right folder. Anything put
into the Mods/ folder (shown on the page) is installed by itself once it has finished
copying.
openomsi-launcher --cli install '{"path":"/path/to/mod.7z"}' and --cli mods
do the same from a shell. An installation is a background job: the disk is checked for
room before anything is unpacked, everything is unpacked into a staging folder and moved
into place in one step, and a cancelled or failed install leaves nothing behind.
A repaint for a bus that is not installed waits (listed under Waiting for their bus) and is installed when the bus arrives. The page lists the installed mods: each can be switched off (kept, but not used) or deleted.
Archives can also be used in place: a .zip laid out like OMSI 2 is put into the
content folder's Archives/ (hard-linked when it is on the same disk, moved from the
Mods/ folder, else copied after a free-space check) and read by the game without
unpacking (--content-zip and OMSI_CONTENT_ZIP mount further archives).
The page's
Archive install mode chooses: Auto (the default) unpacks what fits on the disk and
uses an archive in place when its unpacked size does not, Unpacked always unpacks,
Used in place keeps the .zip. .7z and .rar archives are always unpacked.
--cli install '{"path":…,"mode":"inplace"}' (or extract / auto) and
--cli modinfo '{"path":…}' do the same from a shell. The launcher's lists see the maps
and buses inside the archives.
Something wrong or missing? Fix it on GitHub or open an issue.