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

Not show the course transformed in courseplay #9

Open gratalou opened 5 years ago

gratalou commented 5 years ago

Hello,

I Create un new game in FS19,

I create a simple course, and I save it.

I Transform the course in OSM,

I Modify some Waypoint in my course, I change juste the way of the trace

I save the OSM,

I transform, the OSM =>Courseplay format. It's done !

I Lunch FS19 and I load my savegame.

I saw the trace in courseplay, I load the course, but the preview of the coruse is not show ...

I dont't have any message of error .... I don't understand why the preview map is not show ...

I record a new course, and the preview of the new course it 'is ok, but no the preview of the course transformed ....

Are you a idea of the problem ?

courseManager.xml

<courseManager>
    <saveSlot>
        <slot fileName="courseStorage0001.xml" isUsed="false"/>
        <slot fileName="courseStorage0002.xml" isUsed="false"/>
        <slot fileName="courseStorage0003.xml" isUsed="false"/>
        <slot fileName="courseStorage0004.xml" isUsed="true" id="1" parent="0" name="New"/>
    </saveSlot>
</courseManager>

courseStorage0004.xml

<course>
  <waypoint1 pos="-95.12 67.41 230.70" angle="-16.55" crossing="1" speed="1" />
  <waypoint2 pos="-95.56 67.45 232.19" angle="-31.70" speed="9" />
  <waypoint3 pos="-96.36 67.50 233.50" angle="-46.96" speed="13" />
  <waypoint4 pos="-97.46 67.56 234.52" angle="-62.80" speed="16" />
  <waypoint5 pos="-98.92 67.64 235.27" angle="-78.92" speed="18" />
  <waypoint6 pos="-100.46 67.71 235.57" angle="-94.67" speed="20" />
  <waypoint7 pos="-102.06 67.78 235.44" angle="-110.91" speed="22" />
  <waypoint8 pos="-103.64 67.83 234.84" angle="-127.24" speed="24" />
  <waypoint9 pos="-104.95 67.85 233.85" angle="-142.61" speed="25" />
  <waypoint10 pos="-105.86 67.85 232.65" angle="-157.70" speed="27" />
  <waypoint11 pos="-106.47 67.81 231.18" angle="-173.02" speed="28" />
  <waypoint12 pos="-106.67 67.76 229.50" angle="176.69" speed="30" />
  <waypoint13 pos="-106.58 67.70 227.95" angle="170.15" speed="31" />
  <waypoint14 pos="-106.26 67.63 226.10" angle="167.67" speed="33" />
  <waypoint15 pos="-105.10 67.46 220.79" angle="175.78" speed="36" />
  <waypoint16 pos="-104.98 67.43 219.19" angle="-175.75" speed="36" />
  <waypoint17 pos="-105.11 67.40 217.43" angle="-164.84" speed="37" />
  <waypoint18 pos="-105.56 67.37 215.78" angle="-155.15" speed="37" />
  <waypoint19 pos="-106.26 67.36 214.26" angle="-146.34" speed="38" />
  <waypoint20 pos="-107.13 67.36 212.96" angle="-135.43" speed="38" />
  <waypoint21 pos="-108.34 67.36 211.73" angle="-122.60" speed="38" />
  <waypoint22 pos="-109.77 67.37 210.81" angle="-110.93" speed="38" />
  <waypoint23 pos="-111.19 67.39 210.27" angle="-101.89" speed="39" />
  <waypoint24 pos="-112.23 67.41 209.73" angle="-95.02" speed="39" />
  <waypoint25 pos="-113.29 67.44 208.90" angle="-89.27" speed="40" />
  <waypoint26 pos="-113.81 67.48 207.00" angle="-87.62" speed="41" />
  <waypoint27 pos="-114.95 67.58 202.49" angle="-95.63" speed="42" />
  <waypoint28 pos="-116.18 67.59 197.35" angle="-102.27" speed="42" />
  <waypoint29 pos="-118.76 67.58 193.51" angle="-110.34" speed="42" />
  <waypoint30 pos="-122.28 67.58 192.12" angle="-120.91" speed="42" />
  <waypoint31 pos="-126.45 67.58 191.94" angle="-134.12" speed="42" />
  <waypoint32 pos="-131.09 67.57 193.33" angle="-147.24" speed="42" />
  <waypoint33 pos="-134.36 67.58 195.23" angle="-158.73" speed="41" />
  <waypoint34 pos="-136.01 67.57 198.10" angle="-172.64" speed="41" />
  <waypoint35 pos="-134.70 67.57 200.64" angle="174.37" speed="41" />
  <waypoint36 pos="-132.61 67.55 200.46" angle="161.59" speed="41" />
  <waypoint37 pos="-131.53 67.54 198.95" angle="149.02" speed="41" />
  <waypoint38 pos="-130.67 67.52 197.53" angle="134.56" speed="41" />
  <waypoint39 pos="-129.22 67.50 196.10" angle="116.73" speed="41" />
  <waypoint40 pos="-127.56 67.49 195.26" angle="104.05" speed="41" />
  <waypoint41 pos="-125.94 67.47 194.85" angle="91.18" speed="41" />
  <waypoint42 pos="-124.17 67.46 194.82" angle="76.83" speed="40" />
  <waypoint43 pos="-122.43 67.44 195.23" angle="60.15" speed="40" />
  <waypoint44 pos="-120.67 67.41 196.24" angle="44.84" speed="40" />
  <waypoint45 pos="-119.34 67.40 197.57" angle="31.21" speed="40" />
  <waypoint46 pos="-118.51 67.39 198.93" angle="17.76" speed="40" />
  <waypoint47 pos="-117.98 67.39 200.58" angle="8.78" speed="41" />
  <waypoint48 pos="-117.72 67.40 202.31" angle="4.11" speed="39" />
  <waypoint49 pos="-117.13 67.50 210.52" angle="-2.48" speed="38" />
  <waypoint50 pos="-117.21 67.53 212.43" angle="-9.54" speed="39" />
  <waypoint51 pos="-117.48 67.56 214.05" angle="-18.56" speed="39" />
  <waypoint52 pos="-118.03 67.59 215.69" angle="-29.82" speed="39" />
  <waypoint53 pos="-118.90 67.63 217.20" angle="-43.69" speed="38" />
  <waypoint54 pos="-120.11 67.68 218.47" angle="-58.25" speed="38" />
  <waypoint55 pos="-121.44 67.77 219.30" angle="-72.63" speed="38" />
  <waypoint56 pos="-123.20 67.88 219.85" angle="-86.18" speed="39" />
  <waypoint57 pos="-124.95 67.95 219.96" angle="-94.80" speed="40" />
  <waypoint58 pos="-126.48 68.00 219.83" angle="-101.21" speed="40" />
  <waypoint59 pos="-128.35 68.07 219.46" angle="-105.89" speed="41" />
  <waypoint60 pos="-137.07 68.45 216.98" angle="-95.08" speed="42" />
  <waypoint61 pos="-138.80 68.60 216.83" angle="-86.96" speed="42" />
  <waypoint62 pos="-140.53 68.78 216.92" angle="-76.94" speed="41" />
  <waypoint63 pos="-142.26 69.03 217.32" angle="-64.58" speed="40" />
  <waypoint64 pos="-143.86 69.32 218.08" angle="-54.50" speed="40" />
  <waypoint65 pos="-145.26 69.61 219.08" angle="-48.68" speed="40" />
  <waypoint66 pos="-146.55 69.79 220.22" angle="-41.67" speed="36" />
  <waypoint67 pos="-147.76 69.83 221.57" angle="-19.42" speed="35" />
  <waypoint68 pos="-148.29 69.80 223.09" angle="-5.07" speed="35" />
  <waypoint69 pos="-148.45 69.72 224.88" angle="15.37" speed="35" />
  <waypoint70 pos="-147.99 69.67 226.56" angle="31.69" speed="35" />
  <waypoint71 pos="-147.03 69.63 228.11" angle="43.60" speed="37" />
  <waypoint72 pos="-146.00 69.65 229.20" angle="51.95" speed="38" />
  <waypoint73 pos="-137.95 69.56 235.50" angle="54.49" speed="36" />
  <waypoint74 pos="-135.37 69.44 237.34" angle="60.84" speed="37" />
  <waypoint75 pos="-133.92 69.41 238.15" angle="68.34" speed="37" />
  <waypoint76 pos="-132.38 69.37 238.76" angle="77.71" speed="37" />
  <waypoint77 pos="-130.88 69.40 239.09" angle="88.21" speed="37" />
  <waypoint78 pos="-129.28 69.36 239.14" angle="96.14" speed="36" />
  <waypoint79 pos="-127.38 69.44 238.93" angle="98.17" speed="35" />
  <waypoint80 pos="-117.15 68.57 237.46" angle="97.57" speed="28" />
  <waypoint81 pos="-113.46 68.37 236.97" angle="97.51" crossing="1" speed="24" />
