Tuesday, December 6, 2011

WWE 12 - How to Inject Textures into the Paint Tool – Part Two

In this part of the tutorial we are going to be creating textures to inject into the paint tool file. You will need the uncompressed image file you created in part one of the tutorial i.e. 001E.pac. Lets get started: 

1.     Rename 001E.pac to 001E.tga. The format of the image is a tga file but is a special format which is only viewable in optpix image studio. Open the 001E.tga file in Optpix and you should have the following:

2.     We are going to use the alpha channel from this file when creating our custom texture so click on layer – extract alpha channel. You should get file called bap_1, this is the file we are going to use in creating our alpha channel.  



3.     To quickly explain how the alpha channel works: White is Opaque, Black is completely transparent and grey is in between.  

We are going to create an alpha channel which is completely opaque, so click on each of the squares which is not white and set the value to 255,255,255 for the red green and blue. This will change the colour of the square to white. You can do this by either manually typing the values in or by using the colour chart.  

4.     You should have an bap_1 file which looks like this:



Don’t close this file, you will need it shortly.


5.     Now you need to create your custom texture that you wish to inject into the game. You can use any graphics editor to create the file but the dimensions of the file must be 128x128. Optpix supports a few file formats but I usually save my custom texture as jpg.  

6.     Open your custom texture in Optpix. Now you need to reduce the number of colours in the image. In optpix, click image – colour reduction. On the output tab, select 256 colours.  



7.     Optpix will create a second image which has been downsampled to 256 colours. Click on the title bar of the new image to select it.  

8.     Now we need add an alpha channel to this image. Click on image – compose alpha channel. This will give you a dialog box which should have bap_1 listed. Select bap_1 and click ok.  



9.     The file now needs to be saved as a tga file to be injected into the game. Click file, save as and select tga as the file type. You are now ready to inject the texture back into the T002 file.  

10.  Open the T002 file in X-Packer using the “File- open - xbox360/ps3 pach” command.

Click inject next to one of the bpe files and select the tga file you created in optpix. Something you should note, the image files sometimes lose colour information when injecting over certain files in T002 archive. You’ll have to try replacing different files to see which works. In my experience, files ranging from 0036 downwards in the T002 file works best.   

11.  The T002 file with your custom textures will now need to be injected into the ed49.pac file. So in X-Packer open the ed49.pac file again using the “File- open - xbox360/ps3 pac” command. On the T002 row, click inject file and inject your new T002 file.  

12.  You can now replace the ed49.pac file and your arc files in the game with your new modified files. 

13.   Start the game and go into paint tool mode. Create a new image and select the WWE icon to insert a WWE image into the paint tool file. Scroll until you reach your custom texture and insert it. Save the file and enjoy your new custom texture.  



14. If you want to share these custom textures with a retail xbox user, all you need to do is send them your paint tool file. They will need to rehash and resign the file.

If you want to go back to using the original WWE logo’s in the game, insert your original WWE 12 disc into the console and everything will be back to the way it was. That’s it for now, post any questions below.  

As always if you find the tutorial useful, please consider donating.

WWE 12 - How to Inject Textures into the Paint Tool – Part One

This is probably the most requested tutorial I’ve ever had to type up, so here goes. I’m going to split the tutorial up into two parts because of the length. As always if you find the tutorial useful, please consider donating.

Basically this tutorial will show you how to inject textures into the paint tool by replacing the in game WWE logo’s with your custom textures. It will only work on a JTAG machine.

You will need the following:
a)     X-Packer
b)    A hex editor
c)     Optpix Image Studio (don’t ask me where to get it).
d)    JTAG Xbox
e)     WWE 12 (obviously) 

Ok lets get started (click on the pics to zoom): 

  1. You will be working with the ed49.pac file (located in the pac/ed folder on your disc), so copy this file to you computer. 
  2. Open this file in X-Packer using the “File- open - xbox360/ps3 pac” command. In x-packer you will notice that there are three pach files contained within ed49 which are called T001, T002 and T003. These archives contain the wwe logos used in the caw and paint tool modes. 
You can replace the logo’s in any of these files but I like to replace the files in the T002 archive as it has a large number of files and you won’t need to change too many hex values later on.  

  1. Extract the T002 pach file by clicking the extract button. Save the T002 file somewhere on your computer.



  1. Open the T002 you extracted in X-Packer using the “File- open - xbox360/ps3 pach” command. You will see a lot of compressed bpe files contained within the T002 archive. These will be replaced with your textures later on, for now we want to create a version of the T002 which has completely uncompressed data.



  1. Click uncompress next to one of the files in the archive and select a path to save the files to. In my example I will use the first file which is called 001E. Remember you need to specify a path which has no spaces when uncompressing bpe files e.g “c:\textures” rather than “c:\texture mods”



  1.  After uncompressing you will have two files 001E.bpe ad 001E.pac. The 001E.pac file is the uncompressed version. Now we are going to replace each of the files in the T002 archive with the 001E.pac file. In X-Packer click inject next to one of the bpe files and select the 001E.pac file. Once this is done, repeat for all the bpe files. Don’t lose your 001E.pac file, you will need this in part two of the tutorial.


  1. Now you should have a completely uncompressed T002 file which looks like this:



  1. The new uncompressed T002 file will now need to be injected into the ed49.pac file. So in X-Packer open the ed49.pac file again using the “File- open - xbox360/ps3 pac” command. On the T002 row, click inject file and inject your new uncompressed T002 file.

  1. Because you have injected an uncompressed T002 file, the size has changed and also all the remaining files in the archive will have different offsets. These values need to be changed in the arc files in order for the game to load it without freezing. Don’t close X-Packer, you will need the values from here.
  2. Open your plist360.arc and plist360_4x3.pac files in a hex editor. Do a search for “ED49” and your hex editor should return one result. My ED49 entry was located at offset E2AC.



  1. Navigate to offset which you found above and you will a text entry for E49 with three file entries below it for T001, T002 and T003. You will need to change the size and offset values for T002 and T003 here.      
Go back to X-Packer and write down the values that are listed in the offset and size columns for T002 and T003. The arc records these values in a special way i.e.  The size value is divided by 100 and the offset value is divided by 800 (in hex). So in my example the size value for T002 is 080000/100 = 0800 and the offset value is 2D000/800 = 5A. Simlarly the size and offset values for T003 is 019500/100 = 0195 and AD000/800 = 015A



  1. Now that you have calculated your size and offset values, enter these into both you arc files so that your file looks as follows:


  1. You can now replace the ed49.pac file and your arc files in the game with your new modified files and it should load. If he game freezes, double check your values in the arc file. 
The good news is that you will only need to do the above once. Once you have created uncompressed files, you can inject textures as many times as you want.  
That’s the end of part one. In part two I will be discussing how to create, edit and inject your textures back into the game.