MichalGrau
Youth Team
- Messages
- 1,091
- Reactions
- 1,143
Lua Generator for EA FC 25 - README
What is this script?
This script makes a Lua file for EA FC 25 (a football game). The Lua file helps you use Cheat Engine to change player head models in the game. It reads an Excel file with player data and creates a Lua script for you.
•
Easy to use: Click buttons to make the Lua file.
•
For Cheat Engine: The Lua file works with Cheat Engine software.
•
Free to use: No cost, just follow the steps below.
What you need
Before you start, make sure you have these:
•
A computer with Windows: This script works on Windows only.
•
PowerShell: It comes with Windows. You need version 5.1 or higher.
•
Excel file: A file with player data (example given below).
•
Internet: To download one small tool the first time you run the script.
Step 1: Setup
Follow these steps to prepare the script. Do this only once.
1.
Download the script:
o
Save the file to a folder on your computer. Example: C
Users\YourName\Desktop.
2.
Check PowerShell version:
o
Open PowerShell:
▪
Press Windows key, type powershell, press Enter.
o
Type this command and press Enter:
o
$PSVersionTable.PSVersion
o
Look for the number. It should be 5.1 or higher. If not, ask for help to update PowerShell.
3.
Set PowerShell rules:
o
In PowerShell, type this command and press Enter:
o
Get-ExecutionPolicy -Scope CurrentUser
o
If it says Restricted, change it:
o
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
o
Type Y and press Enter if asked.
4.
Prepare your Excel file:
o
Create an Excel file (example: players.xlsx).
o
The first row must have these titles:
▪
Column 1: Player ID
▪
Column 2: New ID
▪
Column 3: Player name
o
Add player data in the rows below. Example:
Player ID
New ID
Player name
20801
20801
Cristiano Ronaldo dos Santos Aveiro
20802
20802
Lionel Andrés Messi
o
Save the file in the same folder as the script.
Step 2: Run the script
Now you can use the script to make the Lua file.
1.
Open PowerShell:
o
Press Windows key, type powershell, press Enter.
2.
Go to the script folder:
o
Type this command and press Enter. Change the path to your folder:
o
cd "C
Users\YourName\Desktop"
3.
Run the script:
o
Type this command and press Enter:
o
.\EA FC 25 new faces lua generator.ps1
o
The first time, it will download a tool called ImportExcel. Wait for it to finish. You need internet for this.
4.
See the window:
o
A small window will open. It looks like this:
▪
Title: "Lua Generator - EA FC 25 Edition"
▪
Buttons: "Generate CT .lua", "Settings", "Exit"
▪
A bar at the bottom to show progress.
Step 3: Generate the Lua file
1.
Click "Generate CT .lua":
o
In the window, click the green button that says "Generate CT .lua".
2.
Choose your Excel file:
o
A box will open. Find your Excel file (example: source.xlsx).
o
Click the file, then click Open.
3.
Wait for the script:
o
The window will show:
▪
"Selecting file..." → "Loading Excel file..." → "Processing Excel file..."
o
The progress bar will move. It shows how many rows are done.
o
Example: "Processing Excel file... (1/2 rows, 1 valid)"
4.
Check the result:
o
When finished, the window will say: "Success: new_faces.lua generated (2 valid rows)".
o
A new file called new_faces.lua will be in the same folder as your Excel file.
o
Open the file to see the result. It should look like this:
o
local headmodels_map = {
o
[20801] = 20801, --- Cristiano Ronaldo dos Santos Aveiro
o
[20802] = 20802, --- Lionel Andrés Messi
o
}
o
local headvariations_map = {
o
[20801] = 0, --- Cristiano Ronaldo dos Santos Aveiro
o
[20802] = 0, --- Lionel Andrés Messi
o
}
Step 4: Change the output file name (optional)
You can change the name of the Lua file if you want.
1.
Click "Settings":
o
In the window, click the "Settings" button.
2.
Type a new name:
o
A new window will open.
o
You will see "CT Output File Name:" and a box with new_faces.lua.
o
Change the name in the box. Example: custom_players.lua.
o
The name must end with .lua. If not, you will see a warning.
3.
Save the new name:
o
Click the "Save" button.
o
The window will close.
o
Now, when you click "Generate CT .lua", the new file will use your name (example: custom_players.lua).
Step 5: Use the Lua file in Cheat Engine
The script gives instructions in the Lua file. Here is how to use it:
1.
Open Cheat Engine:
o
Start Cheat Engine on your computer.
2.
Open your game:
o
Start EA FC 25 and go to your career mode.
3.
Go to Memory View:
o
In Cheat Engine, click the "Memory View" button.
4.
Open Lua Engine:
o
Press Ctrl + L on your keyboard.
o
A small window will open.
5.
Load the Lua file:
o
In the small window, press Ctrl + O.
o
Find your Lua file (example: new_faces.lua).
o
Click the file, then click Open.
6.
Run the script:
o
Click the "Execute" button.
o
Wait until you see a message that says "Done".
Common Problems and Fixes
•
The script does not start:
o
Make sure you set the PowerShell rules (see Step 1).
o
Try running PowerShell as administrator:
▪
Right-click PowerShell, choose "Run as administrator".
▪
Then run the script again.
•
Error: "Excel file is empty or has insufficient columns":
o
Check your Excel file:
▪
It must have at least 3 columns: Player ID, New ID, Player name.
▪
It must have at least 2 rows: 1 header row + 1 data row.
•
No internet to download ImportExcel:
o
The first time you run the script, it needs internet.
o
If you have no internet, install ImportExcel manually:
▪
Open PowerShell as administrator.
▪
Type: Install-Module -Name ImportExcel -Scope CurrentUser -Force
▪
Then run the script again.
•
The window does not look good:
o
If text is hard to read, tell me. I can change the colors or font size.
Need Help?
If you have questions or problems, ask for help. Share:
•
What you see on the screen (a screenshot is best).
•
Any error messages.
•
Your Excel file (if possible).
You can reply to this message, and I will help you.
Made by: xAI Team Date: May 29, 2025
What is this script?
This script makes a Lua file for EA FC 25 (a football game). The Lua file helps you use Cheat Engine to change player head models in the game. It reads an Excel file with player data and creates a Lua script for you.
•
Easy to use: Click buttons to make the Lua file.
•
For Cheat Engine: The Lua file works with Cheat Engine software.
•
Free to use: No cost, just follow the steps below.
What you need
Before you start, make sure you have these:
•
A computer with Windows: This script works on Windows only.
•
PowerShell: It comes with Windows. You need version 5.1 or higher.
•
Excel file: A file with player data (example given below).
•
Internet: To download one small tool the first time you run the script.
Step 1: Setup
Follow these steps to prepare the script. Do this only once.
1.
Download the script:
o
Save the file to a folder on your computer. Example: C

