Community:Gates to Infinity DLC Editing Tutorial: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
==Requirements==
==Requirements==
* Basic knowledge of command line tools
* Basic knowledge of command line tools
* A .cia file of the original DLC
* A .cia file of the original DLC (named gti_dlc.cia in this tutorial)
* CTRTool (https://github.com/3DSGuy/Project_CTR/releases/tag/ctrtool-v1.2.0)
* CTRTool (https://github.com/3DSGuy/Project_CTR/releases/tag/ctrtool-v1.2.0)
* MakeROM (https://github.com/3DSGuy/Project_CTR/releases/tag/makerom-v0.18.4)
* MakeROM (https://github.com/3DSGuy/Project_CTR/releases/tag/makerom-v0.18.4)
Line 44: Line 44:


==Extracting the DLC==
==Extracting the DLC==
 
Run the following command to extract the Contents from the .cia to the current folder.
===Extracting Contents===
<blockquote>
This is only necessary if you want to make modifications to the DLC.
./ctrtool --contents=contents gti_dlc.cia
 
</blockquote>
==Modifying the DLC==
 
===Editing Dungeons===
 
===Adding Custom Music===
 
===Rebuilding Modified DLC===


==Rebuilding the DLC==
==Rebuilding the DLC==
Line 66: Line 59:
</blockquote>
</blockquote>


After making the desired changes (if any) to the Contents files and rebuilding them (if necessary), choose which Contents files you want to include in your DLC .cia file. Note that "contents.0000.345057da" must be included.
Choose which Contents files you want to include in your DLC .cia file. Note that "contents.0000.345057da" must be included. Names of the Contents files consist of four numbers/letters (the first part), followed by a dot, followed by a longer sequence of numbers and letters (the second part). When mentioning them in the MakeROM command, you need to add at the end of the filename ":0x", followed by the first part, followed by ":0x", followed by the second part. For example, "contents/contents.0000.345057da" becomes "contents/contents.0000.345057da:0x0000:0x345057da".
 
Names of the Contents files consist of four numbers/letters (the first part), followed by a dot, followed by a longer sequence of numbers and letters (the second part). When mentioning them in the MakeROM command, you need to add at the end of the filename ":0x", followed by the first part, followed by ":0x", followed by the second part. For example, "contents/contents.0000.345057da" becomes "contents/contents.0000.345057da:0x0000:0x345057da".


These are examples of what the command might look like.
These are examples of what the command might look like.
Line 81: Line 72:
./makerom -f cia -rsf gtidlc_rom.rsf -o gti_eu_unused_music_only.cia -ckeyid 0 -major 0 -minor 1 -micro 0 -DSaveSize=0 -ignoresign -dlc -i contents/contents.0000.345057da:0x0000:0x345057da -i contents/contents.003f.296877ae:0x003f:0x296877ae -i contents/contents.004c.42b26fec:0x004c:0x42b26fec -i contents/contents.0062.04434456:0x0062:0x04434456
./makerom -f cia -rsf gtidlc_rom.rsf -o gti_eu_unused_music_only.cia -ckeyid 0 -major 0 -minor 1 -micro 0 -DSaveSize=0 -ignoresign -dlc -i contents/contents.0000.345057da:0x0000:0x345057da -i contents/contents.003f.296877ae:0x003f:0x296877ae -i contents/contents.004c.42b26fec:0x004c:0x42b26fec -i contents/contents.0062.04434456:0x0062:0x04434456
</blockquote>
</blockquote>
==Modifying the DLC==
Before rebuilding, you may want to make changes to the files.
===Extracting Files From Contents===
===Editing Dungeons===
===Adding Custom Music===
===Rebuilding Modified Contents===

Revision as of 13:53, 2 June 2024

DLC Editing Tutorial for Template:GameTitle. This can be useful for making a .cia file that doesn't include unused downloadable content (or that only includes such content), or for creating custom DLCs such as custom music or dungeons.

Note that the terminal commands used on this page were used on Linux. On other operating systems, such as Windows, minor adjustments may be required.

Requirements

DLC Filenames

  • 0000 contains DLC icons and general data. Must be included.
  • contents.000a.489a712c contains the dungeon Skill Treasury.
  • contents.000b.429f4150 contains the dungeon Ultimate Wilds.
  • contents.000c.20a2030d contains the dungeon Strongest Trail.
  • contents.0001.01b526b0 contains the dungeon Ivy Park.
  • contents.0002.36813de7 contains the dungeon Scalchop Beach.
  • contents.0003.66574657 contains the dungeon Pika Land.
  • contents.0004.3983227e contains the dungeon Axe Rock.
  • contents.0005.6e4b7235 contains the dungeon Mount Tepid.
  • contents.0006.45e96935 contains the dungeon Treat Road.
  • contents.0007.425536a5 contains the dungeon Poké Forest.
  • contents.0008.033b6e4d contains the dungeon Kecleon Bazaar.
  • contents.0009.43d9281f contains the dungeon Mt. Travail.
  • 0032 contains some unknown unused data.
  • 00000033 contains the [Research required] music tracks.
  • 00000034 contains the [Research required] music tracks.
  • 00000035 contains the [Research required] music tracks.
  • 00000036 contains the [Research required] music tracks.
  • 00000037 contains the [Research required] music tracks.
  • 00000038 contains the [Research required] music tracks.
  • 00000039 contains the [Research required] music tracks.
  • 0000003a contains the [Research required] music tracks.
  • 0000003b contains the [Research required] music tracks.
  • 0000003c contains the [Research required] music tracks.
  • 0000003d contains the [Research required] music tracks.
  • 0000003e contains the [Research required] music tracks.
  • 003f contains the unused Craggy Coast music track twice.
  • 004c contains the unused Star Cave music track twice.
  • 0062 contains both versions of Vast Ice Mountain Peak.
  • contents.0065.6e4d00c7 contains DLC item graphics.

Extracting the DLC

Run the following command to extract the Contents from the .cia to the current folder.

./ctrtool --contents=contents gti_dlc.cia

Rebuilding the DLC

Before continuing, you need to create a text file with the name "gtidlc_rom.rsf" and that contains the following text:

Option: MediaFootPadding: true EnableCrypt: false SystemControlInfo: SaveDataSize: $(SaveSize)K

Choose which Contents files you want to include in your DLC .cia file. Note that "contents.0000.345057da" must be included. Names of the Contents files consist of four numbers/letters (the first part), followed by a dot, followed by a longer sequence of numbers and letters (the second part). When mentioning them in the MakeROM command, you need to add at the end of the filename ":0x", followed by the first part, followed by ":0x", followed by the second part. For example, "contents/contents.0000.345057da" becomes "contents/contents.0000.345057da:0x0000:0x345057da".

These are examples of what the command might look like.

This command makes a DLC .cia file that only contains DLC that was officially distributed.

./makerom -f cia -rsf gtidlc_rom.rsf -o gti_dlc_eu_out.cia -ckeyid 0 -major 0 -minor 1 -micro 0 -DSaveSize=0 -ignoresign -dlc -i contents/contents.0000.345057da:0x0000:0x345057da -i contents/contents.0001.01b526b0:0x0001:0x01b526b0 -i contents/contents.0002.36813de7:0x0002:0x36813de7 -i contents/contents.0003.66574657:0x0003:0x66574657 -i contents/contents.0004.3983227e:0x0004:0x3983227e -i contents/contents.0005.6e4b7235:0x0005:0x6e4b7235 -i contents/contents.0006.45e96935:0x0006:0x45e96935 -i contents/contents.0007.425536a5:0x0007:0x425536a5 -i contents/contents.0008.033b6e4d:0x0008:0x033b6e4d -i contents/contents.0009.43d9281f:0x0009:0x43d9281f -i contents/contents.000a.489a712c:0x000a:0x489a712c -i contents/contents.000b.429f4150:0x000b:0x429f4150 -i contents/contents.000c.20a2030d:0x000c:0x20a2030d -i contents/contents.0033.61e81808:0x0033:0x61e81808 -i contents/contents.0034.1f1b4be1:0x0034:0x1f1b4be1 -i contents/contents.0035.121c7a2e:0x0035:0x121c7a2e -i contents/contents.0036.7d74188e:0x0036:0x7d74188e -i contents/contents.0037.6cdf7d3d:0x0037:0x6cdf7d3d -i contents/contents.0038.45f521b4:0x0038:0x45f521b4 -i contents/contents.0039.17336725:0x0039:0x17336725 -i contents/contents.003a.604a53de:0x003a:0x604a53de -i contents/contents.003b.25db38e8:0x003b:0x25db38e8 -i contents/contents.003c.7402694d:0x003c:0x7402694d -i contents/contents.003d.4e6538f3:0x003d:0x4e6538f3 -i contents/contents.003e.41a866ed:0x003e:0x41a866ed -i contents/contents.0065.6e4d00c7:0x0065:0x6e4d00c7

This command makes a DLC .cia file that only contains the unused DLC music tracks (Craggy Coast, Star Cave, and both versions of Vast Ice Mountain Peak).

./makerom -f cia -rsf gtidlc_rom.rsf -o gti_eu_unused_music_only.cia -ckeyid 0 -major 0 -minor 1 -micro 0 -DSaveSize=0 -ignoresign -dlc -i contents/contents.0000.345057da:0x0000:0x345057da -i contents/contents.003f.296877ae:0x003f:0x296877ae -i contents/contents.004c.42b26fec:0x004c:0x42b26fec -i contents/contents.0062.04434456:0x0062:0x04434456

Modifying the DLC

Before rebuilding, you may want to make changes to the files.

Extracting Files From Contents

Editing Dungeons

Adding Custom Music

Rebuilding Modified Contents