yankee42 / courseplay-osm-converter

Konvertiert Courseplay-Kurse, damit sie mit dem JOSM-Editor bearbeitet werden können.
GNU General Public License v3.0
15 stars 5 forks source link

Course -> SOM no longer works due to change of Course format #17

Open BattleHook opened 3 years ago

BattleHook commented 3 years ago

quote source: https://github.com/Courseplay/courseplay/releases

6.03.00057 Faster course loading

Changed the format of the saved course file for faster loading (I mean really faster, courses with 60,000 waypoints now load in a few seconds, saving is a little slower but should be significantly faster).

This version can load the old format files but always saves the course using the new format (new format files have version="2" in the first line). unquote

Versions Version of Courseplay?: Courseplay for FS19 v6.03.00057 and up Version of Courseplay-OSM-Converter?: 1.0.6

yankee42 commented 3 years ago

Do you happen to have a sample file at hand?

BattleHook commented 3 years ago

Do you happen to have a sample file at hand?

I will send you later today since I have no acces to my PC at the moment.. Meanwhile this may help ? : https://github.com/Courseplay/courseplay/tree/6.03.00057/course-generator

pvaiko commented 3 years ago

@yankee42 sorry, we announced this on the CP site earlier (https://github.com/Courseplay/courseplay/issues/7142).

This is the commit you want to look at: https://github.com/Courseplay/courseplay/commit/a1f8fad42f1939dd32a66720ee9363537c5bd64e, especially the Course.serializeWaypoints() and Course.deserializeWaypoints() functions.

pvaiko commented 3 years ago

@BattleHook btw, Courseplay has a built in editor which is fine for minor adjustments.

BattleHook commented 3 years ago

@BattleHook btw, Courseplay has a built in editor which is fine for minor adjustments.

I noticed, Thanks for the suggestion. But I need to do some major adjustments of some Courses ;)

@pvaiko / @yankee42: compliments for all your work on: Courseplay / Courseplay-OSM-Convertor.

BattleHook commented 3 years ago

Do you happen to have a sample file at hand?

please find some files here: https://www.dropbox.com/t/nguSvEFYelmeL1Sw