Is it possible to diddle with the in-game faction colour?

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Is it possible to diddle with the in-game faction colour?

Postby Little Miss Murder » 22 Nov 2019, 20:31

o/

I have a bit of an embarrassing problem. I am not colour blind in the least, but I find any other colour than Breast Cancer Awareness pink impossible to play effectively. It makes me often not join games where the colour is already taken. And I also know I am not the only person with this issue.

Can we fix this with a bit of hacking? Is it possible?

The idea being; you simply select your desired colour in the lobby, and the game renders your stuff in that colour. If another player, or players, had chosen the same colour, you simply see them as a different, randomly chosen colour. But of course they have the same benefit and see their stuff in their chosen colour, and yours in a random colour.

I think it would be a wonderful addition to the game, and if it's possible to do, then I will put in the graft. But I need to know if it's possible first. It stands to reason that you can switch between full colour and IFF colour, so it certainly seems doable.

I have no idea what effect this would have on replay files though.
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: Is it possible to diddle with the in-game faction colour

Postby speed2 » 22 Nov 2019, 20:36

User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: Is it possible to diddle with the in-game faction colour

Postby Little Miss Murder » 22 Nov 2019, 20:40

Thanks, let me go have a gander <3
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: Is it possible to diddle with the in-game faction colour

Postby armacham01 » 22 Nov 2019, 20:43

There is already the blue-green-red coloration button. I'm guessing it would be trivially easy to make a UI mod that changes those three colors into whatever 3 colors you would prefer. I don't know which file has that info in it, but if someone figured out which script file it is, making it into a mod should be very easy. (Unless those 3 colors are hardcoded into the game engine.)

That doesn't help you to tell apart the units of particular friendly/enemy players

The change you propose--that changes one enemy into a random color--would be bad because people often communicate based on a player's color. If different players had multiple colors for different players on your own team, communications could get confused.

If you do what speed2 suggests, then all of the players would be pink? Which might make it hard to tell your units from enemy units? If everybody is pink, then nobody is uniquely pink.
armacham01
Avatar-of-War
 
Posts: 232
Joined: 09 Feb 2019, 09:01
Has liked: 54 times
Been liked: 109 times
FAF User Name: arma473

Re: Is it possible to diddle with the in-game faction colour

Postby Little Miss Murder » 22 Nov 2019, 20:48

armacham01 wrote:The change you propose--that changes one enemy into a random color--would be bad because people often communicate based on a player's color. If different players had multiple colors for different players on your own team, communications could get confused.


This is definitely a problem. I don't know how much of a problem it would turn out to be.

If you do what speed2 suggests, then all of the players would be pink? Which might make it hard to tell your units from enemy units? If everybody is pink, then nobody is uniquely pink.


No, just your own colour.
Last edited by Little Miss Murder on 22 Nov 2019, 20:49, edited 1 time in total.
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: Is it possible to diddle with the in-game faction colour

Postby Little Miss Murder » 22 Nov 2019, 20:49

What is a .dds file?
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: Is it possible to diddle with the in-game faction colour

Postby Geosearchef » 22 Nov 2019, 22:35

It's a proprietary texture format introduced by microsoft for directx. (https://fileinfo.com/extension/dds)
There is software out there that can read, write and convert it, you'll have to research that yourself.
Developer, Server Admin, ICE, currently working on Team Matchmaking, FAF Client
User avatar
Geosearchef
Contributor
 
Posts: 392
Joined: 18 Oct 2013, 14:08
Location: Germany
Has liked: 6 times
Been liked: 127 times
FAF User Name: Geosearchef

Re: Is it possible to diddle with the in-game faction colour

Postby BlackYps » 22 Nov 2019, 22:46

I faced the same problem some time ago. You can use the mod I created for this here: viewtopic.php?f=41&t=17624
It has a chance to cause game freezes if you also use supreme score board, because a variable in SSB is not initalized correctly and it can lead to issues, if the colors are not exactly what SSB expects them to be.
You should be able to edit the IFF colors safely though.
BlackYps
Avatar-of-War
 
Posts: 74
Joined: 15 Feb 2019, 19:46
Has liked: 7 times
Been liked: 31 times

Re: Is it possible to diddle with the in-game faction colour

Postby Little Miss Murder » 23 Nov 2019, 09:13

BlackYps wrote:I faced the same problem some time ago. You can use the mod I created for this here: viewtopic.php?f=41&t=17624
It has a chance to cause game freezes if you also use supreme score board, because a variable in SSB is not initalized correctly and it can lead to issues, if the colors are not exactly what SSB expects them to be.
You should be able to edit the IFF colors safely though.


If I understand your mod correctly; it does not really help me since I still need to have all the different colours available. And I'd have to make sure that my picked lobby colorindex corresponds to what's in the file anyway? What am I missing?
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: Is it possible to diddle with the in-game faction colour

Postby ZeRen » 23 Nov 2019, 10:35

BlackYps wrote:I faced the same problem some time ago. You can use the mod I created for this here: viewtopic.php?f=41&t=17624
It has a chance to cause game freezes if you also use supreme score board, because a variable in SSB is not initalized correctly and it can lead to issues, if the colors are not exactly what SSB expects them to be.
You should be able to edit the IFF colors safely though.


thx dude, finally I can change team colors

btw to make experimenting easier, in gamedata create this folder structure
Code: Select all
gamedata/2Lua.nx2/lua/GameColors.lua



btw2 would be possible for team colors to have differrent color for each enemy and ally? like this :

enemy1 - red
enemy2 - dark red
enemy3 - purple

ally1 - blue
ally2 - darkblue
ally3 - aqua

I did experiment with it but got only errors
User avatar
ZeRen
Evaluator
 
Posts: 641
Joined: 03 Aug 2014, 08:22
Has liked: 154 times
Been liked: 49 times
FAF User Name: ZeRen

Next

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest