ENGLISH VERSION BELOW
Courseplay to OpenStreetMap (deutsch)
Um die gespeicherten Kurse aus Courseplay einfach bearbeiten zu können, konvertiert dieses Programm die
von Courseplay generierten XML Dateien in das Openstreetmap-Format, welches dann mit
JOSM editiert werden kann:
Verwendung
Videotutorial von Gadarol auf YouTube
- JAR-Datei herunterladen, speichern und ausführen.
Course -> OSM
wählen und aus dem Courseplay-Ordner der gewünschten Map die courseManager.xml
auswählen
- Die Kartengröße in Meter Kantenlänge angeben (2048 für Normale- oder 4096 für Vierfachmaps). Der Wert wird später verwendet um
dabei zu helfen ein Hintergrundbild auszurichten.
- Eine Datei wählen, in die geschrieben werden soll. Erzeugt wird eine einzelne OSM-Datei, die alle gespeicherten Kurse
enthält.
- Den Java OpenStreetMap Editor herunterladen.
-
Die in Schritt 4 generierte Datei öffnen. Zu sehen ist zum Beispiel:
- Optional: Eine Hintergrundbild (map pda) hinterlegen, dazu:
- Im OSM-Converter "Extract Background map" wählen
- Die
.dds
-Datei oder die .zip
der Mod auswählen. Bei Originalmaps findest du diese im
Installationsverzeichnis (z.B.: Steam\steamapps\common\Farming Simulator 19\sdk\maps\mapD\maps\pda_map_H.dds
)
- Eine Ausgabedatei angeben. Es wird die angegebene Datei (zum Beispiel
map.png
) erzeugt und dazu eine
Kalibrierungsdatei (in dem Beispiel map.png.cal
)
- In JOSM unter Bearbeiten -> Einstellungen -> Plugins das Plugin "PicLayer" installieren
- Im Menü über Hintergrundbilder -> Neue Bildebene aus Datei da in Schritt 3 erzeugte Bild laden. Die Kalibrierung
wird automatisch mitgeladen.
- Die Karte sollte automatisch korrekt kalibriert sein. Wenn du die Karte trotzdem anpassen möchtest:
- Bei "Ebenen" oben rechts die Bildebene setzen (den weißen Haken im grünen Kreis auf die Bildebene setzen)
- Mit den Werkzeugen in der Leiste links die Karte passend verschieben. Dabei hilft wieder das äußere Quadrat.
Siehe dazu auch die Anleitung von PicLayer.
- Die Kurse nach belieben bearbeiten, Punkte verschieben oder löschen und danach speichern.
- Im Konverter
OSM -> Course
wählen
- Die gespeicherte OSM-Datei angeben
- Ein Verzeichnis angeben, in dem die neuen Courseplay-Dateien gespeichert werden sollen. Achtung: Bestehende Dateien
werden ohne Nachfrage überschrieben! Verwende ein leeres Verzeichnis oder erstelle vorher ein Backup.
Spenden
Dieses Programm ist kostenlos. Wenn es dir gefällt und du dich bedanken möchtest, kannst du mir jedoch eine Spende
zukommen lassen:
Courseplay to OpenStreetMap (english)
This program converts courses from the Courseplay format to the OpenStreetMap-Format, so that the courses can be edited
using JOSM.
Usage
- Download JAR-File from releases, and execute it.
- Choose
Course -> OSM
and from the Courseplay-folder of the desired map, choose the file courseManager.xml
.
- Enter the size of the map in meters length of the edge. This will later be helpful when adding a background image.
- Choose an output file. All courses will be written to this file.
- Download the Java OpenStreetMap Editor.
-
Open the file generated in step 4. What you see is something like this:
The outer square represents the map size that you entered in step 3.
- Optional: Add a background image (map pda):
- In the OSM-Converter choose "Extract Background map"
- Choose the
.dds
-File or the .zip
of the mod. In case of original maps, you can find them in the installation
directory (e.g.: Steam\steamapps\common\Farming Simulator 19\sdk\maps\mapD\maps\pda_map_H.dds
)
- Select an output filename. The file while be created (e.g.
map.png
) together with a calibration file (in this
example map.png.cal
).
- In JOSM go to Edit -> Preferences -> Plugins and install the plugin "PicLayer".
- In the menu select Imagery -> Add picture layer from file and select the image created in step 3. The calibration
file is loaded automatically.
- The map should be calibrated correctly. If you still like to adjust it, you can do so as follows:
- In the layers panel at the top right, move the white check mark in the green circle on the image layer.
- Use the toolbar on the left to adjust the map. See also the
manual of PicLayer.
- Edit the courses as desired, then save.
- In the converter choose
OSM -> Course
- Choose the saved OSM-file
- Choose a directory to save the output to. Any existing files are overwritten without confirmation. Choose an empty
directory or create a backup of your files before.
Donations
This application is free of charge. If you like it and want to thank me, you can send me a donation: