WEBVTT
Kind: captions
Language: en

00:00:00.000 --> 00:00:05.105
This video is brought to you by Squarespace -- the all in one platform
to make a professional-looking website.

00:00:05.105 --> 00:00:07.534
[intro music]

00:00:07.534 --> 00:00:10.971
It had been a long day and I was relaxing with some video games.

00:00:10.971 --> 00:00:14.000
I'd been playing Test Drive Unlimited on the PlayStation 2 --

00:00:14.000 --> 00:00:18.735
a nostalgic game from my childhood that I recently picked up on a whim
and ended up getting hooked on.

00:00:18.735 --> 00:00:20.642
It's actually a pretty long game.

00:00:20.642 --> 00:00:25.770
The game shows you this completion percentage, and as a kid, I don't remember it ever surpassing like 11%.

00:00:25.770 --> 00:00:31.524
As an adult coming back to it, though, I was doing remarkably well. And as I passed 50% and was still enjoying playing it,

00:00:31.524 --> 00:00:34.534
I gradually decided I was gonna try getting to 100%.

00:00:34.534 --> 00:00:40.589
Within a week or two, I'd approached 70-something percent and was making my way through another racing club when suddenly,

00:00:40.589 --> 00:00:42.126
the game froze.

00:00:42.126 --> 00:00:46.652
Which was annoying, but where it froze was extremely concerning.

00:00:46.652 --> 00:00:51.942
See, the game has a convenient autosave feature
indicated by this... spinning clock?

00:00:51.942 --> 00:00:56.935
And naturally, it warns you against powering it off or removing the memory card while this icon is on screen.

00:00:56.935 --> 00:01:01.878
So, what should I do if the game has frozen mid-save?

00:01:01.878 --> 00:01:06.427
Usually, an autosave completes after maybe 20 seconds or so,
so I let it sit.

00:01:06.427 --> 00:01:12.483
In fact, I let it sit for several minutes, hoping in vain that it would either be able to finish saving in the background, or I might get lucky

00:01:12.483 --> 00:01:14.429
and it might unfreeze.

00:01:14.429 --> 00:01:17.801
Alas. Eventually, I had no choice but to power it off.

00:01:17.801 --> 00:01:21.933
After rebooting and trying to load my save,
this is what I got.

00:01:21.933 --> 00:01:27.895
Needless to say, this was pretty gut-wrenching after sinking so much time into the game and getting so close to the end.

00:01:27.895 --> 00:01:32.792
It seemed pretty unequivocal -- the game froze mid-save
which is a recipe for data corruption.

00:01:32.792 --> 00:01:36.808
And the game itself was now telling me my save was probably corrupt.

00:01:36.808 --> 00:01:41.033
Faced with having to replay nearly the whole game again
just to get back to where I was,

00:01:41.033 --> 00:01:47.737
I let one manly tear fall down my cheek and concluded
that my playthrough would have to end there.

00:01:48.270 --> 00:01:50.270
Except, I didn't, really.

00:01:50.270 --> 00:01:54.842
I kept getting this gnawing sense that maybe,
 just maybe,

00:01:54.842 --> 00:02:00.596
having sifted through binary formats before and having a small, but substantial grasp on low-level programming,

00:02:00.596 --> 00:02:04.102
maybe I could get that same file back.

00:02:04.102 --> 00:02:06.936
I decided I was gonna give it a shot.

00:02:07.469 --> 00:02:12.468
Now, before we get too deep into it, let me take a moment to pay some bills and thank the sponsor of this video -- Squarespace.

00:02:12.468 --> 00:02:15.070
Need a website? Look no further than Squarespace.

00:02:15.070 --> 00:02:18.601
They have everything you need to make a beautiful
and professional-looking website.

00:02:18.601 --> 00:02:24.134
Hundreds of responsive templates, ready to go and super intuitive tools to let you customize every aspect to make them your own.

00:02:24.134 --> 00:02:28.534
And every template has been written to work great,
whether the user is on desktop, tablet or mobile.

