Description:
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).
You can use the console command cpUgradeAllCourses to
upgrade all saved courses to the new, faster format.
Run it right after the savegame is loaded and make
sure you make a backup of your courses before!
This new format will break any external tool which
relies on loading/saving the course XML files.
The new format:
Use a single XML node for all waypoints
Each waypoint is separated by a ‘|’ and a new line,
latter for visibility only
Waypoint attributes are separated by ‘;’
See the Course.serializeWaypoints() function in
Waypoint.lua for the details.
Authors:
pvaiko