ROM hacking








ROM hacking is the process of modifying a ROM image or ROM file of a video game to alter the game's graphics, dialogue, levels, gameplay, and/or other elements. This is usually done by technically inclined video game fans to breathe new life into a cherished old game, as a creative outlet, or to make essentially new unofficial games using the old game's engine.


ROM hacking is generally accomplished through use of a hex editor (a program for editing non-textual data) and various specialized tools such as tile editors, and game-specific tools which are generally used for editing levels, items, and the like, although more advanced tools such as assemblers and debuggers are occasionally used. Once ready, they are usually distributed on the Internet for others to play on an emulator or games console.[1]


Fan translation (known as "translation hacking" within the ROM hacking community) is a type of ROM hacking; there are also anti-censorship hacks that exist to restore a game to its original state, which is often seen with older games that were imported, as publishers' content policies for video games (most notably, Nintendo's) were much stricter in the United States than Japan or Europe. Although much of the methodology applies to both types of hacking, this article focuses on "creative hacking" such as editing game levels.




Contents






  • 1 Communities


  • 2 Methods


    • 2.1 Hex editing


    • 2.2 Graphics editing


    • 2.3 Palette editing


    • 2.4 Level editing


    • 2.5 Data editing


    • 2.6 Assembly hacking


    • 2.7 Music hacking


    • 2.8 ROM expansion




  • 3 Distribution


  • 4 Usage


  • 5 Systems and games


  • 6 See also


  • 7 References


  • 8 External links





Communities


Most hacking groups offer web space for hosting hacks and screenshots (sometimes only hosting hacks by the group's members, sometimes hosting almost any hack), a message board, and often have an IRC channel.



Methods


Having been created by many different programmers or programming teams, ROM data can be very diverse.



Hex editing


A hex editor is one of the most fundamental tools in any ROM hacker's repertoire. Hex editors are usually used for editing text, and for editing other data for which the structure is known (for example, item properties), and Assembly hacking.


Editing text is one of the most basic forms of hacking. Many games do not store their text in ASCII form, and because of this, some specialized hex editors have been developed, which can be told what byte values correspond to what letter(s) of the alphabet, to facilitate text editing; a file that defines these byte=letter relationships is called a "table" file. Other games use simple text compression techniques (such as byte pair encoding, also called dual tile encoding or DTE, in which certain combinations of two or more letters are encoded as one byte) which a suitably equipped hex editor can facilitate editing.


A hex editor is the tool of choice for editing things such as character/item properties, if the structure and location of this data is known and there is no game-specific editor for the game that can edit this information. Some intrepid hackers also perform level editing with a hex editor, but this is extremely difficult (except on games whose level storage format closely resembles how it is presented in a hex editor).



Graphics editing


Another basic hacking skill is graphics hacking, which is changing the appearance of the game's environments, characters, fonts, or other such things. The format of graphics data varies from console to console, but most of the early ones (NES, Super NES, Game Boy, etc.) store graphics in tiles, which are 8x8-pixel units of data, which are arranged on-screen to produce the desired result. Editing these tiles is also possible with a hex editor, but is generally accomplished with a tile editor (such as Tile Layer or Tile Molester), which can display the ROM data in a graphical way, as well as finding and editing tiles.


Graphics hacks can range from simple edits (such as giving Mario an afro) to "porting" characters from one game to another, to full-blown thematic changes (usually with accompanying palette changes; see below).


More sophisticated graphics hacking involves changing more than just tiles and colors, but also the way in which the tiles are arranged, or tile groups generated, giving more flexibility and control over the final appearance. This is accomplished through hex editing or a specialized tool (either for the specific game or a specific system). A good example of a graphics hack is the uncompleted Pokémon Torzach, a hack which attempted to add a whole new generation of Pokémon and tiles to the game. The hack has since been discontinued, but it still serves as a good example on what can be achieved with the tools available.



Palette editing


Another common form of hacking is palette hacking, where color values are modified to change the colors a player sees in the game (this often goes hand-in-hand with graphics hacking); Palette values are commonly stored in Hex. This is fairly easy for NES games, the graphics of which use a pre-defined set of colors among which a game selects; palette hacking in this case entails changing which of those colors are selected. The matter is slightly more complicated with Super NES games and games for other systems, which store absolute RGB color values. Palette editors are usually simple and often are with Level editors, or Game specific graphics editors.



Level editing


One of the most popular forms of ROM hacking, level editing entails modifying or redesigning a game's levels or maps. This is almost exclusively done with an editor specially tailored for a particular game (called a level editor). Level edits can be done to make the game more challenging, to alter the flow of the game's plot, or just to give something new to an old game. Combined with extensive graphics hacking, the game can take on a very different look and feel.



Data editing


A core component of many hacks (especially of role-playing video games) is editing data such as character, item, and enemy properties. This is usually done either "by hand" (with a hex editor) if the location and structure of the data is known, or with a game-specific editor that has this functionality. Through this, a hacker can alter how weapons work, how strong enemies are or how they act, etc. This can be done to make the game easier or harder, or to create new scenarios for the player to face.



Assembly hacking


The most powerful, and arguably the most difficult, hacking technique is editing the game's actual code, a process called ASM hacking ("ASM" means "assembly", referring to the type of programming language used for early video games).[1] There is no set pattern for ASM hacking, as the code varies widely from game to game, but most skilled ASM hackers either use an emulator equipped with a built-in debugger or tracer, or run the ROM through a disassembler, then analyze the code and modify it using a hex editor or assembler according to their needs. While quite challenging compared to the relatively simple methods listed above, anything is possible with ASM hacking (of course, within the limits of the hardware/software of the gaming platform), ranging from altering enemy AI to changing how graphics are generated. (Of course, the possibilities are still limited by the hacker's ability to comprehend and modify the existing code.)


