DEV Community

The Sonic 3D Blast "Level Select Hack" is so brilliant

Ben Halpern on October 02, 2017

This a video featuring the developer behind the game Sonic 3D Blast. I had never heard of this "secret", but about 25 seconds into the video, I kne...
Collapse
 
buntine profile image
Andrew Buntine

When I first entered the industry I was at a company who had written a custom CMS in ASP classic (pre-.NET). I noticed that every single file had the following statement at the top:

On Error Resume Next

After a couple of weeks I looked up it in the docs and found out, to my horror, that it's effectively saying "if there is a runtime error, just skip the offending expression and keep executing like everything is cool".

You could also do things like On Error GoTo SomeFunction that would do exactly what you'd think it might.

...Talk about dangerous programming! Hah.

Collapse
 
ben profile image
Ben Halpern

Nice. I'm sure everyone, with enough experience, has a tale or two like this.

Collapse
 
stefandorresteijn profile image
Stefan Dorresteijn

When I was learning C#, that's pretty much exactly what I did. Just try catch everything and have the catch do absolutely nothing. There I was, wondering why my application never did what I expected!

Collapse
 
rpalo profile image
Ryan Palo

Nice! When in doubt, catch everything and silently suppress it. Nothing to see here.

try:
    main()
except:
    pass
Collapse
 
albertofdzm profile image
Alberto Fernandez Medina

It's amazing how the people can improvise when there are restrictions, I wonder why this is not being done in the actual gen games when something brokes.

This a very clever way to avoid the player's frustration from a frozen screen or load bug.

Collapse
 
d_ir profile image
Daniel Irvine πŸ³οΈβ€πŸŒˆ

This is so great, makes me want to play the game again. Right after I'm done with Sonia Mania...