2.
Check PowerShell version:
o
Open PowerShell:
▪
Press Windows key, type powershell, press Enter.
o
Type this command and press Enter:
o
$PSVersionTable.PSVersion
o
Look for the number. It should be 5.1 or higher. If not, ask for help to update PowerShell.
3.
Set PowerShell rules:
o
In PowerShell, type this command and press Enter:
o
Get-ExecutionPolicy -Scope CurrentUser
o
If it says Restricted, change it:
o
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
o
Type Y and press Enter if asked.
4.
Prepare your Excel file:
o
Create an Excel file (example: players.xlsx).
o
The first row must have these titles:
▪
Column 1: Player ID
▪
Column 2: New ID
▪
Column 3: Player name
o
Add player data in the rows below. Example:
Player ID
New ID
Player name
20801
20801
Cristiano Ronaldo dos Santos Aveiro
20802
20802
Lionel Andrés Messi
o
Save the file in the same folder as the script.
Step 2: Run the script
Now you can use the script to make the Lua file.
1.
Open PowerShell:
o
Press Windows key, type powershell, press Enter.
2.
Go to the script folder:
o
Type this command and press Enter. Change the path to your folder:
o
cd "C

3.
Run the script:
o
Type this command and press Enter:
o
.\EA FC 25 new faces lua generator.ps1
o
The first time, it will download a tool called ImportExcel. Wait for it to finish. You need internet for this.
4.
See the window:
o
A small window will open. It looks like this:
▪
Title: "Lua Generator - EA FC 25 Edition"
▪
Buttons: "Generate CT .lua", "Settings", "Exit"
▪
A bar at the bottom to show progress.
Step 3: Generate the Lua file
1.
Click "Generate CT .lua":
o
In the window, click the green button that says "Generate CT .lua".
2.
Choose your Excel file:
o
A box will open. Find your Excel file (example: source.xlsx).
o
Click the file, then click Open.
3.
Wait for the script:
o
The window will show:
▪
"Selecting file..." → "Loading Excel file..." → "Processing Excel file..."
o
The progress bar will move. It shows how many rows are done.
o
Example: "Processing Excel file... (1/2 rows, 1 valid)"
4.
Check the result:
o
When finished, the window will say: "Success: new_faces.lua generated (2 valid rows)".
o
A new file called new_faces.lua will be in the same folder as your Excel file.
o
Open the file to see the result. It should look like this:
o
local headmodels_map = {
o
[20801] = 20801, --- Cristiano Ronaldo dos Santos Aveiro
o
[20802] = 20802, --- Lionel Andrés Messi
o
}
o
local headvariations_map = {
o
[20801] = 0, --- Cristiano Ronaldo dos Santos Aveiro
o
[20802] = 0, --- Lionel Andrés Messi
o
}
Step 4: Change the output file name (optional)
You can change the name of the Lua file if you want.
1.
Click "Settings":
o
In the window, click the "Settings" button.
2.
Type a new name:
o
A new window will open.
o
You will see "CT Output File Name:" and a box with new_faces.lua.
o
Change the name in the box. Example: custom_players.lua.
o
The name must end with .lua. If not, you will see a warning.
3.
Save the new name:
o
Click the "Save" button.
o
The window will close.
o
Now, when you click "Generate CT .lua", the new file will use your name (example: custom_players.lua).
Step 5: Use the Lua file in Cheat Engine
The script gives instructions in the Lua file. Here is how to use it:
1.
Open Cheat Engine:
o
Start Cheat Engine on your computer.
2.
Open your game:
o
Start EA FC 25 and go to your career mode.
3.
Go to Memory View:
o
In Cheat Engine, click the "Memory View" button.
4.
Open Lua Engine:
o
Press Ctrl + L on your keyboard.
o
A small window will open.
5.
Load the Lua file:
o
In the small window, press Ctrl + O.
o
Find your Lua file (example: new_faces.lua).
o
Click the file, then click Open.
6.
Run the script:
o
Click the "Execute" button.
o
Wait until you see a message that says "Done".
Common Problems and Fixes
•
The script does not start:
o
Make sure you set the PowerShell rules (see Step 1).
o
Try running PowerShell as administrator:
▪
Right-click PowerShell, choose "Run as administrator".
▪
Then run the script again.
•
Error: "Excel file is empty or has insufficient columns":
o
Check your Excel file:
▪
It must have at least 3 columns: Player ID, New ID, Player name.
▪
It must have at least 2 rows: 1 header row + 1 data row.
•
No internet to download ImportExcel:
o
The first time you run the script, it needs internet.
o
If you have no internet, install ImportExcel manually:
▪
Open PowerShell as administrator.
▪
Type: Install-Module -Name ImportExcel -Scope CurrentUser -Force
▪
Then run the script again.
•
The window does not look good:
o
If text is hard to read, tell me. I can change the colors or font size.
Need Help?
If you have questions or problems, ask for help. Share:
•
What you see on the screen (a screenshot is best).
•
Any error messages.
•
Your Excel file (if possible).
You can reply to this message, and I will help you.
Made by: xAI Team Date: May 29, 2025