</course>

Versions Version of Courseplay?: 166 Version of Courseplay-OSM-Converter?: 1.0.4

yankee42 commented 5 years ago

At least on first look the course looks OK. You wrote that the preview does not load. Is it only the preview or does the track not work at all?

Which map is this?

alex2ruote commented 5 years ago

I have the same issue, there's no longer an error log, but when I select the courses they don't show at all and the vehicles don't move. I tried the Felsbrunn map in case the mod map I was working with had something odd going on. I run Courseplay version 00180 What I noticed is that there's a difference in the order that "pos", "angle", and "speed" are written in the course Storage files, otherwise they look exactly the same. Edit: I tried to convert the file without actually modifying it and it doesn't work.

yankee42 commented 5 years ago

The order of the XML attributes does not matter. However it would be really helpful to get the original working courseStorage.xml and newly generated broken courseStorage.xml and to know the map, so we can try the files ourself and do some testing.

alex2ruote commented 5 years ago

Here are the course Storage files, the original and the one after the conversion. The map is Felsbrunn. courseStorage.zip

yankee42 commented 5 years ago

I completely forgot about this ticket, sorry. The the files in the archive are 100% identical, so that is not the source of the problem. Does the problem still persist? If so, please send the whole directory with the course-files before conversion, so I can try to convert them myself.

Adalher84 commented 5 years ago

Moin moin, ich hab das selbe Problem. Ich hab beide Dateien verglichen und hab keine Differenz gefunden, bis auf die Dateigröße. Die konvertierte Datei war 7 Byte kleiner als das Original aber die Größe auf dem Datenträger war 82 Byte größer. Ich hab die Datei nur konvertiert aber nicht verändert. Ich habe dann den Originalkurs verändert und in .xml konvertiert, die Original .xml und die veränderte .xml im Editor geöffnet, den Original-Code gelöscht, den veränderten Code in die Original-Datei kopiert und gespeichert und die Original-Datei mit dem veränderten Code im Spiel verwendet und es hat funktioniert. Vielleicht hilft dir diese Information weiter.

yankee42 commented 5 years ago

@Adalher84: Interessant. Es wäre hilfreich, wenn du die beiden Dateien hier hochladen könntest. Also einmal die, die nicht funktioniert und die, die dann funktioniert. Wenn die Dateigrößen nicht gleich sind, muss irgendwas anders sein. Eventuell anderes encoding oder so. Wenn ich die Dateien im Orginal habe kann ich das überprüfen.