From 2017 back to 1995: adding thirty years of cars

A 1998 Ferrari card the app couldn't find turned into build 9: the Dex now goes back to 1995, with older RLC, Hot Wheels Classics and a new Matchbox garage.

Until this week, Hangar 64 only knew cars from 2017 on. That covered what's on the pegs today, but not what's in our bins. My brother and I have a lot of cars from the late '90s and 2000s, and the first one I picked up, a 1998 Ferrari Testarossa, wasn't in the Dex. So build 9 became about the past.

Same wiki, different tables

The catalog comes from the fan-run Hot Wheels Wiki, which has a page for every year. My import script already read the modern pages. I pointed it at 1995 through 2016 and expected thousands of cars. It found a fraction of them.

The older pages don't look like the new ones:

  • Different columns. Some years have five columns, some seven, with color in its own column instead of in the car's name.
  • Different toy numbers. Modern cards use three letters and two digits, like JJH30. The 1990s used five digits (19953), and the 2000s used a letter and four digits (L9915), sometimes with an S on the end for Super Treasure Hunts.
  • Missing numbers. A few 1990s bonus cars have no toy number at all, and some colors share one number with another version.

Each of these needed its own small rule. After that the script read 6,713 more cars, and the scanner learned to read the old code formats on the back of a card. That Testarossa now scans in one try.

What I learned"The same source" isn't the same format. When a count looks low, it's usually the parser, not the data.

RLC, the hard way

Red Line Club cars from 2017 on each have one tidy page per year. Before that, they're spread over dozens of pages: membership cars, rewards, special editions, convention cars, and the sELECTIONs series, where club members voted on the casting, color and wheels.

The sELECTIONs pages hold a trap. Each round lists every option that was on the ballot, and only one of them was ever made. If I'd read every table, the Dex would have filled up with cars that never existed. So the script only reads the table marked as the winner. RLC now goes back to 2001, with nearly 600 cars in that garage.

I also added Hot Wheels Classics (2005 to 2009), the metal-bodied Spectraflame line, and the first Boulevard years, 2012 and 2013, to the Premium garage.

A Matchbox garage

A Gulf McLaren 720S from Mattel Creations was the push for this one. Matchbox has its own wiki, and adding it brought a new problem: one Matchbox car often has three codes, one for each region's card. A scan of any of them needs to find the same car. So each car now keeps its main code plus a list of the others, and the scanner checks both.

The Matchbox garage starts with the mainline from 2017 on (MB1 to MB125 each year), the Collectors Series and the Mattel Creations exclusives, about 1,270 cars.

The Dex went from about 7,900 cars to nearly 17,000 in one build.

The smaller things

  • My Top 5. Pick your five best cars and share them as one picture, sized for Instagram and Reddit.
  • Invite links. While planning this build I found that the links the app shares for adding a friend went to an error page. They now open an invite page that sends you into the app, or to the install links if you don't have it yet.
  • Import. Bringing a collection over from another app now understands the older toy numbers too.
  • A security check. Someone asked me on LinkedIn whether one account could see another's collection or email. I tested it with two accounts: it can't. Each person's garage, saved cars and profile are locked to them, and other people only see a garage that's set to Public or shared with friends.

What's next

Build 9 goes to testers once I've tested it on my own phone. After that, 2027 case lists as they're posted, and probably badges. If you collect older cars, I'd love to know which ones the Dex is still missing.