Map tool¶
Kacky is building its own tool for working with Trackmania map files: the map tool. Anything to do with the Gbx format runs through it.
What it does, and what it is for¶
Today it reads a map file and pulls out the useful bits: the name, author, author time, unique ID, and the embedded thumbnail. Those thumbnails get stored on Cloudflare so the site can show a map's preview instantly, without re-reading the whole file every time. It also writes to maps, and pushes signs into them from the admin panel.
Reading and writing signs is only the start, though. The reason for building it ourselves is to do the harder Gbx work too: pulling ghosts out of replays, and whatever else the community needs. Anything the format allows, the map tool must be able to do.
Built on GBX.NET¶
None of that heavy lifting is written from scratch. It is built on GBX.NET, the open-source library that can read and write the Gbx format. The map explorer for that library lives at explorer.gbx.tools. Kacky owes that library a lot. Without it, none of this is possible.
You never touch it directly¶
The map tool works in the background. When a map preview appears on the site, the map tool is the thing that read the file. When a mapper submits a map and its details fill themselves in, the map tool read the file too. See How Kacky reads maps for what it pulls out.