If the developers used a typed language, the hacker may be able to compile their own code for the game in the same language if they have access to a proper compiler. One such example would be using C to hack Nintendo 64 games, since MIPS-GCC can compile code for the Nintendo 64.[2][3]



Music hacking


Music hacks are relatively rare, due to the wide variety of ways games store music data (hence the difficulty in locating and modifying this data) and the difficulties in composing new music (or porting music from another game). As music cracking is very uncommon, many hacks do not have any ported/composed music added in. The program SapTapper can be used to hack Game Boy Advance music data, however, as many Game Boy Advance games use the M4A Engine (also called "Sappy Driver") for music. Various other utilities were created to work with the engine such as Sappy 2006.
Another instance of the same engine being used between games is on the Nintendo 64, in which most games use the same format; although they use different sound banks, as expected. A utility known as the N64 Midi Tool was created to edit the sequences that the majority of Nintendo 64 games use, though it does not cover the first-party N64 titles that use a slightly different engine, such as Super Mario 64.
Several[4]Mega Drive games use a sound engine unofficially known as "SMPS"[5], which has been researched for decades by many hackers[6]. As of today, various[7] tools exist to alter the music of games which use the SMPS engine (Sonic the Hedgehog games in particular), and many of them made their way to the Steam Workshop[8].



ROM expansion


Generally speaking, a ROM hacker cannot normally add content to a game, but merely change existing content. This limit can be overcome through ROM expansion, whereby the total size of the ROM image is increased, making room for more content and, in turn, a larger game. The difficulty in doing this varies depending on the system for which the game was made. For example, expanding an NES ROM may be difficult or even impossible due to the mapper used by the game. For example, if a mapper allows 16 ROM banks and all of them are used, expanding the ROM further is impossible without somehow converting the game to another mapper, which could be easy or extremely difficult. On the other hand, expanding a SNES game is (relatively) straightforward. To utilize the added space, parts of the game code have to be modified or re-written (see Assembly hacking above) so the game knows where to look. Another type of ROM expansion that is fairly easy is Game Boy Advance ROMs. The ROMs themselves are generally small, but the memory space available sometimes exceeds it by multiples of up to 17.



Distribution


Once a hack is completed (or an incomplete version is deemed suitable for an interim release) it is released onto the Internet for others to play. The generally accepted way to do this is by making an unofficial patch (in IPS format or others) that can be applied to the unmodified ROM.[1] This, and usually some form of documentation, is put in an archive file and uploaded somewhere. IPS is a format for recording the differences between two binary files (in this case, between the unmodified and hacked ROMs) and is suitable for ROM hacks. IPS is still used today for small patches—however, as ROMs became larger in size, this format became useless, leading to quite a few file formats being created—such as NINJA and PPF ("PlayStation Patch Format"). PPF is still used today, particularly to patch large files such as ISO CD images and Nintendo 64 games. A new patch format, UPS, has also been developed by the ROM hacking community, designed to be the successor to IPS and PPF.[9]
A more recent patching format, the APS patching system, has also been developed by a devoted Game Boy Advance ROM hacker.[10] The APS system is more space efficient, is reversible, and is faster than its predecessor.[11]


The purpose of distributing a hack in patch form is to avoid the legal aspects of distributing entire ROM images; the patch records only what has changed in the ROM, hence distributing it does not usually distribute parts of the original game. A patch is also normally drastically smaller than the full ROM image (an NES ROM can run anywhere from 8 KB to 2 MB; a Super NES ROM can run from 256 kB to 6 MB).


In a novel example of legal distribution, Sega released a Steam-based virtual hub for its previous collection of Mega Drive/Genesis games, entitled Sega Mega Drive Classics Hub. The Hub, besides allowing players to play emulated versions of these older games, takes advantage of Steam's support for user-created content through Steam Workshop support, officially allowing for ROM hacks of any of the offered classics.[12]



Usage


