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: July 14, 2025, 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!

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.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

Today at 05:18:37 AM #6 Last Edit: Today at 05:20:15 AM by wsa30h
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 ?
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

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

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

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