I. How to fix multiplayer minimap bug for all teams whose value is greater than 3.
There is a problem when you in multiplayer decide to add more than 3 teams. In singleplayer, each new one will just be yellow (or green/red if they have the right name). However, in multiplayer they will become white or other colors, which is very inconvenient. Plus, the white ones will be visible even to enemies.
The thing is that the developers for some reason instead of 3 bits read only 2 bits of information about the team number to display on the minimap. In addition, they constantly overwrite the correct value with the wrong one. This happens only in multiplayer (in single player there is no overwriting and the values remain correct). I solved the problem by removing overwriting in multiplayer.
The solution:
1. Using HexEditor, find the next code: "57 89 96 DC 00 00 00 E8"
2. Сhange the code from "57 89 96 DC 00 00 00 E8" to "57 90 90 90 90 90 90 E8"
II. How to change the main colors used in the game.
The game has the basic colors sewn in, which are used for a variety of things during game (colors of arrows on the mini-map, health bars, player names and even the message "Leaving the battlefield"). By changing them you can change all the basic colors. However, keep in mind that you cannot change the color for nickname or arrows separately in this way.
TeamColors.png
The solution:
1. Using HexEditor, find the next code: "FF FF FF FF C0 C0 C0 FF 80 80 80 FF"
2. First "FF" is the beginning, change can be started from there. The colors go one by one, no indentation
As you understand, all colors are written as hex numbers (0 to FF). The order of colors is as follows: blue, green, red, alpha.
For example, you can change the red color of enemies to cyan. Just change "20 20 DF FF" to "DF DF 20 FF"
III. I changed the color of the yellow team that is in alliance with the enemy and made them blue.
And similar to the green-red arrows, these ones will change to yellow and blue depending on their relationship to your team.
Essentially, allies will look green or yellow, and enemies will look red or blue (green and red = primary team, blue and yellow = secondary team)
Minimap additional teams.png
The solution:
1. Using HexEditor, find the next code: "08 8B 0D 00 7A 72 00 EB"
2. Сhange the code from "08 8B 0D 00 7A 72 00 EB" to "08 E9 F9 A0 17 00 90 EB"
3. Navigate to address "3048F0"
4. Change the code from zeros to "8A 8C 32 8C 00 00 00 84 C9 7E 0B 8B 0D 00 7A 72 00 E9 15 5F E8 FF 8B 0D F4 79 72 00 0F 8C 09 5F E8 FF 8B 0D DC 79 72 00 E9 FE 5E E8 FF"
epic awesome work
also quick question do you plan to make this work for more than 3 teams ?
Updated
So, this can be done on a map-to-map basis without the need to hack the game EXE, or is this being done to the game EXE? Sorry if I missed something, but I am wondering what file is being hex-edited to get this effect.
Very nice work regardless though!
Quote from: Ty294 on July 14, 2025, 03:24:07 PMSo, this can be done on a map-to-map basis without the need to hack the game EXE, or is this being done to the game EXE? Sorry if I missed something, but I am wondering what file is being hex-edited to get this effect.
Very nice work regardless though!
It requires updating your Battlefront.exe or saving the values in Cheat Engine.
is this the cd dvd version or steam gog ? and is it possible to have 4 teams all hostile to one another in different colors ?
Quote from: wsa30h on July 15, 2025, 05:18:37 AMis this the cd dvd version or steam gog ? and is it possible to have 4 teams all hostile to one another in different colors ?
It's the dvd version.
About teams - yes, it's possible, but it requires more manipulation of the EXE
awesome thank you epic work keep it up. i wonder how well this would translate to the classic collection ?
Quote from: wsa30h on July 15, 2025, 09:00:15 AMawesome thank you epic work keep it up. i wonder how well this would translate to the classic collection ?
Thank you.
I don't know about other versions. The game must be the similar, but the changes may require other areas of memory
But where you need to find not memory, but the code itself - it should work
may i ask how far you plan to push this cp color stuff ? i would love to eventually be able to have 6 teams each different color like i can on steam and gog. tried to do this myself for the cd dvd version but am useless glad someone knows what they are doing the dvd version needs more love.
I'm going to rest now. Don't know if I'll do what you talk about
Now I wanna do some more work on minimap.
Do you know if the multiplayer of other versions of the game has a problem with displaying a large number of units on the minimap?
yes other versions have this problem i cant confirm if the classic collection does because a large amount of units in that cause them to slide and then the game crashes.
sorry for the bump do you plan to modify how many highrez units can be on the map at any one time ?
Quote from: wsa30h on July 16, 2025, 05:29:52 AMsorry for the bump do you plan to modify how many highrez units can be on the map at any one time ?
I really don't know what you talking about... What do you mean "highrez"?
If it just about graphic - I have no interest in this
I mean like in original bf1 you only have 3 models in regular animation mode with the gun and all. any unit after that is in that weird low poly mode. also quick question is there any chance at some point you might look into doing 4 teams all hostile to one another and allowing different cp colors for all ? also if you could make a list of cp color codes to replace the default ones with i would appreciate it. i also want to change the green friendly color of team 1 to blue like bf2 would you know where that can be changed ?
Quote from: wsa30h on July 17, 2025, 11:42:19 AMI mean like in original bf1 you only have 3 models in regular animation mode with the gun and all. any unit after that is in that weird low poly mode
Got it. No, I will not change it in the near future.
Quote from: wsa30h on July 17, 2025, 11:42:19 AMalso quick question is there any chance at some point you might look into doing 4 teams all hostile to one another and allowing different cp colors for all
No, it's not so easy to do it. At least, I have to find one value and do that without sources will be hard
Quote from: wsa30h on July 17, 2025, 11:42:19 AMi also want to change the green friendly color of team 1 to blue like bf2 would you know where that can be changed ?
You can do that. I told how in the second section (
II)
thank you i found how to change friendly colors once again amazing work my friend.