00:02:28.534 --> 00:02:31.299
I personally use Squarespace to run my online store.

00:02:31.299 --> 00:02:36.891
As someone used to writing websites from scratch, they've made it unbelievably easy to list items, securely take payments,

00:02:36.891 --> 00:02:39.725
everything you'd need on both the front end and the back end.

00:02:39.725 --> 00:02:44.065
After only 10 minutes using their website builder,
I couldn't see why anyone would use anything else.

00:02:44.065 --> 00:02:45.735
It really is that good.

00:02:45.735 --> 00:02:49.301
So for your next website or online store, I highly recommend Squarespace.

00:02:49.301 --> 00:02:51.973
They've got a free trial that lets you set up your website
just how you want it.

00:02:51.973 --> 00:02:57.234
And then when you're ready to launch, head over to squarespace.com/mattkc, to get 10% off your first purchase.

00:02:57.234 --> 00:02:59.334
 Now, back to the corrupted save file.

00:02:59.334 --> 00:03:03.501
Thanks to having a modded PS2, copying the save file
from the memory card to a USB flash drive

00:03:03.501 --> 00:03:07.668
was extremely trivial and in no time,
I was looking at the file in a hex editor.

00:03:07.668 --> 00:03:11.035
And, yeah, if this looks like gibberish to you,
that's because it is.

00:03:11.035 --> 00:03:14.703
It will take some time before we can understand what
any of this data actually is,

00:03:14.703 --> 00:03:18.719
but what we can see is exactly where the save operation was interrupted.

00:03:18.719 --> 00:03:23.106
Scrolling right to the bottom of this a hundred kilobyte file
shows us a total of 58 bytes

00:03:23.106 --> 00:03:25.407
that are abruptly zeroed out.

00:03:25.407 --> 00:03:30.952
I'm guessing the file was allocated to its full size,
but only actually written up to this point.

00:03:30.952 --> 00:03:33.735
In a way, this is both lucky and unlucky.

00:03:33.735 --> 00:03:39.234
Lucky, because most of the save file is here
and intact. By far, the vast majority of it which

00:03:39.234 --> 00:03:41.396
very much increases that chance of recovery.

00:03:41.396 --> 00:03:46.153
Unlucky, because it was so close to finishing the save.

00:03:46.153 --> 00:03:50.534
For 58 bytes, it literally can't have been more than a
fraction of a second away.

00:03:50.534 --> 00:03:53.461
But, hey. So far, things were looking relatively promising.

00:03:53.461 --> 00:03:57.801
The amount of missing data was extremely small and seemed like
it might be manageable.

00:03:57.801 --> 00:04:01.284
But it was enough bytes for the game to know something was wrong

00:04:01.284 --> 00:04:07.067
and I made an educated guess that the way it was figuring that out
was by using a checksum.

00:04:07.067 --> 00:04:12.404
Checksumming is a way of ensuring data integrity by passing a block of data through a hash algorithm to produce

00:04:12.404 --> 00:04:16.049
usually a smaller, fixed sized block of data known as the checksum.

00:04:16.049 --> 00:04:20.343
The idea is that as long as that algorithm always produces the
same result for a given input,

00:04:20.343 --> 00:04:25.234
it can be used to verify whether that input has changed in any way
since the checksum was first generated.

00:04:25.234 --> 00:04:30.270
While checksums aren't ideal for detecting intentional tampering, since their goal is usually to be fast and simple,

00:04:30.270 --> 00:04:33.498
meaning a hacker can usually figure out how to
regenerate one if they have to.

00:04:33.498 --> 00:04:38.601
For detecting unintentional corruption, like what happened to my save file,
they're pretty efficient and effective.

00:04:38.601 --> 00:04:45.629
 My first thought was that if the game was using a checksum, then theoretically, it could help us figure out what those missing bytes are.

00:04:45.629 --> 00:04:50.641
Now, let's be clear. A checksum is a one-way conversion.
There's no way to retrieve data back from a hash,

00:04:50.641 --> 00:04:53.869
but since a certain block of data should always result
in the same checksum,

