Skip to content

openMapper v0.3.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 02:12
· 2 commits to main since this release
d2637fa

Added

  • History and branches: versions of the map, as git keeps them for code (File > History and branches…): every save is kept as a version with the edits it brings as its message, and "Keep a version" keeps one by hand; each file is kept once in <content>/openMapper/history/<map>, never in the map. A version shows what it changed, as a list and marked on the map: objects and splines added, removed, moved or changed, tiles whose ground changed, the timetable, traffic and settings files; any two versions, or one and the map as saved, can be compared. Branches are made from any version, switched, renamed and deleted; an old version can be restored as a new one or opened as a branch. A branch merges into the current one from the version both came from, object by object and spline by spline (text files line by line), with conflicts and every incoming change decided one by one, and new objects numbered alike on both sides given new IDCodes. A branch's changes go to others as one .ompatch file that they open as a branch to look at and merge. "Who changed it?" names the versions that added the selected object or spline and changed it last.
  • Every command found in the search (Ctrl+K): what was only in the menus (Reload from disk, Quit, Deselect, the satellite overlay, the names of stops, flattening the terrain, ground textures) and every keyboard command (the move, rotate and scale handles, editing the mesh, joining and grouping objects, looking straight down) is found by its name.
  • Each tool says what to click: the tool's panel starts with a line on what the mouse does with it, also shown in the status bar when there is room; empty lists (groups, lines, a trip's stops, signal routes, the history's versions) say how to fill them.
  • The satellite overlay's opacity in the View menu, as the features list had it.
  • Tiles exported as OBJ (Tiles tool > Export objects and splines as OBJ…): a click chooses a tile, Shift+click adds more, and every object, road and row of objects on them is written into one OBJ for Blender (#157).
  • Vertex and edge snap land on a spline's profile, not only on objects (#157).
  • Spline editor (Tools > Spline editor, or from a spline selected on the map): a .sli road's cross-section edited in 2D (vertices, height profile, paths, the origin, with a grid and a ruler of the widths) and seen in 3D with its length, radius, grade, cant and seasons; textures assigned from a palette, UVs fitted, mirrored and scaled, profiles duplicated or mirrored, another .sli merged beside it. A spline of the OMSI 2 installation is saved into the content folder, never over the installation's (#159).
  • Terrain brush "To the surface": the ground under the brush is fitted to just below the objects and splines covering it, with an offset to set, sloped surfaces keeping their slope (#158).
  • Lean with the surface: an object, a row along a road or an attached object is tilted to lie flush on the object or spline under it, its facing kept; the rotation fields now step by 0.01° (#161).
  • Plants chosen several at once for the plant brush, paths of a crossing snapped to their neighbours' ends in one go, and Hide trees in the View menu and the command search (#159).

Changed

  • Sculpting is drawn live: the ground follows the brush at full frame rate on tiles with roads, and the road cuts are made again once the stroke pauses instead of on every frame (#160). Vertex and edge snap aim where the cursor points (#158).
  • A whole map saved in 8 s instead of 111: every file of a save was flushed out of the drive's cache on its own, twice, and on macOS such a flush costs 10 to 20 ms; Chistogorsk's 2 084 tiles took almost two minutes. The files are now prepared on several threads and the drive's cache is flushed once, before any of them replaces an old file. Autosaves go the same way.
  • A big map's history starts in seconds: the first version of Chistogorsk (2 114 tiles, 14 000 files) is kept in 2.7 s instead of a minute, Berlin-Spandau's in 0.3 s; the files are read on every core, and one a crash damaged is found out when it is read.
  • Each way back says what it keeps: File > Earlier versions (the files the last 10 saves replaced) and File > History and branches (every version) explain themselves on hover, and a greyed-out button of the history says what it waits for.
  • The code split into smaller files (src/editor/, src/app/, src/ui/, src/ui_crossing/), moved only, with tests that pin what a map, a road, a junction and the timetable are written as byte for byte; see docs/REFACTOR.md.

Fixed

  • Turning the view keeps the tiles and aerial photos under the camera: they follow where the camera stands, not the point it looks at, so turning no longer drops the tiles underneath or reloads every aerial photo (#157).
  • Settings and Controls with a map open: File > Settings… and Help > Controls are in the menus again, and Ctrl+,, shown in the menus all along, opens Settings; the messages that sent people to a "View > Controls" that was not there say Help > Controls.
  • F12 on Windows saves the picture into Pictures in the user's folder, not beside the program.
  • Failures that were silent are said: a tile picture whose pieces could not be written, and a script project whose loader could not be written (the window said "Saved"), now say so.
  • No crash from the timetable's trips, the imagery workers, the traffic and history windows when what they point at went in the same frame, nor from a broken OpenStreetMap way.
  • The snapping buttons named V and L as their keys; they are on Shift+V and Shift+L. The Russian help of Blender's keys said what the keys are not.
  • History: comparing a version with the map as saved while a save kept a version could fail to write the history's cache.