Table of Contents for
Gaming Hacks

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Gaming Hacks by Simon Carless Published by O'Reilly Media, Inc., 2004
  1. Cover
  2. Gaming Hacks
  3. Credits
  4. Contributors
  5. Acknowledgments
  6. Foreword
  7. Preface
  8. How to Use This Book
  9. How This Book Is Organized
  10. Conventions Used in This Book
  11. Using Code Examples
  12. Comments and Questions
  13. Got a Hack?
  14. 1. Playing Classic Games
  15. Legal Emulation
  16. Play Commodore 64 Games Without the C-64
  17. Play Atari ROMs Without the Atari
  18. Use Atari Paddles with Your PC
  19. Run Homebrew Games on the Atari 2600
  20. Create Your Own Atari 2600 Homebrew Games
  21. Play Classic PC Graphic Adventures
  22. Play Old Games Through DOSBox
  23. Play Reissued All-in-One Joystick Games
  24. Play Arcade Games Without the Arcade
  25. Add and Manipulate a MAME Frontend
  26. Keep Your ROMs Tidy and Organized
  27. Learn Game-Specific MAME Controls
  28. Filter Inappropriate MAME ROMs
  29. Autoboot into MAME Heaven
  30. Play Emulated Arcade Games Online
  31. Play Classic Pinball Without the Table
  32. Emulate the SNES on the Dreamcast
  33. 2. Playing Portably
  34. Play Games on Your iPod
  35. Mod Your Game Boy
  36. Take and Print Photos with Your Game Boy
  37. Compose Music on Your Game Boy
  38. Explore the GP32 Handheld Gaming System
  39. Take Your Console with You
  40. Explore the Bandai WonderSwan
  41. Play Real Games on Your PDA
  42. Install a PlayStation 2 in Your Car
  43. 3. Playing Well with Others
  44. Practice Proper MMORPG Etiquette
  45. Understand MMORPG Lingo
  46. Grind Without Going Crazy
  47. Make a Profit in Vana’diel
  48. Write MMORPG Macros
  49. Build an Effective Group
  50. Catch Half-Life FPS Cheaters Redhanded
  51. 4. Playing with Hardware
  52. Build a Quiet, Killer Gaming Rig
  53. Find and Configure the Best FPS Peripherals
  54. Adapt Old Video Game Controllers to the PC
  55. Choose the Right Audio/Video Receiver
  56. Place Your Speakers Properly
  57. Connect Your Console to Your Home Theater
  58. Tune Console Video Output
  59. Tune Your TV for Console Video
  60. PC Audio Hacking
  61. Optimize PC Video Performance
  62. Build a Dedicated Multimedia PC
  63. Use a Multimedia Projector for Gaming
  64. 5. Playing with Console and Arcade Hardware
  65. Play LAN-Only Console Games Online
  66. Hack the Nuon DVD Player/Gaming System
  67. Play Import Games on American Consoles
  68. Find a Hackable Dreamcast
  69. Play Movies and Music on Your Dreamcast
  70. Hack the Dreamcast Visual Memory Unit
  71. Unblur Your Dreamcast Video
  72. Use Your Dreamcast Online
  73. Host Dreamcast Games Online
  74. Burn Dreamcast-Compatible Discs on Your PC
  75. Burn Dreamcast Homebrew Discs
  76. Buy Your Own Arcade Hardware
  77. Configure Your Arcade Controls, Connectors, and Cartridges
  78. Reorient and Align Your Arcade Monitor
  79. Buy Cart-Based JAMMA Boards
  80. Programming Music for the Nintendo Entertainment System
  81. 6. Playing Around the Game Engine
  82. Explore Machinima
  83. Choose a Machinima Engine
  84. Film Your First Machinima Movie
  85. Improve Your Camera Control
  86. Record Game Footage to Video
  87. Speedrun Your Way Through Metroid Prime
  88. Sequence-Break Quake
  89. Run Classic Game ROM Translations
  90. Change Games with ROM Hacks
  91. Apply ROM Hacks and Patches
  92. Create PS2 Cheat Codes
  93. Hack Xbox Game Saves
  94. Cheat on Other Consoles
  95. Modify PC Game Saves and Settings
  96. Buff Your Saved Characters
  97. Create Console Game Levels
  98. 7. Playing Your Own Games
  99. Adventure Game Studio Editing Tips
  100. Create and Play Pinball Tables
  101. Put Your Face in DOOM
  102. Create a Vehicle Model for Unreal Tournament 2004
  103. Add a Vehicle to Unreal Tournament 2004
  104. Modify the Behavior of a UT2004 Model
  105. Download, Compile, and Create an Inform Adventure
  106. Decorate Your IF Rooms
  107. Add Puzzles to Your IF Games
  108. Add Nonplayer Characters to IF Adventures
  109. Make Your IF NPCs Move
  110. Make Your IF NPCs Talk
  111. Create Your Own Animations
  112. Add Interactivity to Your Animations
  113. Write a Game in an Afternoon
  114. 8. Playing Everything Else
  115. Tweak Your Tactics for FPS Glory
  116. Beat Any Shoot-Em-Up
  117. Drive a Physics-Crazed Motorcycle
  118. Play Japanese Games Without Speaking Japanese
  119. Back Up, Modify, and Restore PlayStation Saved Games
  120. Access Your Console’s Memory Card Offline
  121. Overclock Your Console
  122. Index
  123. Colophon

