API ReferenceGE Extensionseditor
Road Network Exporter
Editor tool for exporting the level's road network to OpenDrive (.xodr), OpenStreetMap (.osm), and SUMO (.xml) formats. Requires Tech license.
Editor tool for exporting the level's road network to OpenDrive (.xodr), OpenStreetMap (.osm), and SUMO (.xml) formats. Requires Tech license.
Overview
Simple editor window (~130 lines) providing export buttons for three road network formats. Each export opens a file save dialog and delegates to the appropriate exporter extension.
Public API
| Function | Signature | Description |
|---|---|---|
M.onEditorInitialized | M.onEditorInitialized() | Registers window and Tech menu item (requires tech license). |
M.onEditorGui | M.onEditorGui() | Renders export UI with three sections. |
Export Formats
| Format | Extension | Exporter Module |
|---|---|---|
| OpenDrive | .xodr | tech_openDriveExporter |
| OpenStreetMap | .osm | tech_openStreetMapExporter |
| SUMO | .xml | tech_sumoExporter (produces .edg.xml + .nod.xml) |
UI Layout
Each section contains:
- Description text
- Level availability check
- Export button with file save dialog
- Success message showing exported file path
Usage
Accessible via Window → Tech → Road Network Exporter in the editor (Tech license required).
-- Export programmatically
extensions.tech_openDriveExporter.export("/path/to/output")
extensions.tech_openStreetMapExporter.export("/path/to/output")
extensions.tech_sumoExporter.export("/path/to/output")See Also
- Editor AI Tests - Related reference
- Editor AI Visualization - Related reference
- Editor – Assembly Spline Tool - Related reference
- World Editor Guide - Guide