Patched ROMs are often played on emulators, however it is also possible to play patched ROMs on the original hardware.[13] The destination cartridge could be the original cartridge from which the initial unpatched ROM was pulled, or another compatible cartridge of the same type. This is particularly popular for fan translations, homebrew games, prototypes, or other games for which original cartridges were never produced, or for games which require exact timing or other elements of the original hardware which are not available in emulators.



Systems and games


The majority of ROM hacking is done on NES and Super NES games, since such games are small and simple compared to games of more advanced consoles such as the Nintendo 64 or Nintendo DS. Games for the Game Boy, Game Boy Color and Game Boy Advance are also popular for hacking, as well as games for the Sega Mega Drive and PlayStation to a lesser extent. But by no means are games for more recent consoles exempt from hacking, and indeed as computers have become faster and more programs and utilities have been written, more PlayStation, Nintendo 64 and Nintendo DS hacks have emerged.


Of these, popular games to play are popular games to hack; many hacks have been released of games of the Sonic the Hedgehog series, Super Mario series (including Super Mario 64 and Super Mario World), Mario Kart series (most notably Super Mario Kart, Mario Kart Wii, Mario Kart 7, and Mario Kart DS), Pokémon series, Chip's Challenge, Final Fantasy, The Legend of Zelda, games from the Mega Man series, Fire Emblem series, EarthBound, Super Metroid, and many others.


A notable hacked arcade game was Street Fighter II Blackbelt Edition, which featured increased game speed and new special moves. The success of this game prompted Capcom to release Street Fighter II: Hyper Fighting as an official response.


Your Sinclair magazine published a monthly column called "Program Pitstop". This focused mainly on cheat hacks for games, but also featured both a level map printer[14] for the original Gauntlet, as well as a full level editor[15] for the same game.



See also



  • Fan translation of video games

  • Game Genie

  • GameShark

  • Homebrew (video games)

  • Mod (video gaming)

  • Undubbing

  • Forking (software development)



References





  1. ^ abc "Dictionary of ROMhacking terms". ROMhacking.net..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}


  2. ^ "vg64tools - Project Hosting on Google Code". Code.google.com. Retrieved 2009-09-09.


  3. ^ "Super Mario 64: Pong Of Death (messiaen)". Sites.google.com. Retrieved 2009-09-09.


  4. ^ "Mega Drive/Genesis Sound Engine List - GDRI :: Game Developer Research Institute". gdri.smspower.org.


  5. ^ "SMPS - Sega Retro". segaretro.org.


  6. ^ "Valley Bell's SMPS Research". Sonic and Sega Retro Message Board.


  7. ^ "Sonic Hacking Utilities - Sonic Retro". info.sonicretro.org.


  8. ^ "Steam Workshop :: SEGA Mega Drive & Genesis Classics". steamcommunity.com.


  9. ^ "New patching format, UPS, debuts today". www.romhacking.net.


  10. ^ "The PokéCommunity Forums - View Profile: HackMew". www.pokecommunity.com.


  11. ^ "Newest patching format, APS, recently released". www.pokecommunity.com.


  12. ^ Yin-Poole, Wesley (April 29, 2016). "Modders are already having fun with Sega Mega Drive classics on Steam". Eurogamer. Retrieved May 3, 2016.


  13. ^ "Basic NES Reproduction".


  14. ^ "World of Spectrum - Forced Redirect". www.worldofspectrum.org.


  15. ^ "World of Spectrum - Forced Redirect". www.worldofspectrum.org.



.mw-parser-output .refbegin{font-size:90%;margin-bottom:0.5em}.mw-parser-output .refbegin-hanging-indents>ul{list-style-type:none;margin-left:0}.mw-parser-output .refbegin-hanging-indents>ul>li,.mw-parser-output .refbegin-hanging-indents>dl>dd{margin-left:0;padding-left:3.2em;text-indent:-3.2em;list-style:none}.mw-parser-output .refbegin-100{font-size:100%}



  • Carless, Simon, Gaming hacks


  • Castro, Radford, Let me play: stories of gaming and emulation


  • Jordan, Will (2007). From Rule-Breaking to ROM-Hacking: Theorizing the Computer Game-as-Commodity (PDF). Situated Play, Proceedings of DiGRA 2007 Conference.


  • Newman, James, Playing with videogames




External links




  • Zophar's Domain A site with some information and resources related to ROM hacking.


  • gbatemp.net A ROM Hacking community focusing mainly on DS, 3DS, Wii and Wii U.


  • psxdev.net Forum and resources about PSX Hacking.


  • XeNTaX A community focusing on reverse engineering and file formats of many video games and consoles.


  • SMW Central Super Mario World hacking community.


  • FF6Hacking.com A community dedicated to Final Fantasy 6 hacking.


  • Slick Production Community dedicated to hacking various Final Fantasy games, mainly FF4, FF5 and FF6.


  • Quimm Forums Forums dedicated to hacking mainly PSX and PC versions of FF7, FF8 and PSX version of FF9.


  • New Game Plus Site hosting difficulty hacks.




Popular posts from this blog

Y

Mount Tamalpais

Indian Forest Service