00:04:53.869 --> 00:04:57.143
if we know what the checksum is
and how to generate it, then

00:04:57.143 --> 00:05:02.387
theoretically, we should be able to brute force the missing data until it results in the checksum that we have.

00:05:02.387 --> 00:05:06.727
Now, some of you might be skeptical of this plan and I'll spoil it --
you have good reason to be.

00:05:06.727 --> 00:05:09.862
But since it's part of the story, let's just put that aside for now.

00:05:09.862 --> 00:05:15.106
The most sensible place to put a checksum would be at the start of the file, but it was hard to be sure just looking at it.

00:05:15.106 --> 00:05:20.142
Most of it is just meaningless bytes,
except for the single solitary word "FISH".

00:05:20.142 --> 00:05:25.687
Presumably that's the identifier for this file format, a format which naturally appears to be completely proprietary.

00:05:25.687 --> 00:05:30.000
So learning anything about this format, we take
some investigation and reverse engineering.

00:05:30.000 --> 00:05:36.101
I switched over to the emulator PCSX2, because in general, emulators are much easier to reverse engineer with than the real hardware.

00:05:36.101 --> 00:05:39.067
And the first thing I did was make a brand new save file.

00:05:39.067 --> 00:05:44.835
Now, this too won't tell us a lot because it will be hard to compare a brand new save to one that's over halfway complete.

00:05:44.835 --> 00:05:50.496
So what I did next was make a second save file with the smallest possible change that I could make.

00:05:50.496 --> 00:05:54.634
I switched the measurements from imperial to metric.

00:05:54.634 --> 00:05:57.978
My goal was to flush out where the checksum
might be if it's there.

00:05:57.978 --> 00:06:02.935
In theory, one small setting like this
should result in one small change in the file.

00:06:02.935 --> 00:06:07.391
But since a checksum should respond to any change in the file
no matter how small,

00:06:07.391 --> 00:06:10.387
doing this should expose it
if it's there.

00:06:10.387 --> 00:06:16.581
Sure enough, there was not one, not two, but four different changes throughout the file.

00:06:16.581 --> 00:06:19.276
The first was four bytes at the very beginning.

00:06:19.276 --> 00:06:21.485
This is definitely looking like our checksum.

00:06:21.485 --> 00:06:28.791
It's in the place that would make the most sense and four byte checksums are actually pretty common, such as the fairly ubiquitous CRC32 algorithm.

00:06:28.791 --> 00:06:33.224
But there were also 10 bytes a little later on that had changed
and a whopping

00:06:33.224 --> 00:06:36.869
32 bytes that are changed somewhere towards the end.

00:06:36.869 --> 00:06:42.252
As well as one byte somewhere in the middle, which is presumably the metric setting -- i.e. the only actual thing we changed.

00:06:42.252 --> 00:06:45.573
So what are all these other changed values? I'm not really sure.

00:06:45.573 --> 00:06:50.330
I guessed that at least one of them could be a timer recording how much of a life the player doesn't have. I mean,

00:06:50.330 --> 00:06:52.376
How much time they've spent playing the game.

00:06:52.376 --> 00:06:56.438
But I very much started to focus in on those four bytes
at the beginning being what I was looking for.

00:06:56.438 --> 00:07:01.267
It just didn't make sense for the checksum to be 10-bytes long or even 32.

00:07:01.267 --> 00:07:07.067
I mean, there were 32-byte or 256-bit hashes at the time,
but it just didn't feel likely that the game would use them.

00:07:07.067 --> 00:07:09.577
So I decided to concentrate on those four bytes.

00:07:09.577 --> 00:07:13.334
I tried running the data through a few standard CRC32 algorithms, but

00:07:13.334 --> 00:07:18.000
it quickly became clear that I was gonna have to reverse engineer how this checksum was actually calculated.

00:07:18.000 --> 00:07:20.835
This is once again, where emulators really come in clutch.

00:07:20.835 --> 00:07:25.639
Using PCSX2's debugging tools,
I soon found the MIPS code that generated the checksum.

