For the best lawn care in cedar park, please visit our sponsor at lawn service cedar park They are a local lawn care and landscaping company that provide services in such as lawn care, lawn mowing, weeding, and landscape maintenance in Cedar Park, Austin, Round Rock, and Leander area. They are located at:

Lawn Care Service of Cedar Park 100 E Whitestone Blvd Ste 148, #166 Cedar Park, TX 78613 (512) 595-0884

Tutorial on HOW to edit PES4 in-game music/songs/tunes!

elgen

Registered User
-- TUTORIAL ON HOW TO EDIT PES4 MUSIC --

Written by: elgen / Johan

(Last update: 02nd of November)

Programs you need (some can be downloaded in my HTTP site, marked with *):

- WinRAR (visit this topic for info + download)
- DVD Decrypter *
- Apache2 *
- AFSExplorer *
- ADXencd * (Note: It is suggested that you save this program to a simple location, i.e: C:\PES4-patch so it's easy for you to find the files! You will later on see why I suggested to make it simple...)
- Nero Wave Editor (go to http://www.nero.com or search in Google)

First, use "DVD Decrypter" to make an .iso of your PES4 (visit this topic for help), then apply jonboyo's patch to your newly "DVD Decrypter" created .iso file.

Now, let's get onto the editing...

Note: Just so you know; I use norwegian Windows XP, so don't mind the text that's in norwegian, obviously!

I will use BG_DEMO_HLT_02.adx (one of the 3 tunes that's played during game highlights) as an editing example in this tutorial...

1 - Extracting the 0_SOUND.AFS file from .iso file:

Open "Apache2", go to 'File', choose 'Open File' and find your newly patched pes4.iso file and open it (as shown here). Once opened, right-click on 0_SOUND.AFS, choose Extract (as shown here) and choose a suitable destination on your disk to export it to (i.e C:\PES4-patch). Wait a while and the extraction will be done.

Note: E_SOUND (E = english, S = spanish and so on) are commentary sounds! Just focus on 0_SOUND.AFS for now!

2 - Open 0_SOUND.AFS with AFSExplorer:

Open "AFSExplorer", go to 'File', choose 'Import AFS file...', find the newly extracted 0_SOUND.AFS file and import it. Wait a while and it will be imported to AFSExplorer. Once imported, it looks like this. I've marked BG_DEMO_HLT_02.adx since that is the file I will edit. Leave AFSExplorer open.

Note: The 'Length' shows how big (in bytes) the current .adx file is, while 'Max. Size' shows how big the .adx file can be. Now, since I'm going to edit BG_DEMO_HLT_02.adx, I must make the edited song/.adx file lower/shorter than 1808384 bytes (1808384... that's a tune about 1:30+- long), otherwise the game will crash if you cross that limit! (or something!)

3 - Editing your song/tune with "Nero Wave Editor":

Open "Nero Wave Editor", go to 'File', choose 'Open...', find your tune/song to edit (I've chosen to edit the song 'Laze - Steppin' Out'), load it so it looks something like this.

Find and then mark a suitable section that you want to make a .adx file of. Go to 'Edit', choose 'Crop' and you will see that the section you marked is now available rather than the whole song (note: if you don't need to crop any parts, jump over this and go on to the next step! Edit the song some more by using the 'Edit' -> 'Cut' method to make the song tight! Heh...)

Once you're done with the crop/cutting, go to 'Edit', choose 'Convert Sample Format' (as shown here) and make the preferences look like in this window (note: you must type in 24000 Hz, uncheck the 'Stereo Recording' so the song goes to mono mode, which allows a longer piece of music to be stored in the same amount of space!). Then hit OK.

Now, go to 'File', choose 'Save As...', save (note: it's wise to give the .wav file the same name as the original .adx file. I.e: I am editing the BG_DEMO_HLT_02 file, so I save the .wav file as BG_DEMO_HLT_02) the .wav into the same folder where the "ADXencd.exe" program is located. Keep in mind that you should save it to a location where it's easy for you to find the file, i.e: save the file to, as suggested before, C:\PES4-patch. That way it'll be easy for you find the file + it's not much to type either! ;)

4 - Using "cmd" to convert .wav to .adx:

Hit your Windows key on your keyboard or click on your START button, choose 'Run...', type in cmd (if cmd doesn't work, try typing command, which is the same) and hit ENTER button. A MS-DOS look-a-like window should now pop up. Now, type in the folder location where your edited .wav file + ADXencd program is (as I've done here, don't mind the blue text, it's just a description!). As you see, I must type: cd c:\applications\adxencd\music editing to get to my folder. Yes, you must always type in cd before the path to your folder (it's the key/code to enter any folders).

Note: To check if you are in the correct folder, type dir once in cmd window and it will show you what files are in that folder.

Once you've typed in the correct location to the folder where you have your .wav file + adxencd program, it's time to convert the .wav to .adx. Type in: adxencd BG_DEMO_HLT_02.wav and you should see about the same text as shown in this picture. And there you can see that the inputs you made in the 'Wave Editor' earlier, shows up here:

Input sound data: BG_DEMO_HLT_02.wav
ADX Compressed data file: BG_DEMO_HLT_02.adx
Sampling frequency: 24000 Hz
No. Channels: 1 (which means Mono. Stereo = 2 channels)
Input audio sample: 962880 smpl = 40.0 sec <24000 Hz> (I can tell by the size of the file that my music could be longer than only 40.0 seconds, but it'll just have to stay this way for now!)
ADX output sample: 962880 smpl<Blk:962880 smpl> = 40.0 sec <24000 Hz> (Shows the output for the .adx file)

There you go. The .adx file is now created, BUT... You would also like to add loop to your track, in order to make it work properly in-game...

5 - Adding loop to your .adx file:

Simply type this:
adxencd BG_DEMO_HLT_02.wav -lps0 -lpe"962880" (as shown here) and it should give you about the text shown as shown here. Note: The XX's in -lpsXX is where you type in the loop starting position (0 = loop starts from beginning of the edited song) while the XX's in -lpe"XX" is where you type in the loop ending position (in this case; 962880 = max/ending -lpe""). Note that the number 962880 is the same as the ADX output sample!

A bit complicated this 'cmd' stuff, yes, but it's not hard to learn it, really...

Now you have created yourself a new BG_DEMO_HLT_02.adx file WITH loop in it! You can find the .adx file in the folder where you placed the .wav file (as shown here). Note: Even if the ADX output sample in 'cmd' shows 962880, it's a bit smaller once you look at the .adx file that's in the folder where the .wav is. Also, remember the 'Max. Size' for BG_DEMO_HLT_02.adx? It was something like 1800000+, but my file is only 962880 big, so it'll work just fine, as it's shorter/smaller than 1800000 bytes. And yes, you can exit/close 'cmd' now... :)

6 - Replace the old BG_DEMO_HLT_02.adx with the new one:

You'd save some time if you left AFSExplorer open earlier, like I told you to do... If you closed it, repeat step 2. If you left it open, go to "AFSExplorer", right-click on BG_DEMO_HLT_02.adx, choose 'Import file' (as shown here), find the new BG_DEMO_HLT_02.adx file and open/import it (as shown here). Wait a while and the new BG_DEMO_HLT_02.adx will be imported/replaced. Note: As shown here, there's no need to worry if your AFSExplorer screen get's "trashed" and/or if your computer lags. Just keep on waiting...

Bang! You've just edited a PES4 song! Now, let's finish the work... (unless you've got some more songs to edit, of course...)

7 - Import 0_SOUND.AFS back to the patched pes4.iso file:

Open the patched pes4.iso in "Apache2" again (explained in step 1), right-click on 0_SOUND.AFS, choose 'Update Selected File', find the 0_SOUND.AFS file with new .adx file and update it. Wait while the new 0_SOUND.AFS is replaced with the old one... As shown here, the screen might "trash" again, but nevermind that. Just wait and it'll be done.

Yay! You're almost done... -_-

8 - Burn the new, edited & patched pes4.iso file:

For further help on the burning process, it is suggested that you view jag87's guide by clicking here. Note: You can also burn with DVD Decrypter...

There you go, you're done!

Go on... have fun... feel it... enjoy it... PLAY IT! :cool:

People other than me (elgen) behind this small tutorial:
- Dazfeeder (for beginner help)
- Zygalski (additional assistance)
- jag87 (for burning tutorial)

Pardon me if I forgot anyone...
 

elgen

Registered User
Thankies, GFK.

I am trying to figure out on how to work out the chants, but so far it's no success, but once I manage to work it out, I will add it to this tutorial, of course.

Perhaps this thread could be sticked? Or perhaps not, since this part of the forums aren't that active so this topic won't "vanish" among the other topics.

I am also working on a picture editing tutorial. The one's @ evo-web aren't that "accurate" and it's easy for beginners to not understand how to do the editing.

Again, thank you for the compliment! :cool:
 

elgen

Registered User
Oh, to have this clear for everyone... I've gathered a list what .adx file is the song in-game. Here's the list (note: tell me the missing one's and if I am incorrect):

BG_DEMO_ENT = Entrance to the field music (when players enter the match field and are introduced to the audience etc)

BG_DEMO_OVA_01 & 02 = Victory data tunes (found in Museum section).

BG_DEMO_HLT_01 -> 03 = Match highlights tunes.

BG_MENU_01 = Main menu tune.

BG_MENU_02 = Master League menu tune.

BG_MENU_03 = Cup + League menu tune.

BG_MENU_04 = Edit mode menu tune.

BG_MENU_05 = Museum menu tune.

BG_MENU_06 = "Challenge" + "Situation" + "Original Dribble Challenge" Training + "Controls" menu tune.

BG_MENU_07 = "Beginner Training" menu tune.

BG_MENU_08 = Formation settings / Start the match menu tune.

BG_MENU_09 = Not sure.

BG_MENU_10 = "Replay Payback" tune (found in Museum section).

BG_MENU_TR_01 = Not sure.

BG_MENU_TR_02 = Not 100% sure about ALL the place where this tune is played, but I know for sure that this tune is played when doing the corner kick trainings in ML pre-season period.

BG_MENU_TR_03 = Same here, not 100% sure about ALL the places where this tune is played, but I know for sure that this tune is played when doing the dribbling training in ML pre-season period.

BG_MENU_TR_04 = Challenge (ball poss, attacking, freekick etc) Training tune. Note: In ML, once doing defence, freekick, attack and shoot training in pre-season mode, this tune will be played then, obviously.

BG_STA_001 -> 006 = Played while viewing half-time/full-time match stats menu.
 

elgen

Registered User
Actually, I think that "BG_MENU_009" = Tune that is played in formation settings menu during division cups...
 

Lorenzinho

Registered User
Great thread, mate! When i get my Swap Magic discs i'll try it out!

I'm a complete dumbass when it comes to this kind of a thing...

I'll have to do everything really slowly to make sure i do everything in order...
 

elgen

Registered User
Lorenzinho, well... it's all about trying. Just try and you'll manage to edit. It's not hard. Good luck, mate. :)
 

Marrison

Born to be a Dancer
Isn't it just! I used this ages ago, and it is perfect, step-by-step describes every little detail.

Cheers elgen, if your still around.
 

thisgameisevil

Registered User
Is that you in the crowd?

marrison89 said:
Isn't it just! I used this ages ago, and it is perfect, step-by-step describes every little detail.

Cheers elgen, if your still around.


Hi ,

Is the man with his mouth jabbering in the crowd you? lolol
 

thisgameisevil

Registered User
Sound File Size

PS2 PRO EVO 4 DVD


Ive been following that excellent guide to replacing sound in the game.

Is it correct that a replaced commentary file can be no larger than the maximum bytes value described by AFS Explorer.

For example-:

Using E_SOUND.AFS

File E_VP_29_01_062.adx

Length = 25240
Max Size = 26624 <===== Can i use bigger?

Many thanks people.
 

Marrison

Born to be a Dancer
thisgameisevil said:
Hi ,

Is the man with his mouth jabbering in the crowd you? lolol

Huh?

thisgameisevil said:
PS2 PRO EVO 4 DVD


Ive been following that excellent guide to replacing sound in the game.

Is it correct that a replaced commentary file can be no larger than the maximum bytes value described by AFS Explorer.

For example-:

Using E_SOUND.AFS

File E_VP_29_01_062.adx

Length = 25240
Max Size = 26624 <===== Can i use bigger?

Many thanks people.

C'mon, this is basic stuff. You have to modify the reserve space.
 

thisgameisevil

Registered User
Cheers...

marrison89 said:
Huh?



C'mon, this is basic stuff. You have to modify the reserve space.

Its not basic if youve never done it before, and the logo at the bottom of your posts has a man with a moving mouth.
 

Marrison

Born to be a Dancer
thisgameisevil said:
Its not basic if youve never done it before, and the logo at the bottom of your posts has a man with a moving mouth.

Apologies. If you get stuck at any point, Ajay's tutorials for changing music is quite good.
 

thisgameisevil

Registered User
No problems...

Yes ive checked ajays site, very good info - Ive modified the reserve space, and succesfully imported my new .adx file.

The thing is when i try and update the original pes4 ISO with the new E_SOUND.AFS using apache2, it does not like the new size, it says file has to be same size as the original E_SOUND.AFS

Oh well ill keep going.
 
Top