Docs / Reference / Content formats
Vehicle list and coupled parts
OMSI offers the .bus/.ovh files that have a [friendlyname] (all stock buses; the GN92's
rear section, most _KI AI variants and the AI cars have none).
A rear section has
[coupling_front] (and [scriptshare]: no scripts of its own, the front's variables drive
it) and is named by the front's [couple_back] file reversed, resolved from the front's
folder in whichever content root has it. openOMSI also keeps a coupled part with a copied
[friendlyname] out of the list, spawns the front section when a rear one is asked for, and
refuses a rear section nothing couples.
With [scriptshare] the rear section's \S:n
materials are the front's script textures (the O530G's rear display declares no
[scripttexture]) and its [texttexture]s read the front's string variables. A vehicle folder
without any vehicle file (a repaint such as "RBB VSN" for a bus that is not installed) is not
offered.
The joint of an articulated bus is reported to the front section's scripts as
articulation_<n>_alpha (about the vertical axis, clockwise degrees) and
articulation_<n>_beta (about the transverse axis); n is the coupled part's position in
the train, not a mesh index.
The stock jackknife protection watches alpha and brakes over
47° while reversing, and the joint's plates turn with it. The bellows are [smoothskin]
meshes whose [setbone] ids are the bone mesh's position in the model's first LOD, and
they follow the joint's dummy meshes; the modelled pose is the straight one.
The passenger cabins of the sections are joined by [linkToNextVeh] / [linkToPrevVeh]
path points: the rear section's seats and exits are numbered after the front's, which is
how the stock door scripts count them, and a person walking from one section to the other
crosses the joint on those links.
Omsi.exe joins two coupled cabins only where both give
these points. openOMSI also crosses a bus joint whose cabins give none, between the ends of
the two aisles, but not a trailer on a lorry's hitch ([coupling_front_character] type 0):
without the points that is a cabin of its own in openOMSI, and passengers whose place is in
it get in and out by its own [entry] and [exit] doors (a place there is not offered when
the trailer has no entry or no exit).
Something wrong or missing? Fix it on GitHub or open an issue.