openOMSI GitHub Discord

Docs / Playing / User guide

Developer tools

2 min readEdit this pagedocs/USER_GUIDE.md

For those who build vehicles: Ctrl+Shift+D opens a panel at the right of the picture over the running game (again: closes it; closed it costs nothing). The game goes on under it; the mouse works the panel where it is over it and the cab everywhere else. Four pages:

  • Variables: the search lists the bus's script variables ($ before the text: its string variables) with their values; a click puts one on the watch list at the top, which is kept per bus in ~/.openomsi/devtools/<bus file>.watch.

    A watched variable chosen can be Set to a value once, or Held at it - written into the bus before its scripts run and after them, every frame, until Let go or until the panel closes.

  • Overlays over the picture: the paths and their points (with the entries and exits), the seats and standing places (and the way they face), the bounding boxes, the axles and wheels, the interior lights with their variables and values, the ticket and stamper points, the mirrors, the centre of gravity and the views - of every part of an articulated bus in its own place.
  • Mirrors: each mirror moved, turned and widened while you look at it, and Copy the block puts it on the clipboard as the [add_camera_reflexion_2] block it has become, to paste into the .bus (the block is shown under the buttons, and written to the log too).
  • Files: what changes in the bus's files is read again within a second while the panel is open (or on its button): paths.cfg and [passengercabin] (not while people are aboard and places, doors or points would go), sound.cfg, the .bus (physics, cameras, mirrors, bounding box; not when its axles change), model.cfg (animations, visibility and lights, as long as it names the same meshes) and the constfiles (as long as the scripts and their variables stay).

    A changed script needs the bus placed anew. Open the log opens the game's log. Change a copy of a bus in your content folder, never the installation's own files.

Something wrong or missing? Fix it on GitHub or open an issue.

↑↓ to move↵ to open