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

Take and Print Photos with Your Game Boy

Fun things you can do with Nintendo’s playful printer and camera peripherals.

Nintendo comes up with some cool geek toys. Many of them are in wide circulation right now, particularly the Game Boy Advance and the GameCube. Some of their older gems are still well worth buying to hack, exploit, and otherwise fiddle with; the Game Boy Camera and Game Boy Printer are foremost among these. Let’s check out what you can do with them.

Introducing the Game Boy Camera and Printer

Many people have fallen in love with Nintendo’s rudimentary Game Boy Camera, which shoots up to 30 pictures in four shades of grey at 128 112 pixel resolution, and stores everything in 128 KB of battery-saved SRAM. Originally released in 1998 in Japan and then in the West in the days of the black-and-white Game Boy, the camera still works with subsequent Game Boy models, including the Game Boy Advance and Game Boy Advance SP.

Due to its low-resolution, black-and-white look, the GB Camera feels even older than its actual vintage. While snapping, the camera lens itself either swivels to point toward the Game Boy user or faces outward to take pictures of your surroundings. It’s surprisingly versatile, though. Not only can you take pictures and create simple stop-motion animations, the camera provides a large variety of stencils and silly add-ons (including fake noses, hats, and other accoutrements) that you can paste onto your picture. It even includes mini-games, as well as a musical DJ mode that allows very simple song composition, although this is nothing like the sophistication of Nanoloop or Little Sound Dj ( [Hack #22] ).

The best thing about the GB Camera is the price. They’re spectacularly cheap nowadays, and you can find them in large quantities on eBay for anywhere between $5 and $10 plus shipping.

The fun Game Boy Printer, released concurrently with the Game Boy Camera, is geared toward printing out the pictures you’ve taken, especially on sticker paper. Although the Game Boy Printer paper is extremely cheap (small rolls of thermal paper cost as little as $1 per roll on eBay), the Printer itself is scarcer than the Camera, fetching $20 or more on auction sites. However, it’s strictly optional for most of the fun you can have here.

Tip

It’s worth steering clear of third-party Game Boy Advance color cameras as an alternative to the Game Boy Camera, because all they offer is a way to take pictures and view them on your GBA screen. You can’t perform any of the fun picture manipulations. Although these cameras provide an easy USB connection for transferring pictures to the PC, they’re like a poor man’s digital camera—not sufficiently lo-fi to be attractive, not nearly hi-fi enough to be worth the money.

Taking the Best Pictures Possible

Although it may seem like normal photographic rules apply, the odd resolution and number of colors mean there are several things to learn in order to take good photos. Here are some compositional and situational tips that’ll help you coax the best pictures out of your Game Boy Camera:

  • Light levels are very important when taking Game Boy pictures. Any night or dusk-time shots will be almost impossible to make out because the device has no flash. You may be able to take pictures with strong lighting or neon around, but unless you have a backlit screen on the Game Boy itself, you won’t see much through the viewfinder. The Game Boy Camera is a sunny-day toy.

  • Large, manmade objects such as buildings, vehicles, and statues often photograph better than rolling hills and smooth panoramas, because sharp edges and local contrasts in shade stand out a lot better in just four shades of gray. Forget about anything with subtle details! Figure 2-1 shows some of the best work I’ve done.

  • Use the directional pad to adjust the contrast and brightness controls on the viewfinder screen before you actually take your picture or start your movie running. A couple of notches one way or the other, especially with the brightness control, can make the difference between an unusable and a perfect picture. Don’t crank the contrast too high, though, unless you like the novelty of an either entirely black or entirely white pixelscape. This effect can actually look quite good if unleashed at the right time.

  • If you’re trying to make a movie that’ll look good at a later date when looped as an animated GIF, pick start and end points close to each other. For example, do a 360-degree pan in one direction and stop just before completing a full revolution so that the first and the last frames fit together. Alternately, find a piece of machinery or another filmable object that loops—a revolving fairground attraction, for example—to make your GB animation go on forever.

Game Boy Camera pictures, taken by author, from San Francisco, Las Vegas, and London

Figure 2-1. Game Boy Camera pictures, taken by author, from San Francisco, Las Vegas, and London

Transferring Pictures to Your PC

There are a variety of methods for moving the images from your Game Boy to your PC for editing. Unfortunately, none of them are easy; Nintendo isn’t particularly interested in making non-Nintendo hardware work with your Game Boy. However, if you want to display your Game Boy pictures on your web page, make animated GIFs of your movies, or store your old photos for safekeeping, you need to transfer your photos to your PC in some form. The following sections describe some possibilities.

The Game Boy Xchanger

By far the most efficient method is plugging your cartridge into dedicated hardware that connects to your PC via the parallel port. The most famous of these is the Bung Xchanger, as seen at http://www.robwebb.clara.co.uk/backup/bung/bungxch.html. Unfortunately, this device also theoretically allows you to copy Game Boy games if you buy a Flashrom cartridge, so Nintendo has cracked down and banned Bung from selling them.

If you can find an Xchanger, you can transfer the entire SRAM save of the Game Boy Camera cartridge to your PC, and then use either the gb_cam_dump or Gh0st Camera software (available from drx’s page at http://a-blast.org/~drx/lo-tech/gameboy/howto/index.en.html) to save the pictures out into image form.

There’s also a very strange device called the MPXchanger from Blaze that has some Game Boy memory card functionality and is available very cheaply, if you can find it. No one knows much about it, and it reportedly works only with Windows 95 and 98 and uses custom save-game formats.

Commercially built printer emulator cables

Although much slower and able to transfer only one picture at a time, a class of ingenious cables and software emulates the Game Boy Camera to Game Boy Printer connection from your Game Boy to your PC. These allow full-quality image transfer. The only one of these peripherals I know about is the MadCatz Camera Link. Unfortunately, it’s spectacularly difficult to find; it must have had limited production runs. It comes with its own software to save the photos.

Homebrew printer emulator cables

Hardcore hackers can build their own Game Boy Printer emulator cables, using the instructions in Martin Eyre’s software/schematic combo ZIP file (see drx’s page again at http://a-blast.org/~drx/lo-tech/gameboy/howto/index.en.html). You’ll need to adapt a Nintendo Universal Game Link cable and add a PC parallel port adapter onto its end. Documentation is scant, so this is not for the faint of heart.

Take pictures of your Game Boy’s screen

This final option is sneaky but workable. There are a variety of methods to get your Game Boy Camera pictures to display on a TV; the easiest and most up to date uses a Game Boy Player for your GameCube. This official device plugs into the bottom of your GameCube and allows you to display Game Boy games through your GC. The Game Boy Camera works perfectly well with it.

You can either take pictures of the screen with a digital camera (a very rough way of doing things) or, even better, use a video capture card on your PC and grab pictures and movies straight from your Game Boy Camera into your computer. You may need to adjust the resolution and deal with the resulting blurriness, but it’s definitely better than nothing.

Maximize Snaps with a GB Mega-Memory Card

Now that you’re a wizard Game Boy Camera photographer, you may find that 30 pictures just aren’t enough, especially for filming animated sequences. Fortunately, the obscure Game Boy peripherals market has provided keen shutterbugs with more space, in the form of the Interact Mega Memory Card for Game Boy Color.

This sometimes clear yellow peripheral, originally made to cash in on Pokémon fever by giving kids five extra save spots in which to save Pikachu from accidental deletion, connects to your Game Boy Camera cartridge. Each extra save spot can hold 30 pictures, increasing your storage space to 150 snaps plus the 30 on your camera. The card comes with its own menu for saving and restoring the SRAM, but it’s a little clunky. It just won’t fit in an original black-and-white Game Boy, but it works, and there are almost always multiple copies of the peripheral for sale on eBay for less than $5.

By the way, one handy and often overlooked tip related to picture management on the GB Camera cart itself can delete all your photos at once. Instead of laboriously removing each of the 30 pictures individually on the main GB Camera title screen, press the Select button, then choose Edit and Album, and finally press Up, Select, and Start simultaneously to reach a dialog offering deletion of all.

Adding Color to Your Black-and-White Images

Wouldn’t it be cool if there were a Game Boy Camera featuring color with the same cool-looking resolution and picture tone? Unfortunately, such a piece of hardware doesn’t exist, but David Friedman’s Rule Of Thirds camera page (http://www.ruleofthirds.com/gameboy/) showcases an ingenious method for producing color Game Boy Camera pictures:

  1. You’ll need red-, green-, and blue-hued filters. You can find these at a camera store, which may even give away sample books containing colored filters. Place these filters over the lens of the camera and take a picture from exactly the same angle for each filter. Transfer the pictures to your PC in some fashion and load them into Photoshop.

  2. Convert the first picture to the R (red) values, the second picture to G (green) values, and the third picture to B (blue) values. Combine the three into a single RGB picture. If you do all this correctly, you’ll see something approximating a color picture. However, the colors will likely to be faint and washed-out, because, as David discovered, the camera still collects infrared light of all types.

  3. For ideal results, use a hot mirror filter lens to block out infrared light. Fit the red, green, and blue lenses over the top of this filter. If you want to go all the way for perfect color, these lenses cost between $30 and $40 at photographic stores, so it’s probably more expensive than the Game Boy Camera itself, actually. However, the results, as shown on David’s page, can be spectacular. See http://www.ruleofthirds.com/gameboy/pictures.html. It’s great to see the low resolutions with vibrant colors.