00:07:25.639 --> 00:07:30.000
And yes, somehow this still seemed preferable
to replaying the game from scratch.

00:07:30.000 --> 00:07:35.800
After about an hour, I'd reimplemented the checksum algorithm in C, and was kind of proud of myself to be honest,

00:07:35.800 --> 00:07:38.727
considering this was the first time I'd ever read MIPS assembly.

00:07:38.727 --> 00:07:44.301
It just goes to show you really can do anything if you set your mind to it
and really want your [censored] save file back.

00:07:44.301 --> 00:07:50.541
During this process, I also thought it'd be interesting to compare the brand new save I'd made with a 100% completed one from the internet.

00:07:50.541 --> 00:07:56.758
Sure, it seems a little redundant to be rescuing a 70% completed save
when I could just download a 100% one, but

00:07:56.758 --> 00:08:00.000
it's just not the same if it's someone else's achievement, you know?

00:08:00.000 --> 00:08:06.495
But by comparing a brand new save to a 100% one,
I noticed that the last 16 bytes didn't change at all.

00:08:06.495 --> 00:08:12.295
Well, if they don't change between a new save and a finished save, that strongly suggests it will be the same in my save too.

00:08:12.295 --> 00:08:17.470
Assuming that's true, I can transplant those bytes
and then we go from missing 58 bytes to 42.

00:08:17.470 --> 00:08:19.201
Hey, it's definitely an improvement.

00:08:19.201 --> 00:08:22.846
With this, I reworked my C code to try brute forcing those bytes.

00:08:22.846 --> 00:08:26.561
But it was here that I realized my plan wouldn't actually work

00:08:26.561 --> 00:08:29.701
due to two severe problems.

00:08:29.701 --> 00:08:34.868
The first was that Test Drive Unlimited's checksum algorithm
was -- I'm gonna say, flawed.

00:08:34.868 --> 00:08:38.281
In both of the MIPS assembly and my C reimplementation,

00:08:38.281 --> 00:08:42.784
you can see that while the code reads every byte,
four bytes at a time, in fact.

00:08:42.784 --> 00:08:46.406
It essentially discards the upper three bytes every time,

00:08:46.406 --> 00:08:53.759
which because the PS2 is little-endian, means essentially only every fourth byte actually ends up being part of the checksum.

00:08:53.759 --> 00:08:58.701
Literally, I can change any of these bites
and the checksum is exactly the same.

00:08:58.701 --> 00:09:01.466
This seems like a really bad idea

00:09:01.466 --> 00:09:05.901
to the extent that I'm not confident the developers
actually knew that this was the case.

00:09:05.901 --> 00:09:11.562
The aforementioned CRC32 algorithm, which had been around for decades before Test Drive Unlimited was released,

00:09:11.562 --> 00:09:15.624
doesn't discard any bytes and I can't see any
compelling reason to do it here.

00:09:15.624 --> 00:09:19.570
It's not like this is any faster and it goes against
one of the cardinal rules of checksums

00:09:19.570 --> 00:09:23.701
that any change, no matter how small,
should result in a different value.

00:09:23.701 --> 00:09:31.262
So, yeah, at best, brute forcing with the checksum
will actually only get us 11 of those 42 bytes.

00:09:31.262 --> 00:09:34.027
But that's not even the fatal flaw.

00:09:34.027 --> 00:09:40.034
Even if the checksum worked correctly, brute forcing
would still effectively be impossible.

00:09:40.034 --> 00:09:44.791
You know how you're supposed to have a really long password these days to make it hard for hackers to brute force?

00:09:44.791 --> 00:09:47.634
Well, this is exactly why.

00:09:47.634 --> 00:09:50.101
Let's focus just on those 11 bytes for now.

00:09:50.101 --> 00:09:57.709
My algorithm and keep in mind I didn't put a lot of time into optimizing it, could generate 5,290 checksums per second.

00:09:57.709 --> 00:10:04.228
It sounds like quite a few until you look at the amount of combinations that
11 bytes can make.

