Approver, confirmaccount
398
edits
StarlitSkies (talk | contribs) (inspired by https://glazedbelmont.github.io/vcextract/ - info on game gear is pending indefinitely) |
StarlitSkies (talk | contribs) (the tabber's lists refused to behave; now all the lists are HTML. also some info & style fixes) |
||
Line 1: | Line 1: | ||
Virtual Console games are usually identical to the original game, as Nintendo | Virtual Console games are usually identical to the original game, as Nintendo usually avoids modifying ROMs directly and instead layers patches on top. However, even when directly modified, easy methods have been found to revert them. | ||
This means the original game can be extracted and used | This means the original game can be extracted and used exactly the same as one dumped from a cartridge. | ||
== Required Reading == | == Required Reading == | ||
This tutorial | This tutorial currently supports NES, SNES, GB, GBC, GBA, and Game Gear VCs. | ||
Note that ROMs from three consoles are altered in VCs, as follows: | Note that ROMs from three consoles are altered in VCs, as follows: | ||
NES | NES VCs use a non-standard TNES header that only works in the Virtual Console, and must be converted back after dumping. This guide walks through how to convert the header. | ||
SNES | SNES VCs are altered for more efficient playback in the Virtual Console, and if not restored after dumping the audio will be unusuable in other emulators. This guide walks through how to restore the ROM. | ||
Game Gear | Game Gear VCs are compressed into a unique archive type, and sometimes their ROMs are directly patched. This guide walks through how to decompress the archive (WIP), but as the patches are nondestructive it does not revert them. | ||
==Instructions== | ==Instructions== | ||
===What You Need=== | ===What You Need=== | ||
<ul> | |||
<li>The latest release of {{GitHub|dok3/GodMode9|GodMode9}} (the GodMode9 <code>.zip</code> file)</li> | |||
<li>If extracting an NES game: [[Special:DownloadWithFilename/File:tnes2ines.txt/tnes2ines.gm9|tnes2ines.gm9]]</li> | |||
<li>If extracting a SNES game: | |||
<ul> | |||
<li>The source code of {{GitHub|Plombo/vcromclaim|vcromclaim}} (obtainable by the Download ZIP option within the <big><span style="background:#008000">Code</span></big> dropdown)</li> | |||
<li>[[Special:DownloadWithFilename/File:snesvcsplit.txt/snesvcsplit.py|snesvcsplit.py]]</li> | |||
<li>An installation of [https://www.python.org/downloads/release/python-2718/ Python 2.7]</li> | |||
</ul> | |||
</li> | |||
<li>If extracting a Game Gear game: The latest release of {{GitHub|farmerbb/RED-Project/releases/latest|MArchiveBatchTool}}</li> | |||
</ul> | |||
=== Section I - Prep Work === | === Section I - Prep Work === | ||
Line 28: | Line 33: | ||
In this section, you will set up the necessary files to extract a VC game. | In this section, you will set up the necessary files to extract a VC game. | ||
<ol> | |||
<li>Power off your console | |||
<li>Insert your SD card into your computer | |||
<li>Copy <code>GodMode9.firm</code> from the GodMode9 <code>.zip</code> to the <code>luma/payloads</code> folder on your SD card | |||
<li>Copy the <code>gm9</code> folder from the GodMode9 <code>.zip</code> to the root of your SD card | |||
<li>If you are extracting an NES game, copy <code>tnes2ines.gm9</code> into the <code>gm9/scripts</code> folder on your SD card | |||
<li>If you are extracting an SNES game, extract the vcromclaim <code>.zip</code> into a folder and place <code>snesvcsplit.py</code> into this folder | |||
<li>If you are extracting a Game Gear game, extract the MArchiveBatchTool <code>.zip</code> into a folder | |||
<li>Reinsert your SD card into your console | |||
</ol> | |||
=== Section II - Accessing the Game Files === | === Section II - Accessing the Game Files === | ||
Line 41: | Line 48: | ||
In this section, you will mount the VC game's internal files. | In this section, you will mount the VC game's internal files. | ||
<ol> | |||
<li>Hold the {{B|START}} button and power on to open GodMode9 | |||
<li>Press the {{B|HOME}} button, then press {{B|A}} on the '''Title manager''' option | |||
<li>Press {{B|A}} on <code>[A:] SD CARD</code> and wait for the search to complete | |||
<li>Once it completes, all titles that you have installed will appear | |||
<li>Find the VC that you wish to extract a ROM from and press {{B|A}} on that title, then choose to '''Open title folder''' | |||
<li>Press {{B|A}} on the main game file - usually named <code>00000000.app</code> - then choose '''NCCH image options...''', then '''Mount image to drive''' and press {{B|A}} again to confirm | |||
<li>The internal files of the chosen game will appear | |||
</ol> | |||
=== Section III - Dumping the ROM === | === Section III - Dumping the ROM === | ||
Line 55: | Line 64: | ||
What console does the chosen game originally come from? | What console does the chosen game originally come from? | ||
<tabber> | <tabber> | ||
|-|NES= | |-|NES= | ||
<ol> | |||
<li>Go into the folder <code>romfs/rom</code></li> | |||
<li>Press {{B|A}} to select the file that appears, then choose <code>Copy to 0:/gm9/out</code></li> | |||
<li>Press {{B|HOME}}, then go into <code>Scripts...</code> -> <code>tnes2ines</code></li> | |||
<li>Select the copied file and choose a mirroring if it asks, then let the script run</li> | |||
<li>Rename the ROM so its file extension is <code>.nes</code></li> | |||
</ol> | |||
{{success|text=Your ROM is now extracted and can be used in an emulator.}} | {{success|text=Your ROM is now extracted and can be used in an emulator.}} | ||
|-|SNES= | |-|SNES= | ||
{{info|If you are on Linux, replace <code>py -2</code> with <code>python2</code> in the commands.}} | {{info|If you are on Linux, replace <code>py -2</code> with <code>python2</code> in the commands.}} | ||
<ol> | |||
<li>Go into the folder <code>romfs</code></li> | |||
<li>Press {{B|A}} to select the file <code>data.bin</code>, then choose <code>Copy to 0:/gm9/out</code></li> | |||
<li>Press {{B|R}}+{{B|START}} to power off the console</li> | |||
<li>Take the SD card out of your 3DS and put it into your PC</li> | |||
<li>Copy <code>data.bin</code> into the vcromclaim folder</li> | |||
<li>Right-click anywhere in the empty space inside this folder and click on the option that opens Command Prompt, PowerShell, or the terminal | |||
<ul> | |||
<li>If no such option appears, open this window manually and use <code>cd</code> or similar commands to target it into the vcromclaim folder</li> | |||
</ul> | |||
</li> | |||
<li>Run the following two commands one at a time: | |||
<ul> | |||
<li><code>py -2 snesvcsplit.py data.bin</code></li> | |||
<li><code>py -2 snesrestore.py game.rom game.pcm output.smc</code></li> | |||
</ul> | |||
</li> | |||
<li>If desired, change <code>output.smc</code>'s filename to a name of your choice</li> | |||
</ol> | |||
{{success|Your ROM is now extracted and can be used in an emulator.}} | {{success|Your ROM is now extracted and can be used in an emulator.}} | ||
|-|GB/GBC= | |-|GB/GBC= | ||
<ol> | |||
<li>Go into the folder <code>romfs/rom</code></li> | |||
<li>Press {{B|A}} to select the file that appears, then choose <code>Copy to 0:/gm9/out</code></li> | |||
<li>Press {{B|B}} until you return to the drive list, then go into <code>0:/gm9/out</code></li> | |||
<li>Place the cursor on the copied ROM, press {{B|R}}+{{B|X}}, and change the file extension to match the console it came from: <code>.gb</code> for Gameboy, or <code>.gbc</code> for Gameboy Color</li> | |||
<li>If desired, also change the ROM's filename to a name of your choice</li> | |||
</ol> | |||
{{success|Your ROM is now extracted and can be used in an emulator.}} | {{success|Your ROM is now extracted and can be used in an emulator.}} | ||
|-|GBA= | |-|GBA= | ||
<ol> | |||
<li>Go into the folder <code>exefs</code></li> | |||
<li>Press {{B|A}} to select the <code>.code</code> file, then choose <code>Copy to 0:/gm9/out</code></li> | |||
<li>Press {{B|B}} until you return to the drive list, then go into <code>0:/gm9/out</code></li> | |||
<li>Press {{B|A}} on the <code>.code</code> file, choose '''GBA image options...''', then choose '''Rename file''' and press {{B|A}} to confirm</li> | |||
</ol> | |||
{{success|Your ROM is now extracted and can be used in an emulator.}} | {{success|Your ROM is now extracted and can be used in an emulator.}} | ||
|-|Game Gear= | |-|Game Gear= | ||
{{warning|These ROMs can only be fully extracted on Windows or Linux. If you do not have access to a PC that runs either of these operating systems, stop after copying the ROM into <code>gm9/out</code> and wait until you have access.}} | {{warning|These ROMs can only be fully extracted on Windows or Linux. If you do not have access to a PC that runs either of these operating systems, stop after copying the ROM into <code>gm9/out</code> and wait until you have access.}} | ||
{{Section WIP|notes= | {{Section WIP|notes=Need to figure out how to determine the seed and codec for every game. This section can't be finished without them.<br>}} | ||
<ol> | |||
<li>Go into the folder <code>romfs/system/roms</code></li> | |||
<li>Press {{B|A}} to select the file that appears, then choose <code>Copy to 0:/gm9/out</code></li> | |||
<li>Press {{B|R}}+{{B|START}} to power off the console</li> | |||
<li>Take the SD card out of your 3DS and put it into your PC</li> | |||
<li>Copy the ROM from <code>sd:/gm9/out</code> into the MArchiveBatchTool folder</li> | |||
<li>Right-click anywhere in the empty space inside this folder and click on the option that opens Command Prompt, PowerShell, or the terminal | |||
<ul> | |||
<li>If no such option appears, open this window manually and use <code>cd</code> or similar commands to move the terminal into this folder</li> | |||
</ul> | |||
</li> | |||
<li>WIP</li> | |||
</ol> | |||
</tabber> | </tabber> |