O'Reilly logo

Halo 2 Hacks by Stephen Cawood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hack #72. Alter the Textures in a Level

Change the look of any map by creating your own texture files.

In video games, everything from the players to the sky is given a texture. Hacking the textures of a level allows you to make the level appear as you wish.

In this example, you will inject the O'Reilly tarsier into the Foundation map (see Figure 9-1). You can find the tarsier on the O'Reilly home page (http://www.oreilly.com).

To work with textures in ADI [Hack #50] , make sure that you copy shared.map, single_player_shared.map, and mainmenu.map into the ADI directory. In addition, to work with the .DDS format, you may have to add a plug-in for your graphics program (e.g., for Adobe Photoshop).

The original tarsier image

Figure 9-1. The original tarsier image

The first step is to extract a copy of the texture that you would like to alter. Technically, you don't need to do this step, but you will for this example—besides, it gives you a backup copy of the original file. To extract the texture, open up Ch2r [Hack #51] and navigate to the bitmap that you would like to alter. In this example, you will be altering the file scenarios\bitmaps\multi\marathon\foundation\foundation_doors.bitm (see Figure 9-2).

Locating the Foundation doors

Figure 9-2. Locating the Foundation doors

Once you double-click the texture, it will open in the metadata editor. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required