00:10:04.228 --> 00:10:26.376
[music]

00:10:26.376 --> 00:10:29.634
Yeah. I don't even know how to read this number.

00:10:29.634 --> 00:10:36.935
309 septillion 485 sextillion-- Yeah, I'm not saying all of that.
I'm just gonna call it [censored] loads.

00:10:36.935 --> 00:10:42.364
So how long will it take to generate [censored] loads of checksums
at 5,290 attempts per second?

00:10:42.364 --> 00:10:46.172
Well, this is how many...
years.

00:10:46.172 --> 00:10:49.354
Yeah. 11 bytes might not seem like much,

00:10:49.354 --> 00:10:52.953
but not only will this not finish in my lifetime,

00:10:52.953 --> 00:10:56.853
or my childrens' lifetimes or their childrens' lifetimes,

00:10:56.853 --> 00:11:02.537
it in fact will take longer than the entire estimated age

00:11:02.537 --> 00:11:04.067
of the universe.

00:11:04.067 --> 00:11:10.539
The sun is expected to engulf the Earth
in the time that this brute forcing will take.

00:11:10.539 --> 00:11:13.868
And it's just 11 bytes.

00:11:13.868 --> 00:11:16.679
Now, granted, like I said, my code wasn't super optimized.

00:11:16.679 --> 00:11:22.526
It wasn't multithreaded and I'd probably see massive performance gains
by rewriting it to run on a GPU rather than a CPU.

00:11:22.526 --> 00:11:25.198
But still, without access to some kind of a supercomputer,

00:11:25.198 --> 00:11:31.299
there's just no reason to expect those 11 bytes
to ever be resolved in my lifetime.

00:11:31.299 --> 00:11:35.601
Let alone the remaining 31 that the checksum won't solve.

00:11:35.601 --> 00:11:40.567
So while it initially seemed like an effective,
if inelegant way of restoring my save,

00:11:40.567 --> 00:11:44.234
it isn't. So it was time to try something else.

00:11:44.234 --> 00:11:48.000
So the obvious question is what if we just disregard the missing bytes
for a second?

00:11:48.000 --> 00:11:53.893
If we can generate a new checksum, what happens if we just
transplant it into the new file?

00:11:53.893 --> 00:11:56.634
Well, actually something quite interesting.

00:11:56.634 --> 00:11:59.735
The game still throws an error, but it's different.

00:11:59.735 --> 00:12:04.330
Before, it's said the save maybe corrupt.
But now, it's being a lot more vague.

00:12:04.330 --> 00:12:06.770
 Clearly, it can still tell something is wrong.

00:12:06.770 --> 00:12:11.898
I started looking into the file again.
I was intrigued by those 32 bytes towards the end --

00:12:11.898 --> 00:12:16.169
the other ones that completely changed
after all I did was switch from imperial than metric.

00:12:16.169 --> 00:12:23.174
I started to wonder what they could mean, especially because that entire 32-byte block takes up a majority of the bytes that are missing.

00:12:23.174 --> 00:12:27.259
If I could solve how those worked, I'd be down to only nine missing bytes.

00:12:27.259 --> 00:12:31.182
Again, at a glance, there's no real way to tell
what any of this means. And in fact,

00:12:31.182 --> 00:12:35.634
I was particularly perplexed that I couldn't get meaning
out of any of the bytes.

00:12:35.634 --> 00:12:39.928
I'd at least expect to see some rhyme or reason to
some of these numbers.

00:12:39.928 --> 00:12:44.234
But looking through it, it pretty much all seemed completely meaningless.

00:12:44.234 --> 00:12:48.134
And after further investigating what the code did
with the save file after the checksum,

00:12:48.134 --> 00:12:50.668
I soon figured out why.

00:12:50.668 --> 00:12:53.688
This save file is encrypted.

00:12:53.688 --> 00:12:59.882
The developers have specifically tried to prevent someone like me
doing something like this

00:12:59.882 --> 00:13:03.601
using a hex editor and trying to figure out how this save file works.