Sequence-Break Quake

Speedrunners ( [Hack #68] ) don’t always exploit engine tricks. Sometimes shaving precious seconds off your personal records requires exploiting level design bugs and misfeatures. To become a competitive speedrunner—or even to find new ways to explore a well-loved game—you have to change your mindset. What’s the least amount of work you can do to complete a level?

The following sections demonstrate shortcuts the game designers never intended.

Sequence Breaking in Speedruns

The real meat of speedrunning, some argue, is sequence breaking, tackling the levels of a game in an unintended order or skipping entire sections the designers intended you to play. This usually requires using tricks to achieve the breaks, but occasionally exploiting an engine or map design feature may yield fruit.

For example, consider The Installation (http://speeddemosarchive.com/hack/e2m1.html), the first level in the second episode of Quake. The intended approach leads you through a sprawling maze of corridors and water in a military base, collecting two keys to unlock the route to the exit. Thanks to an oversight on the part of John Romero, the level author, it is possible to jump from the edge of one balcony near the start to a balcony near the exit, which allows you to complete the level in just 10 seconds! Bunnyhopping can cut this time to seven seconds.

As the exposure and notoriety of speedrunners and sequence breaking has evolved, so have the attitudes of developers and map authors. For a long time, their responses were, “How dare they? That is not what I intended!” After the success of Quake done Quick (http://planetquake.com/qdq/), id Software tried to cull abusable features from Quake 2 to prevent the abuses of speedrunners by placing artificial barriers in the way of anyone trying to take shortcuts (http://planetquake.com/qdq/q2dq2.html). For example, you can reach the end of the first unit very quickly using a grenade boost or series of bunnyhops, but you’ll find an invisible barrier blocking your way. The barrier will disappear only when you complete the intended tasks for the unit.

Tip

Many Quake 2 shortcuts and speed tricks still exist, though. See the Speed Demos Archive Quake 2 page (http://speeddemosarchive.com/hack/q2.html).

Over the last few years, the attitude of some developers has shifted from “Thou Shalt Not!” to “Do What Thou Wilt!” as software houses began to release games with deliberate sequence-breaking potential. The first section of Nintendo’s 2004 Metroid Zero Mission requires you to open a door by shooting it with a missile (http://speeddemosarchive.com/hack/mzm.html). Breakable blocks block your way to the missiles, but your gun lacks the range to shoot all the blocks. The obvious approach is to take a detour to another part of the level to acquire the Long Beam powerup. However, there are missiles hidden behind disguised shootable blocks near the door that allow you to skip the Long Beam and cut off a minute of game time. There is no earthly reason for these blocks to exist other than to help speedrunners.

Some purists argue that built-in sequence breaks violate the spirit of the game. They suggest that the real art in sequence breaking comes from doing things that were never intended and that blow the intended game wide open. We’ll concentrate on these in the following examples.

Sequence-Breaking Quake

Let’s apply these specific techniques to Quake. We’ll examine several of the world’s top Quake demos for ideas.

Our first two Quake demos show the variety of tricks usable in even the quickest and simplest of runs. They both involve completing “Hell’s Atrium” (episode 4, mission 5) in the fastest possible time (http://speeddemosarchive.com/hack/e4m5.html). The first demo takes 11 seconds on Easy skill by Joszef Szalontai, and the second takes 10 seconds on Nightmare skill by Markus Taipale. Although both runs follow a straight line, they take very different approaches and cram a lot of different tricks and techniques in a short time. The record time on this level without exploiting damage boosts and engine quirks is 0:16.

Easy skill

Joe’s primary speed gain comes from bunnyhopping. He starts off doing long, wide bunnies until he reaches the outside stairs. You can’t bunnyhop up stairs because the back of the steps slows you down when you hit them, so Joe takes an ingenious route, jumping to the right and landing on the lift in the middle of the slime pool [5.1 seconds]. The lift gives him just enough height to jump even further to the right, where he performs a long, curving slope jump off the slanted decoration on the wall [5.6 seconds]. This takes him to the far side of the slime pool, where he begins another sequence of bunnies. This time, however, he starts from standing directly in front of one of the spike-trap shooters in the wall. The first spike hits him in the back just as he takes off from his first jump [7.0 seconds]. As all damage gives a speed increase, this adds to his forward velocity. From there it’s just bounce, bounce, bounce to the exit.

Nightmare skill

The Nightmare demo from Markus takes a different approach due to the monsters that lurk around every corner on the harder skill levels. Upon stepping out into the sunlight [3.6 seconds], there is a spawn lurking in the shadows to the left. When a spawn dies, it explodes. To a speedrunner, explosions, if they don’t kill you, are your friends. Three shotgun blasts prime the spawn, and a fourth shot just as Markus takes off from a bunnyhop finishes off the spawn, blowing the player clear across the slime pit at a very high speed [5.5 seconds]. Unbelievable air-control and momentum-preserving bunnies allow him to maintain this speed all the way to the lava pit in front of the exit. There’s no chance of a spike boost this time, because he’s just moving too fast!

A fiend blocks his way to the pit [8.8 seconds]. Markus fires his gun as soon as he comes into sight and then flings himself out over the pit. The fiend, taking umbrage at the attack, launches himself at the player’s back to deliver a savage blow. The blow is enough to double Markus’s forward speed, propelling him all the way to the other side of the lava and the exit.

Easy 100%

Our final Quake demo may be the best demo of all time: Peter Horvath’s legendary Easy 100% (killing all monsters and finding all secret areas on Easy skill before exiting) of The Necropolis (episode 1, mission 3) in 60 seconds (http://speeddemosarchive.com/hack/e1m3.html).

He begins with a couple of simple bunnyhops and acquires the grenade launcher. His first true boost comes from throwing a grenade against the wall and riding the explosion of the rebounding grenade. This also hits the zombies he has just run past. He then throws a grenade at the ogre behind the bars as he flies down the stairs on the right. He then drops down and shoots a secret door in the wall. This door will take two seconds to open wide enough for him to squeeze through, so he nips around the corner to finish off the first ogre with another grenade. This is a good example of good route planning; killing this ogre has cost absolutely no time at all.

After plundering the secret health and ammo supplies, he needs to return to the walkway above. Jumping and firing a grenade into the feet of a conveniently placed zombie blows him right where he wants to be. After dropping down into the cave/water area, he tosses grenades around seemingly at random. Don’t be deceived: each will kill one or more of the zombies that haunt this murky area. On reaching the far side of the water and collecting the gold key from its tiny island en route, he plunges into another secret area: a hidden pit in the water, just far enough to trigger the secret.

Peter then throws the most precise grenade ever used in a speed demo. To avoid having to backtrack through the caves and the start area to reach the gold-key door above, he performs a grenade slope jump from the gold key’s little slopey island. Not wasting a moment, he throws the grenade onto the slope while still under water on the other side of the room, then runs and jumps all the way to the gold-key door.

After opening the door and killing the scrags and ogre that infest the area, Peter then performs another very precise grenade jump. He throws the aforementioned explosive down onto the stairs in front of him and then bunnyhops down after it. The grenade explodes the moment he takes off from his jump just in front of it, blowing him clear over the sewer trap toward the final area. Before he gets there, he must deal with zombies hiding in the walls. To release them normally requires climbing the wall steps and pressing the button. With the aid of a handy slope, another grenade, and a mid-air 180-degree turn (air control again), that’s a mere formality.

Pausing briefly to eradicate the ogres lurking by the roof, and to uncover the last secret, Peter then throws another grenade into the giant elevator. As far as I know, the next trick has never appeared in a speedrun before. Wall sliding, moving forward into an obtuse angle between two walls in a vertical shaft to slow or stop your descent, is well-known in Quake circles. However, slowing techniques rarely appear in speedruns.

In this case, jumping up the left side of the lift shaft and sticking to the wall like a low-budget Spider-Man lures the zombie from the corridor below into the lift—as well as the bar trap. That’s too good for Peter to pass up, so he triggers the trap, pulverizing the zombie. Then he heads back out through the door, fortunately kept open by the dearly departed zombie. This trick was first done with a fiend, present on Nightmare skill, who is much easier to lure into the trap. Peter’s finish is just a matter of hopping through the opening teleporter and killing the final fiend before exiting!

Other Games

Speedrunning isn’t limited to Quake or the Metroid series. I briefly mentioned a Zelda and Prince of Persia run, but it doesn’t stop there. Even games without timers have speedruns; just count the amount of real time taken. If you’ve ever tried to play a game through quickly, maybe you should record your route and post it online. You never know, someone might make millions from speedrunning someday!