Skip to content

Commit 8eb663c

Browse files
committed
fix transferrred player eligibile to improvement again. update instructions
1 parent cf65e87 commit 8eb663c

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

Fsm97Trainer/Fsm97Trainer/MenusProcess.cs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,13 +473,22 @@ public void BoostYouthPlayer(bool currentTeamOnly)
473473
try
474474
{
475475
NativeMethods.SuspendProcess(Process);
476-
476+
int currentDate = NativeMethods.ReadInt(Process, DateAddress);
477+
DateTime currentDateTime = new DateTime(1899, 12, 30).AddDays(currentDate);
478+
if (currentDateTime.Month < 5 || currentDateTime.Month > 7)
479+
{
480+
throw new InvalidOperationException("只能在赛季初修改年轻球员数据 (Can only change youth player data at the beginning of the season)");
481+
}
477482
var playerNodes = ReadPlayers(currentTeamOnly);
478-
foreach (var playerNode in playerNodes)
483+
var youthPlayerNodes = playerNodes.Where(p => p.Data.Age < 20 && p.Data.ContractWeeks == 144 || p.Data.ContractWeeks == 143)
484+
.ToList();
485+
if (youthPlayerNodes.Count == 0)
486+
{
487+
throw new InvalidOperationException("未找到匹配的年轻球员。注意只能在赛季初修改年轻球员数据 (Youth player not found. Note can only change youth player data at the beginning of the season)");
488+
}
489+
foreach (var playerNode in youthPlayerNodes)
479490
{
480491
var player = playerNode.Data;
481-
if (player.Age >= 20) continue;
482-
if (player.ContractWeeks > 144 || player.ContractWeeks < 143) continue;
483492
player.Speed += 25; if (player.Speed > 99) player.Speed = 99;
484493
player.Agility += 25; if (player.Agility > 99) player.Agility = 99;
485494
player.Acceleration += 25; if (player.Acceleration > 99) player.Acceleration = 99;

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# fsm97trainer
22
Patch and trainer for EA's FIFA Soccer Manager (1997).
33

4+
## Requirements
5+
6+
Requires .Net 4 (included in Windows 10).
7+
8+
.Net 4.8 Recommended (https://dotnet.microsoft.com/zh-cn/download/dotnet-framework/thank-you/net48-web-installer)
9+
10+
For Windows XP users .Net 4.0 can be downloaded from https://www.microsoft.com/en-us/download/details.aspx?id=17851
11+
12+
## How to install
13+
14+
Unzip the files to anywhere.
15+
16+
## Patching the executable
17+
18+
Run the patcher, enter the path to the menus.exe in game folder, or click the browse button to select the file. Choose the traning effects you want. Then click Patch.
19+
20+
To remove the patch, enter the path to menus.exe, then click Unpatch.
21+
422
## Features
523

624
### Patcher

0 commit comments

Comments
 (0)