[WIP / Sider Module] Fakecid PES 2021 AI Overhaul v0.11.0 - Multithreading, 1v1 Take-ons, Tactical Fouls (Testing with Holland's TFSE)

Kailychocolate

Non-League
Joined
27 September 2026
Hi everyone, i am FakeCid

I've just released version 0.11.0, based on Holland's True Football Simulation Engine. I know the previous version (v0.9.1) was rather quiet and didn't receive much attention, but I've continued working on the source code ever since.

To be honest, I went through several internal iterations (v0.9.2, v0.10.1, v0.10.2, v0.10.3, up to v0.10.4) testing different mechanics and fixing native logic. However, v0.11.0 is the most comprehensive and stable state I've achieved so far, so I decided to skip releasing the minor builds and bring this one directly to the community.

This is a complete rewrite of how the AI reads the pitch. It does not touch dt18_all.cpk and strictly does not boost any player attributes (100% read-only stats). The AI simply plays better because the geometry and decision-making algorithms have been completely rebuilt in C/C++.

Here is the factual list of what has been implemented in v0.11.0:

1. Engine & Performance (Multithreading)
-Rebuilt the threading model from a single global lock to fine-grained concurrency (hybrid spin-locks and thread-local memoization).
-The carrier decision, support plans for both teams, and goalkeeper logic now run fully in parallel.
-Decision time dropped from ~49µs to ~12.7µs. Zero dropped decisions or CPU bottlenecks during gameplay.

2. 1v1 Take-ons & Skills (takeon.h)
-Fixed the native habit where the AI always passes back when facing a defender.
-If facing a single engaging defender (2.2m - 5.5m) with clear space behind them, the AI will actively try to beat the defender using skill moves they actually own (Double Touch, Roulette, Scissors).
-Players without skill cards but with Dribble >= 76 will use the native card-free body feint to bypass the defender.

3. Anti-Walk Fix (transition.h)
-Fixed the frustrating native behavior where the AI carrier walks slowly (move_kind <= 1) and gets easily dispossessed from behind.
-If there is at least 3m of clear space ahead and pressure is closing in, the mod forces the AI into a native sprint (pace = 4 or 5).

4. The "Weak Link" Targeting (weak_link.h)
-The AI now scans all matchups across the pitch and mathematically identifies the opponent's weakest defending link (comparing attacker's speed/dribble vs defender's tackle/defense).
-Once identified, the entire AI team biases their passes, runs, and dribbles to overload that specific corridor and isolate that defender.

5. Vertical Counter-Attacks (attack.h)
-In the first 3 seconds after winning the ball (counter_age < 180), backward passes are heavily penalized. The AI is forced to push the ball forward decisively.
-Mentality Level 1 (Blue Bar) now correctly triggers counter-attacks if the setup allows it.

6. Proactive Interceptions (defence.h)
-Defenders with Defense >= 78 (or Interception/Man Marking skills) will calculate pass trajectories and step into the passing lane before the ball arrives.
-Lower-rated defenders will not take this risk and stick to basic positioning, creating a visible gap between elite and average defenders.


7. Emergency Tactical Fouls (foul_decision.h)
-Hooked directly into the native tackle tick rate (0x970f84).
-If an AI defender is the absolute last man and faces a clear breakaway (with no cover behind), they can intentionally commit an emergency tactical foul to prevent a goal.

8. Close-Range Shooting Fix
-Fixed the native bug where the AI refuses to shoot inside the box under light physical pressure and tries to pass sideways instead.
-If inside 11m and the shooting lane is open, the AI is forced to shoot (GOAL_CHANCE), unless a teammate has a 100% clear tap-in.



Installation:
STEP 1
- Back up

Copy <game folder>\Sider\sider.ini to sider.ini.bak in the same folder.
Copy <game folder>\PES2021.exe to PES2021.exe.bak (same folder).

STEP 2 - Install the TFSE executable (skip if you already run the ICON build)

This mod is only supported on PES 2021 TFSE, NO-STEAM version, ICON build.
If your PES2021.exe already has the SHA-256 shown in section 2, skip this
step. Otherwise copy Game\PES2021.exe from this package over the
PES2021.exe in your game folder (the same folder that contains the Sider
folder), then re-check the hash. Do not do this on the Steam version, on FL26
or on a regular PES 2021 installation (see the compatibility notice).

STEP 3 - Copy the four module files

Copy everything inside this package's Sider\modules\ into

<game folder>\Sider\modules\

You should end up with (alongside your existing .lua modules):

TFSE_Behavior_v0110.dll
TFSE_Behavior_v0110.lua
TFSE_Teamplay_v0104.dll
TFSE_Teamplay_v0104.lua

File names are versioned, so nothing of an older version is overwritten.

STEP 4 - Register the two Lua modules in sider.ini

Open <game folder>\Sider\sider.ini in a text editor. Inside the [sider]
section, among the other lua.module = "..." lines, add:

lua.module = "TFSE_Behavior_v0110.lua"
lua.module = "TFSE_Teamplay_v0104.lua"

In the reference setup these two lines are the first lua.module entries,
above CommonLib.lua and the rest. Keep that order if you can.

Make sure these are set (usually already are):

lua.enabled = 1
luajit.ext.enabled = 1

IMPORTANT: only ONE Behavior module and ONE Teamplay module may be
registered at a time. If you have an older entry such as

lua.module = "TFSE_Behavior_v0102.lua"
lua.module = "TFSE_Behavior_v0104.lua"
lua.module = "TFSE_Teamplay.lua"
lua.module = "TFSE_Teamplay_v0103.lua"

remove it or comment it out with a semicolon. Two Behavior modules would
hook the same call sites; the second refuses to install (guard failure)
because the first one already patched them, and you would be running the
older one. Same rule for Teamplay.

STEP 5 - Save sider.ini and start the game the way you normally do

Start Sider, then the game. Hooks are installed once, at Sider startup,
before any match exists. Do not use Sider's live "reload" key combination to
change modules: the installer refuses to patch code while a match root
exists, by design. Restart the game instead.

Download link
Mega: https://mega.nz/file/lGYCyK4I#o7sjHH4VpcYLGG13GatAhTE-fcIh4ic0BkOFIls5LIg


Currently supported and tested:

* PES 2021 TFSE, NO-STEAM version, ICON build (the PES2021.exe that is
shipped in this package).

NOT supported:

* PES 2021 Steam version
* FL26
* Regular / vanilla PES 2021 (any non-TFSE executable)
* Any other TFSE build

Let me know if you encounter any crashes or strange behaviors. I'll be monitoring the logs.

Cheers.
 
Last edited:
Back
Top Bottom