{"action":"opened","issue":{"url":"https://api.github.com/repos/Courseplay/courseplay/issues/1528","repository_url":"https://api.github.com/repos/Courseplay/courseplay","labels_url":"https://api.github.com/repos/Courseplay/courseplay/issues/1528/labels{/name}","comments_url":"https://api.github.com/repos/Courseplay/courseplay/issues/1528/comments","events_url":"https://api.github.com/repos/Courseplay/courseplay/issues/1528/events","html_url":"https://github.com/Courseplay/courseplay/issues/1528","id":196245089,"number":1528,"title":"Merging Courses with crossing Points","user":{"login":"PromGames","id":9979168,"avatar_url":"https://avatars.githubusercontent.com/u/9979168?v=3","gravatar_id":"","url":"https://api.github.com/users/PromGames","html_url":"https://github.com/PromGames","followers_url":"https://api.github.com/users/PromGames/followers","following_url":"https://api.github.com/users/PromGames/following{/other_user}","gists_url":"https://api.github.com/users/PromGames/gists{/gist_id}","starred_url":"https://api.github.com/users/PromGames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PromGames/subscriptions","organizations_url":"https://api.github.com/users/PromGames/orgs","repos_url":"https://api.github.com/users/PromGames/repos","events_url":"https://api.github.com/users/PromGames/events{/privacy}","received_events_url":"https://api.github.com/users/PromGames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-17T21:55:58Z","updated_at":"2016-12-17T21:55:58Z","closed_at":null,"body":"When merging courses ingame, is not recognizing all crossing waypoints.\r\n\r\n I do not know if I am doing something wrong, but the connection of courses in merge format seems to not work properly\r\n\r\nimage\r\n\r\nI am just trying to merge two courses with crossing points, system recognize the first group of two close enough to be set a s merge point but not in the second.\r\n\r\nThis the debug information\r\n\r\n´´´[dbg8 lp9792] CR10.90: loadCourse(..., id=3, useRealId=true, addCourseAtEnd=false)\r\n[dbg8 lp9792] course_management 135: CR10.90: no course was loaded -> new course = course -> currentCourseName=\"Field6 unloadTrain\", numCourses=1\r\n[dbg8 lp10005] CR10.90: loadCourse(..., id=2, useRealId=true, addCourseAtEnd=false)\r\n[dbg8 lp10005] course_management 141: CR10.90: currentCourseName=\"Field6 unloadTrain\", numCourses=1 -> add new course \"field 1 unloadTrain\"\r\n[dbg8 lp10005] course1 wp 29: add to crossingPoints[1]\r\n[dbg8 lp10005] course1 wp 35: add to crossingPoints[1]\r\n[dbg8 lp10005] course1 wp 80: add to crossingPoints[1]\r\n[dbg8 lp10005] course2 wp 1: add to crossingPoints[2]\r\n[dbg8 lp10005] course2 wp 23: add to crossingPoints[2]\r\n[dbg8 lp10005] course2 wp 344: add to crossingPoints[2]\r\n[dbg8 lp10005] course2 wp 345: add to crossingPoints[2]\r\n[dbg8 lp10005] course 1 has 3 crossing points (excluding first point), course 2 has 4 crossing points (excluding last point), useFirstMatch=false\r\n[dbg8 lp10005] course1 wp 29, course2 wp 1, dist=172.66554172735\r\n[dbg8 lp10005] course1 wp 29, course2 wp 23, dist=1.404599587071 -->OK\r\n[dbg8 lp10005] useFirstMatch=false -> 2 valid crossing points found: (1)=#29, (2)=#23, dist=1.4 -> lastMergedWP=29, set \"merged\" for both to \"true\", continue\r\n[dbg8 lp10005] course1 wp 29, course2 wp 344, dist=12.808735300567\r\n[dbg8 lp10005] course1 wp 29, course2 wp 345, dist=16.408930495313\r\n[dbg8 lp10005] course1 wp 35, course2 wp 1, dist=165.40959978187\r\n[dbg8 lp10005] course1 wp 35, course2 wp 23, dist=15.366538321951\r\n[dbg8 lp10005] course1 wp 35, course2 wp 344, dist=1.6692812824686 --> should be merged\r\n[dbg8 lp10005] course1 wp 35, course2 wp 345, dist=2.0080836635957\r\n[dbg8 lp10005] course1 wp 80, course2 wp 1, dist=264.16155094941\r\n[dbg8 lp10005] course1 wp 80, course2 wp 23, dist=250.96297615385\r\n[dbg8 lp10005] course1 wp 80, course2 wp 344, dist=237.61498479683\r\n[dbg8 lp10005] course1 wp 80, course2 wp 345, dist=234.38280589668\r\n[dbg8 lp10005] CR10.90: merge points found: course 1: #29, course 2: #23\r\n[dbg8 lp10005] CR10.90: adding course done -> numWaypoints=382, numCourses=2, currentCourseName=\"2 combined courses\"\r\nWarning: Character '9' not found in texture font ([dbg8 lp10005] course1 wp 29: add to crossingPoints[1]\r\n[dbg8 lp10005] course1 wp 35: add to crossingPoints[1]\r\n[dbg8 lp10005] course1 wp 80: add to crossingPoints[1]\r\n[dbg8 lp10005] course2 wp 1: add to crossingPoints[2]\r\n[dbg8 lp10005] course2 wp 23: add to crossingPoints[2]\r\n[dbg8 lp10005] course2 wp 344: add to crossingPoints[2]\r\n[dbg8 lp10005] course2 wp 345: add to crossingPoints[2]\r\n´´´\r\nI do not understand why course1 wp 35, is not getting merged with course2 wp 344, where the distance is just dist=1.6692812824686. I just also created wp 345 that also is enough closed.\r\n\r\nfarming simulator 17 17_12_2016 10_48_16\r\n\r\nEdit: I temporary solved it because if you merge again the course1, then is creating the final course as desired, But I remember that in FS15 works with just one merge. Maybe I am wrong\r\n\r\nimage"}}
{"actor":{"display_login":"PromGames"}}