Beschreibung
This tool fixes the OSM-API problems that make it impossible to run HEMS missions for example. I'm pretty happy how this project turned out, and excited to share it with the community. The program can be run fully offline for extra safety.
GitHub for more details and possible bug reports: https://github.com/ratuom/H145-Local-OSM
Installation
1. Download H145-Local-OSM-portable.zip.
2. Extract the complete archive.
3. Run H145-Local-OSM.exe.
Build a database
Open the Build page:
1. Choose Download from Geofabrik API or Local .osm.pbf files.
2. Select the regions or local files to import.
3. Select the MSFS Community folder if it is not detected automatically.
4. Enable Limited-hardware topology (serial) only when lower resource use is preferred over build speed. Recommended only for very limited hardware
5. Select Build database.
Connect to HPG and start the server
Open the Server page:
1. Select a database.
2. Run Validate database after building or replacing data.
3. Under Compatibility patches, use Patch for the HPG connection.
4. If a supported R&E version is installed, use Patch for the R&E missions.
5. Update mission index from H145 tools or the action center
6. Select Start server.
7. Make sure Local OSM is selected as the OSM provider in game.
Keep the extracted directory together because the application depends on files in _internal.
Main features:
- Local OSM database – download selected countries or regions, or import your own .osm.pbf files for a fully offline workflow.
- High-performance querying – the database is optimized specifically for the types of location searches used by H145 missions.
- Fast indexing – road, tag, spatial and topology indexes are built in advance so the application can find suitable mission locations quickly instead of scanning raw map data every time.
- HPG H145 support – can be patched directly from the application, with backup and restore available.
- Random & Everywhere support with an option to apply a custom patch for some bug fixes that are a result from limited amounts of OSM data – R&E can be patched directly from the application, with backup and restore available. This is optional but recommended.
- Support for other compatible missions – the backend is not limited to the default H145 or R&E missions, and can serve also other mission packages that use supported query patterns. This process is automated, so after adding new missions to your community folder, just a database rebuild will be needed to add support.
- Offline mission queries – once your database has been built, mission queries are handled locally without depending on a public Overpass server.
- Multi-region databases – combine multiple countries or regions into one database.
- Support for multiple databases - switch between any combination of country databases.
- Built-in validation and benchmarking – check that your database is working correctly and measure its performance.
- Local-only server – the service listens only on your own computer and is not exposed to the internet.
The main advantage of this solution is reliability, since the database lives on your own computer, there will be no downtime issues like with outer service providers. Because the data is preprocessed and heavily indexed for mission use, queries can also be served very quickly even when working with large regional databases.
I recommend starting with a smaller database you will actually use. Some build phases are very expensive computationally, and require a lot of storage. For reference, i am using a database consisting of Nordics (Finland, Sweden, Norway, Iceland, Denmark). It took 55 minutes to build and uses 14.8GB of storage. A single medium size country should take around 10 minutes. If you want to just test it out quickly, choose some smaller countries like Monaco, these should build almost immediately. The expensive database building part is optimally a single time operation, and i would recommend adding a bunch of smaller databases to your library if needed, rather than trying to build continents at the same time. Switching databases is very simple and quick.
Thank you for everybody who helped me with the development and i really hope you enjoy the project!
HPG Airbus H145 Action Pack: Local OSM server for missions
This add-on provides a local OpenStreetMap (OSM) server for HPG Airbus H145 missions in Microsoft Flight Simulator, fixing the mission queries that need location data. Users can download or import regional OSM data, build optimized mission databases, and manage multiple regions with built-in validation tools. The server operates locally for improved reliability and performance, supporting both default and compatible custom missions.
Nutzerbewertungen
13 Bewertungen
Versionsgeschichte
Database builds now correctly adapt to installed missions, expanding custom mission support and checking query compatibility. ## Added - Automatically include features required by supported custom mission queries, including previously unrecognized exact tag values. - Support mission requirements for beaches, power towers, places of worship, cathedrals, monuments, archaeological sites, attractions, and waterfalls when those features are present in the selected OSM data. - Expand query support to quoted tag keys, relation selectors (`relation`/`rel`), combined object types (`nw`, `nr`, `wr`), comments, and nested unions. ## Changed - Derive the entire feature import profile from detected, non-excluded mission queries. New builds no longer import a fixed baseline of feature categories; required geometry dependencies, country boundaries, and complete tags on retained objects are preserved. - Require a Community/Packages folder containing mission queries for both downloaded-region and local PBF builds. Builds stop with a notice if no folder is selected, no queries are found, or all files containing queries are skipped. Command-line builds require `--packages-root`. - Extend the pre-build mission check to list unreadable files, unsupported queries, and overly broad import requirements, with full file paths and reasons. Choose **Cancel** or **Continue without these files**. Skipping excludes each listed file for that build and leaves installed files unchanged; missions in skipped files may not work with the resulting database. - Recheck the remaining missions after exclusions. Store each database's import profile and skipped-file list so query filtering, validation, and benchmarking use that database's requirements. ## Fixed - Reject unsupported query structures and malformed or unsupported filters instead of executing only the recognizable parts of a query. - Preserve regex substring matching when deciding what to import; only fully anchored literal alternatives are treated as exact values. Negative-only filters no longer count as sufficient grounds for a limited import. - Accept completed road indexes containing zero roads and report valid imports with no matching features as warnings instead of incorrectly rejecting the database. - Preserve compatibility with older databases and their compact tag indexes.


Melden Sie sich an, um an der Diskussion teilzunehmen
AnmeldenKommentare72
Server Running but HPG connections+ r&e mission = unaviable :(
The port you are using 8765 conflicts with Pimax Play. Is there any way to change this?
Thank you for your patience and continued support.
2. Confirm H145 Local OSM and R&E use the same active Community folder.
3. From the Community folder, run hpg-airbus-h145\Tools\Update Mission Index.cmd and check for errors.
4. Start the local server, restart MSFS, and open R&E again.
5. Update the mission index from the tablet as well.
If this does not work, i am not able to reproduce this bug. You can DM me your everywhere_all.json and hpg-airbus-h145\html_ui\HPGH145-System\GeneratedMissionIndex.json and i can take a look and try to figure out what is going on.
Dieser Kommentar wurde gelöscht
Tolle Arbeit
I know nothing about OSM technically but I downloaded and installed your utility, your written instructions plus the video made it straightforward to get it working. Thank you so much for your time and effort in providing this for us. I am now happily back flying HEMS missions in my H145 :-) Kind regards
The software works perfectly with version 0997 Random & Everywhere.
However, I downloaded Beta versions 0.997 169.xx (169.26 to 169.45) from their Discord server, and now I can't apply the patch. I get the following message:
“R&E CICERS PING section was not found.”
Is this normal, since your software doesn't yet support beta versions ?
RESOLVED
The problem came from the formatting of the new ‘everywhere_all’ files.
The script searches for exact character strings, and in the new files there are spaces or line breaks within the strings being searched for, which causes the script to crash