I finally got to modify the game squad players limit, a BIG THANK to Mats391 whose support was essential for me to find the related code.
For anybody interested in this change, these are the necessary steps:
1) make sure you have a reverse engineering tool (I used OLLYDBG and found it quite easy to use), you will need it to hack the .exe file;
2) with the tool, open BF2.exe and search for the following relative virtual address:
0x004E8BB5;
3) the following code should be found:
004E8BB5 06 PUSH ES;
4) edit the binary by replacing 06 with whatever value you want (example 09);
5) copy all changes to the executable and save the new .exe in the wished destination folder.
IMPORTANT INFO FOR SINGLEPLAYER:
unfortunately AI bots seem to be coded to distribute themselves to all 9 available squads, leaving 2 or 3 slots free in each squad; this does not comply with my aim which is getting for each team about 60 soldiers, divided in 5 squads of 11-12 soldiers.
Also, testing different squad limits I noticed that any value higher than 9 seems to break the limit for the first squad; for example, with limit set to 10 players and 139 BOTS (70 soldiers/team), ALPHA gets filled by 14 bots while the other 8 squads by only 7 bots.
I will create another thread for discussing about a possible solution (reducing bf2 maximum squad number).
Thanks in advance to anybody who has some suggestions.
BF2.exe code (squad size) - request for help
-
- Posts: 4
- Joined: 2023-08-19 22:08
SOLVED! How to modify squads size limit (BF2.exe hack)
Last edited by serpiko on 2023-08-28 10:06, edited 3 times in total.
Reason: achieved change
Reason: achieved change
-
- PR:BF2 Developer
- Posts: 2887
- Joined: 2012-05-18 03:37