Battlefront team colors change

Started by Zelenium, July 12, 2025, 04:04:33 PM

Previous topic - Next topic
July 12, 2025, 04:04:33 PM Last Edit: Today at 02:29:37 PM by Zelenium
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.
You cannot view this attachment.

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)
You cannot view this attachment.

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
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

also quick question do you plan to make this work for more than 3 teams ?
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh


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!