• This is a reminder of 3 IMPORTANT RULES:

    1- External self-promotion websites or apps are NOT allowed here, like Discord/Twitter/Patreon/etc.

    2- Do NOT post in other languages. English-only.

    3- Crack/Warez/Piracy talk is NOT allowed.

    Breaking any of the above rules will result in your messages being deleted and you will be banned upon repetition.

    Please, stop by this thread SoccerGaming Forum Rules And Guidelines and make sure you read and understand our policies.

    Thank you!

Converting PES and eFootball heads to FIFA 07/FIFA 10 format

Dmitri

Reserves
In this tutorial I'll explain how to convert PES 2021 head models to FIFA 07 and FIFA 10. Since model format in FIFA 07 is same with FIFA 08 format, this tutorial will also work for FIFA 08.
For converting any 3D model to FIFA 07 format, check this tutorial: http://www.soccergaming.com/index.p...fifa-07-format-completely-manual-way.6468038/

Requirements:
Blender (latest version is recommended) - https://www.blender.org/download/
otools latest version (0.177 or higher) - https://bitbucket.org/fifam/otools/downloads/
PES to FIFA/FIFAM converter v.1.1 - https://www.dropbox.com/s/6if51iob6swacjp/PES_to_FIFA_FIFAM_v_1_1.zip?dl=1
Asset Loader - for installing models and textures into the game - FIFA 07 | FIFA 08 | FIFA 10

Limitations:
In this tutorial we create an HD model and textures (the polycount is much higher than original game models, and textures are in better quality). It's not possible to use such models and textures in original game. We use Asset Loader to load them, because it gives an ability to load HD models and textures.

Prepare your workspace
Install Blender if it's not installed yet. After Blender is installed, open it. You will see the default scene with cube, camera and light:
0.PNG
Press "A", this will select all objects in the scene:
01.PNG
Now press "Delete", this will delete selected objects. The scene will be empty then:
02.PNG
Now go to File>Defaults>Save Startup File, Save Startup File
Untitled-1.png
Install Blender add-on ("PES_Face_Hair_Modifier_Modified_Blender_2.80.zip") from "PES_to_FIFA_FIFAM/Blender scripts":
In Blender, go to Edit>Preferences..., Add-ons, Install..., select the .zip file. Enable the add-on after it's installed.
Untitled-2.png 1676715741440.png 1676714970372.png
If Add-On was correctly installed, you will see it in the Scene Properties tab:
1676715350586.png
Note that add-on works only with Blender 2.80+

