[Tutorial] PES 2021 faces to FIFA Manager 22 (23)

Kits Maillots, Détourages Photos...
Dmitry
Gonfleur de Ballons
Gonfleur de Ballons
Messages : 126
Enregistré le : 19 juil. 2018 07:08

[Tutorial] PES 2021 faces to FIFA Manager 22 (23)

Message non lu par Dmitry »

In this tutorial I'll explain how to convert PES 2021 faces to FIFA Manager 22 (also 23 and so on).

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 - https://www.dropbox.com/s/6if51iob6swac ... 1.zip?dl=1

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:
Image
Press "A", this will select all objects in the scene:
Image
Now press "Delete", this will delete selected objects. The scene will be empty then:
Image
Now go to File>Defaults>Save Startup File, Save Startup File
Image
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.
Image Image Image
If Add-On was correctly installed, you will see it in the Scene Properties tab:
Image
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):
Image
Unpack OTools folder somewhere.
Open "PES_to_FIFA_FIFAM/Bat_FIFA_Manager.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
Image

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:
Image Image
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.
Image
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/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/fifa10/eyes" and renamed.
Example of folder for player who's not in FIFA database (300001 is a fake ID):
Image

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...
Image
select "PES_to_FIFA_FIFAM/Blender scripts/PesFacesToFbx Batch (Blender 3.2).py"
Image
Run script:
Image
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:
Image
Note that script works only with Blender 3.2+
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.
Image
Select .fpk file (it's placed in #Win subfolder of player's folder), check all checkboxes on the right and press Extract button.
Image
You will see the face in 3D-View:
Image
Now, in 3D-View, press "A", this will select all objects in the scene.
Image
Now press "Ctrl+A" and select "All Transforms" in the list:
Image
Now go to File>Export>FBX (.fbx)
Image
Export it as "face.fbx" to player's folder:
Image
The file is exported.

Step 3. Launch the converter
Run "PES_to_FIFA_FIFAM/Bat_FIFA_Manager.bat"
Image

Step 4. Install files into the game
Copy all .O, .FSH and .DDS files from all subfolders in "PES_to_FIFA_FIFAM/Pes_Out/fifam" to "data/assets" folder in your game.
Image
tip: if you have multiple folders, you can search for all files in subfolders with "*.*", then sort by type, select all .o, .fsh, .dds and copy them.
In "PES_to_FIFA_FIFAM/Pes_Out/fifam" you will also have "FaceIDs.txt" file. It contains face IDs which were converted. The first line is a number of converted faces (16 here)
Image
You need to merge this file with game's FaceIDs file (placed here: "%GAME FOLDER%/fmdata/eng/FaceIDs.txt")
Note that this file is used for all languages (so no need to duplicate it to other language folders).
Update the number of faces on the first line (4962 + 16 = 4978)
And put your list at the end of original list.
Image Image
Now you can assign faces in the Editor.
Image
Modifié en dernier par Dmitry le 19 mars 2023 19:39, modifié 2 fois.
Avatar du membre
JJacq
Administrateur
Administrateur
Messages : 17754
Enregistré le : 16 févr. 2011 14:36
Localisation : Alès - Nîmes
Contact :

Re: [Tutorial] PES 2021 faces to FIFA Manager 22 (23)

Message non lu par JJacq »

Thanks for the tutorial. :ok:

It's easier than what I used to do with a photo... :chaud: :mrgreen:

However, I have a Virus alert when installing the Addon in Blender :

2023-02-20 19_26_37-AlertWindow.jpg
2023-02-20 19_26_37-AlertWindow.jpg (28.9 Kio) Vu 1829 fois

I didn't go any further, waiting to see what you think. :gene:
Important ! Il n'est pas fait de support en MP, veuillez poser votre question en Forum. Merci.
Important ! There is no support in MP, please submit your question in Forum. Thank you.
Dmitry
Gonfleur de Ballons
Gonfleur de Ballons
Messages : 126
Enregistré le : 19 juil. 2018 07:08

Re: [Tutorial] PES 2021 faces to FIFA Manager 22 (23)

Message non lu par Dmitry »

Windows Defender didn't find anything.
Avatar du membre
JJacq
Administrateur
Administrateur
Messages : 17754
Enregistré le : 16 févr. 2011 14:36
Localisation : Alès - Nîmes
Contact :

Re: [Tutorial] PES 2021 faces to FIFA Manager 22 (23)

Message non lu par JJacq »

Yes, but Windows Defender is not known for being the best and most proactive antivirus. :clin1:
Important ! Il n'est pas fait de support en MP, veuillez poser votre question en Forum. Merci.
Important ! There is no support in MP, please submit your question in Forum. Thank you.
Avatar du membre
JJacq
Administrateur
Administrateur
Messages : 17754
Enregistré le : 16 févr. 2011 14:36
Localisation : Alès - Nîmes
Contact :

Re: [Tutorial] PES 2021 faces to FIFA Manager 22 (23)

Message non lu par JJacq »

Hello Dmitry

I confirm that the Ftextools program is infected by a virus.

Here is the healthy version :
https://lfp-manager.fr/patchs/outils/Ft ... v0.4.0.zip

You should integrate it in your package, to avoid bad surprises to those who will download. :clin1:
Important ! Il n'est pas fait de support en MP, veuillez poser votre question en Forum. Merci.
Important ! There is no support in MP, please submit your question in Forum. Thank you.
Dmitry
Gonfleur de Ballons
Gonfleur de Ballons
Messages : 126
Enregistré le : 19 juil. 2018 07:08

Re: [Tutorial] PES 2021 faces to FIFA Manager 22 (23)

Message non lu par Dmitry »

JJacq a écrit : 02 mars 2023 18:39 Hello Dmitry

I confirm that the Ftextools program is infected by a virus.

Here is the healthy version :
https://lfp-manager.fr/patchs/outils/Ft ... v0.4.0.zip

You should integrate it in your package, to avoid bad surprises to those who will download. :clin1:
Did you test it and did it work with this version?
ghassn28
Brouteur Pelouse
Brouteur Pelouse
Messages : 1
Enregistré le : 01 oct. 2023 12:31

Re: [Tutorial] PES 2021 faces to FIFA Manager 22 (23)

Message non lu par ghassn28 »

how can i convert it to fifa 23
Répondre

Retourner vers « Tutoriels Graphismes »