https://github.com/jlu5/beamng-mapper
Generate .svg maps for BeamNG.drive levels
https://github.com/jlu5/beamng-mapper
Last synced: 2 months ago
JSON representation
Generate .svg maps for BeamNG.drive levels
- Host: GitHub
- URL: https://github.com/jlu5/beamng-mapper
- Owner: jlu5
- Created: 2021-07-08T01:25:59.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-18T05:42:22.000Z (almost 4 years ago)
- Last Synced: 2025-01-14T09:57:42.815Z (4 months ago)
- Language: Python
- Size: 1.96 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# beamng-mapper
**beamng-mapper** is a quick and dirty mapping tool for BeamNG.drive levels. It generates SVG maps of any level of your choice (see the examples/ folder for examples).
Currently tested for 0.23.
## Dependencies and Usage
This tool uses Python 3.7+ and the `drawSvg` library, which you can install using `pip3 install drawSvg`.
Then, extract the level you want to `levelpath` and pass it into `mapper.py`. Technically, you only need to extract `levels//info.json` and `levels//main`.
```
usage: mapper.py [-h] [--dx DX] [--dy DY] levelpath outputpathBeamNG.drive level mapper
positional arguments:
levelpath path to extracted level data (e.g. levels/italy)
outputpath output path (.svg)optional arguments:
-h, --help show this help message and exit
--dx DX x offset for elements
--dy DY y offset for elements```
## Legend
- Blue - camera bookmarks
- Green - player spawn points
- Orange - default player spawn point
- Light blue - spot / point lights (sometimes these line tunnels)