00:13:03.601 --> 00:13:08.312
At first, I thought this was kind of overkill
until I remembered this game has an online mode.

00:13:08.312 --> 00:13:13.904
I've never actually played it online because back when the game was new, my internet was Australian.

00:13:13.904 --> 00:13:19.735
And by now, of course, the online servers are long gone,
so I'd kind of forgotten the game even had an online mode.

00:13:19.735 --> 00:13:24.649
So it kind of makes sense they wouldn't want you hacking in infinite cash or the best cars without earning them

00:13:24.649 --> 00:13:27.267
If there's a chance you might be playing with other people.

00:13:27.267 --> 00:13:30.472
As for the encryption algorithm, to be honest,
I didn't look too deeply into it.

00:13:30.472 --> 00:13:34.673
It seemed to be some kind of XOR cipher,
but I couldn't really say for certain.

00:13:34.673 --> 00:13:38.110
I'm sure I could have reversed and reimplemented it if I really wanted to,

00:13:38.110 --> 00:13:42.404
but I could also just step over the decryption function
in PCX2's debugger

00:13:42.404 --> 00:13:45.134
and then I could just see the decrypted save and memory.

00:13:46.061 --> 00:13:47.301
"That was easy."

00:13:47.301 --> 00:13:50.228
Still, despite the data being a little less encrypted now,

00:13:50.228 --> 00:13:53.224
those 32 bytes were just as meaningless as before.

00:13:53.224 --> 00:13:55.850
It really did seem like another checksum or hash,

00:13:55.850 --> 00:13:58.499
but it seemed strange for there to be another checksum

00:13:58.499 --> 00:14:01.408
inside data that was already checkedsummed.

00:14:01.408 --> 00:14:05.000
But then I thought, what if it's more than a checksum?

00:14:05.000 --> 00:14:08.483
Remember how I said checksums aren't ideal for
detecting intentional tampering?

00:14:08.483 --> 00:14:12.429
Well, knowing now that the developers put at least some effort into preventing hacking,

00:14:12.429 --> 00:14:15.402
what if this is another layer of security?

00:14:15.402 --> 00:14:18.259
What if it's a digital signature?

00:14:18.259 --> 00:14:22.669
 A digital signature is like a checksum in that
it too is derived from a block of data

00:14:22.669 --> 00:14:24.924
and can therefore also be used to check for integrity,

00:14:24.924 --> 00:14:30.377
but it's also derived from a private key
that only the sender should know.

00:14:30.377 --> 00:14:33.953
This solves the problem of a hacker
could just regenerate the checksum, because

00:14:33.953 --> 00:14:38.664
there's no way to generate a matching signature, unless you somehow know that key.

00:14:38.664 --> 00:14:42.000
This makes it very effective for checking data authenticity

00:14:42.000 --> 00:14:46.301
and as a result, signatures are the backbone of
a lot of digital security systems.

00:14:46.301 --> 00:14:49.714
This also actually explains why the error message changes.

00:14:49.714 --> 00:14:55.468
See, the checksum failing could be anything from dirty memory card contacts causing read issues to full-blown corruption,

00:14:55.468 --> 00:14:57.034
accidental or not.

00:14:57.034 --> 00:15:03.228
But if the checksum passes, then the game knows for a fact that the file was both written and has been read correctly,

00:15:03.228 --> 00:15:05.228
at least according to the file.

00:15:05.228 --> 00:15:08.039
At that point, if the signature fails on top of that,

00:15:08.039 --> 00:15:12.000
the only real explanation is that someone has tampered with it.

00:15:12.000 --> 00:15:16.225
At which point, it's standard security practice to be
as vague as possible with your errors.

00:15:16.225 --> 00:15:20.034
After all, you don't wanna give hackers any potential clues for
what to circumvent next.

00:15:20.034 --> 00:15:24.374
And indeed, a signature would be extremely difficult to circumvent.

00:15:24.374 --> 00:15:27.162
Unless of course, you're on an emulator.

