move gen_chapter_waypoints to map_editor temporarily, i will refactor it