Unpack PES to FIFA/FIFAM converter somewhere.
Open "PES_to_FIFA_FIFAM/Blender scripts/PesFacesToFbx Batch (Blender 3.2).py" in Notepad and change the path here with path to your "Pes_In" folder (note: use forward slashes in the path):
1676718851408.png
Unpack OTools folder somewhere.
Open "PES_to_FIFA_FIFAM/Bat_FIFA_07.bat" (For FIFA 10: "PES_to_FIFA_FIFAM/Bat_FIFA_10.bat") in Notepad and change the path here with path to your OTools folder (it's a folder where otools.exe is placed):
Update: OTools 0.177 is now required
1676718966271.png
Install Asset Loader for your FIFA 07, FIFA 08 or FIFA 10.
 
Last edited:

Dmitri

Reserves
Conversion process

Step 1. Put player folders which you want to convert to "PES_to_FIFA_FIFAM/Pes_In" folder.

The structure of folders will look like this:
1676717115041.png 1676717561182.png
Names of folders are not important, I use PES ID - Name for better navigation.

In each folder you need to create a file "fifaid.txt" with player's FIFA id inside it.
1676717617608.png
If player is not present in FIFA database, you will also need to create:
- "skin.txt" file with skin tone ID (1 to 10), you can check skin tone IDs in "PES_to_FIFA_FIFAM/data/fifa07" (for FIFA 10 - "PES_to_FIFA_FIFAM/data/fifa10") folder (files 1.tga - 10.tga)
- "name.txt" file with player name
- "eyes.png" file for player eyes, can be taken from "PES_to_FIFA_FIFAM/data/fifa07/eyes" and renamed.
Example of folder for player who's not in FIFA database (300001 is a fake ID):
1676717855060.png

Step 2. Export .fpk to .fbx in Blender.
You can do this:
2.1 With Blender batch script
In Blender, open Scripting tab, Text>Open...
1676719124626.png
select "PES_to_FIFA_FIFAM/Blender scripts/PesFacesToFbx Batch (Blender 3.2).py"
1676719170646.png
Run script:
1676719220584.png
Blender will freeze for some seconds (depends on how many faces must be exported), you will understand that script is finished after Blender will unfreeze.
When script is finished, you will see .fbx files in player folders:
1676719349079.png
Note that script works only with Blender 3.2+
 
Last edited:

Dmitri

Reserves
2.2 Manually exporting each face
If your Blender version is lower than 3.2 and you can't use the batch script, you need to export each face manually. For each face, you need to do the following:
First, press "Start New Scene" button.
Second, press "Extract Face.Fpk" button.
1676719602593.png
Select .fpk file (it's placed in #Win subfolder of player's folder), check all checkboxes on the right and press Extract button.
1676719715258.png
You will see the face in 3D-View:
1676719784019.png
Now, in 3D-View, press "A", this will select all objects in the scene.
1676719837196.png
Now press "Ctrl+A" and select "All Transforms" in the list:
1676719915166.png
Now go to File>Export>FBX (.fbx)
1676719948540.png
Export it as "face.fbx" to player's folder:
1676720057248.png
The file is exported.
 
Last edited:

Dmitri

Reserves
Step 3. Launch the converter
For FIFA 07/FIFA 08 - "PES_to_FIFA_FIFAM/Bat_FIFA_07.bat"
For FIFA 10 - "PES_to_FIFA_FIFAM/Bat_FIFA_10.bat"

1676720284903.png

Step 4. Install files into the game
Copy all .O and .FSH (for FIFA 10 - also .DDS) files from all subfolders in "PES_to_FIFA_FIFAM/Pes_Out/fifa07" (for FIFA 10 - "PES_to_FIFA_FIFAM/Pes_Out/fifa10") to "data/assets" folder in your game.
FIFA 07:

1676720333026.png
FIFA 10:
1676728091895.png
 
Last edited:

Dmitri

Reserves
Converting eFootball 2023 faces
The process is almost the same.
In eFootball 2023 we have possibility to export faces to glTF or PSK format.
It's recommended to export to glTF/TGA and with LODs.
1679249962167.png

If you have textures in DDS, convert them to TGA (you can do this with Compressonator CLI and a special script "Compressonator DDS to TGA.bat" in "Blender scripts" folder - the script converts all file in current folder and in all subfolders).
If you have the model in PSK format, it must be re-exported to FBX (you can do this in batch with "eFootballPskToFbx Batch.py" script for Blender in "Blender scripts" folder).

Some examples on how player folder may look (MI_* files are not important):
1679249935771.png 1679250048567.png 1679250093542.png
 
Last edited:

EfekanP

Club Supporter
@Dmitri this is a game changer methodology. Thanks for your effort. I have already converted more than 100 faces.

I did a minor change in your Blender script. I added a try-except block to bypass if a face is problematic. Because I am trying to convert all the players of a team and if there is an error Blender just stops at that point.



I have found two issues:

1. Icelandic and Romanian characters:
If the name of a player has Icelandic or Romanian character, the BAT file gives an error like this:

I am using my Windows in Turkish, so basic translation: The filename, directory name, or volume label syntax is incorrect.

The player: https://sofifa.com/player/270578
Another example: https://sofifa.com/player/205943

I guess this is happening because one part of your methodology not allowing non-Unicode characters. If you want I can encode all the lines of your CSV file to UTF-8.

2- Skin tone not set.
I will provide more information about this. I could not find my notes. But as far as I remember if I want to convert some Brazilian players' faces (last appearance FIFA 14 or FIFA 16) gives me a skin tone ID is not set error.

As I mentioned I will search and give you an example of it.

Again, thanks for your work and inspiration.
 

Dmitri

Reserves
I guess this is happening because one part of your methodology not allowing non-Unicode characters. If you want I can encode all the lines of your CSV file to UTF-8.
OTools doesn't support unicode. It might be a goal for future OTools versions.
2- Skin tone not set.
I will provide more information about this. I could not find my notes. But as far as I remember if I want to convert some Brazilian players' faces (last appearance FIFA 14 or FIFA 16) gives me a skin tone ID is not set error.
Maybe these players were not present in default database. For such players you will need to crate a "skin.txt" file.
 

Dmitri

Reserves
@Dmitri can you check those two faces?


Your program does not give any error to me but the fsh files do not exist.

View attachment 119797

View attachment 119798
For me it worked with new tool version. So maybe just wait for it.
Also files for Fofana are too big. Normally your models should not be bigger than 1 MB.
I would recommend to load such PES faces in Blender and check why are they so big.

For Fofana the creator of this face used a new hair model which Konami made for Xavi Simons in recent eFootball 2023 update. It has 70k triangles.
1678962120071.png
 

Vndrew

Youth Team
@Dmitri if it works with pes 2021 faces i guess it will also work with pes 2018/2019/2020 faces since they all have same format, right?
btw does this also work for the UEFA Euro 2008 pc game?
 

Vndrew

Youth Team
@Dmitri
needs to be exactly PES 2021 or Efootball 2023 faces?
i tried to convert Cristian Chivu from PES 2020 dlc 4.0 and it didnt work
after the .bat conversion i had only .o files in Pes_out folder no .fsh files
and in game there was no new face

EDIT: i read the problem above, maybe his hair has too many triangles...
EDIT2: also tried with Ronaldinho, same result...basically everyone which has long hair doesnt work? or i did something wrong?
EDIT3: i tried with Casillas, same result :(
EDIT4: tried Casillas from PES 2021, same result
 
Last edited:

Dmitri

Reserves
needs to be exactly PES 2021 or Efootball 2023 faces?
i tried to convert Cristian Chivu from PES 2020 dlc 4.0 and it didnt work
after the .bat conversion i had only .o files in Pes_out folder no .fsh files
and in game there was no new face

EDIT: i read the problem above, maybe his hair has too many triangles...
EDIT2: also tried with Ronaldinho, same result...basically everyone which has long hair doesnt work? or i did something wrong?
EDIT3: i tried with Casillas, same result :(
EDIT4: tried Casillas from PES 2021, same result
It can be a problem with fsh writing. Open OTools GUI and try to create fsh file. Check if it works.
 

Vndrew

Youth Team
It can be a problem with fsh writing. Open OTools GUI and try to create fsh file. Check if it works.
Untitled.png
it creates a .fsh file with the name of the folder, but i think its not good/enough, right?
this happens when i try to convert to original fifa 07 format
@EfekanP said this works for HD body model but not original fifa 07 format
 


Top