00:15:27.162 --> 00:15:29.579
They really do make it easy to cheat.

00:15:29.579 --> 00:15:33.108
In theory, the private signing key is somewhere in the game code.

00:15:33.108 --> 00:15:36.000
Possibly further obfuscated to make it even harder to find.

00:15:36.000 --> 00:15:39.066
It's possible.
I could get the key, figure out how the signature works

00:15:39.066 --> 00:15:42.456
and resign my save file
so the game will happily accept it.

00:15:42.456 --> 00:15:47.885
But do you know, it would be a lot easier just forcing the game to accept
my broken signature.

00:15:47.885 --> 00:15:51.438
This would at least get us to the next stage of loading,
whatever that may be.

00:15:51.438 --> 00:15:56.735
It's not like we care about data authenticity and nor are there any
online services for me to cheat on anymore.

00:15:56.735 --> 00:16:01.701
Also, we've more or less confirmed that the save file
is only really missing 9 bytes

00:16:01.701 --> 00:16:04.396
Out of a file of over a hundred thousand.

00:16:04.396 --> 00:16:10.706
There's a good chance that without a checksum or hash to tell it otherwise, the game wouldn't even notice that those bytes were wrong.

00:16:10.706 --> 00:16:15.881
Well, I modified one instruction so the game would think
the signature was legit and guess what.

00:16:15.881 --> 00:16:20.963
Yeah, that just happened to be the last thing
preventing my save from loading.

00:16:20.963 --> 00:16:25.906
From there onwards, the game was perfectly happy
and I was right back where I left off.

00:16:25.906 --> 00:16:30.385
All my cars, all my progress, it was all here --
just as I remembered it.

00:16:30.385 --> 00:16:35.305
And funnily enough, by accepting my invalid signature,
the game has become its own enemy.

00:16:35.305 --> 00:16:41.036
On start-up, the game makes an auto-save, meaning it's effectively, immediately converted my bad corrupt save

00:16:41.036 --> 00:16:48.389
to a perfectly authentic one. With a valid checksum, signature, and those nine bytes seemingly reset to their starting values

00:16:48.389 --> 00:16:50.935
or at least the same values they are in a brand new save.

00:16:50.935 --> 00:16:53.259
And I wasn't really worried about that.

00:16:53.259 --> 00:16:58.408
I mean, how much could be in there?
Maybe a car stat or two, a lap record or two at most,

00:16:58.408 --> 00:17:00.964
and maybe they were still at their starting values.

00:17:00.964 --> 00:17:03.634
 We'll never know for sure
and I think that's okay.

00:17:03.634 --> 00:17:06.000
My save is back and that's all I wanted.

00:17:06.000 --> 00:17:08.534
Whatever it is, I certainly can't tell anything is missing

00:17:08.534 --> 00:17:11.693
and I never did all the way to a hundred percent.

00:17:11.693 --> 00:17:13.434
Yep. I actually did it.

00:17:13.434 --> 00:17:19.002
And while part of me wants to take pride in working all of that out.
In reality, I was extremely lucky.

00:17:19.002 --> 00:17:25.575
I was lucky that as it turns out, no more than nine
actually meaningful bytes were missing out of over a hundred thousand.

00:17:25.575 --> 00:17:29.220
That's only 0.008%.

00:17:29.220 --> 00:17:32.379
So, in reality, I kind of didn't do anything.

00:17:32.379 --> 00:17:37.808
I did a lot of research to arrive at that solution, but ultimately,
the game itself is what took my broken save

00:17:37.808 --> 00:17:39.935
and spat out a shiny working one.

00:17:39.935 --> 00:17:41.356
Either way, I'm happy.

00:17:41.356 --> 00:17:44.746
I got to pick up from where I left off
and finish the game on my own terms.

00:17:44.746 --> 00:17:48.808
Thanks for watching this video. I hope you found it interesting
and I'll see you on the next one.

00:17:48.808 --> 00:17:49.735
Bye guys.

00:17:49.735 --> 00:18:09.655
[music]

