Skip to content
Igor Seabra edited this page Aug 7, 2020 · 4 revisions

This page will explain how to edit textures in Sonic Heroes or Shadow the Hedgehog, as well as importing them for a custom level.

Magic.TXD

Download and install Magic.TXD, as we'll be using that textures.

Textures are contained in TXD archives, each TXD has all textures for a level. Editing textures in the tool is quite straightforward.

Heroes

The TXD files for level textures are located in dvdroot\textures. When creating a new stage mod, you'll want to copy the TXD file for the level you are replacing and only add your new textures to the file without replacing the existing ones. Copy the original TXD from your game to your mod's Files\dvdroot\textures folder and open it in Magic.TXD.

Use Edit->Add or the Insert shortcut key or just drag your new textures into the list to add them to the file. I recommend setting each texture to have mipmaps and DXT1 compression, but you can choose any format you see fit, except for textures with alpha (you can manipulate those settings in Magic.TXD by pressing M with the texture selected; just take a look the format the original textures use and try to mimic it).

Save and make sure the version of the TXD is correct (it should be Sonic Heroes PC, or GameCube or PlayStation 2 if you're editing those versions). Don't delete the original textures from the file unless you're sure of what you're doing (some levels will crash without certain textures). Remember this file contains textures for both level and object models. If your model uses the same textures from the game that are already in the file (such as shaders) you obviously don't need to add them a second time.

If you've edited the TXD file with Heroes Power Plant open, you must open the texture file again. You can do this either by reloading the stage ONE file or using Resources->Add TXD and selecting your level's TXD.

Shadow

TXD files in Shadow are contained inside ONE archives. You need to use HeroesONE-Reloaded to open the ONE archives. Do everything texture-related in Shadow with Heroes Power Plant closed.

Stage textures are contained in stgLLLL_texCM.one. Open this file with HeroesONE-Reloaded, then extract the STGLLLL_TEXCM.TXD file inside of it. Open this file in Magic.TXD and edit it (the same process for Heroes applies). Once you've done editing, save, close Magic.TXD, reimport the TXD file back using HeroesONE-Reloaded and save. After this, the textures should work both ingame and in HPP.

Textures for layout objects are contained in stgLLLL_gdt.one. You'll find a large list of files inside this when opening with HeroesONE-Reloaded. Find STG_GDT.TXD, that's the one you're looking for. Extracting, editing, reimporting and saving is the same process for the stage textures.