Jump to content

Changing the chat colors?


herig2

Recommended Posts

I have tried doing a search, and looking in any files that seem to be link to the MP chat window. And been very unsuccessful.

Does any one know or can suggest what files, that the chat colors are located. I trying to change the color of the blue side chat. The dark blue is very hard to see against a dark background, such as a overcast sky or at night.

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • ED Team

It's possible to change message colors, but it requires a minor tweak:

in Scripts/net/main.lua line 62:

-- bind config
server.config = config.server
client.config = config.client

 

add a line:

-- bind config
server.config = config.server
client.config = config.client
ui = config.ui  -- <--THIS LINE

 

Now, you can add a section to your Config/network.cfg:

ui = {
local_player_color = 0xE8C500,
other_player_color = 0xFFFFFF,
log_msg_color = 0xFF9000,
side_none_color = 0xFFFFFF,
side_red_color = 0xFF0000,
side_blue_color = 0x0000FF,
}

I've shown default values.

Hope you can figure out the meaning of variables yourself.

  • Like 2

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

Link to comment
Share on other sites

I've shown default values.

Hope you can figure out the meaning of variables yourself.

 

For anyone wondering what they mean: http://html-color-codes.com/

 

Anything after the 0x are hexadecimal color codes, specifying red, green and blue in hexadecimal numbers running from 0 (00) to 255 (FF). So red is FF0000, green is 00FF00 and blue is 0000FF.

There are only 10 types of people in the world: Those who understand binary, and those who don't.

Link to comment
Share on other sites

Gooood, this what I've been waiting since LO1!

 

I rarely could read blue text... it was too darky.

Reminder: Fighter pilots make movies. Bomber pilots make... HISTORY! :D | Also to be remembered: FRENCH TANKS HAVE ONE GEAR FORWARD AND FIVE BACKWARD :D

ಠ_ಠ



Link to comment
Share on other sites

Ok, I was thrown a curve, I copy and paste the section that had the hexadecimal color codes. but when I open the file they were change to a run of numbers. After playing around I found that after inserting the hexadecimal color code, it would change to a run of numbers. ( not being a computer guy, I do not know the how or the whys for the change).

The hard part was choosing a color. Being a ground pounder green, brown, tan was out. Sunrise or sunsets ruled out yellow, and light blue was a no-no. White is used by the servers. I settle on a bright pink. It also catches my eye if I studying the ground. (looking for targets).

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • 9 months later...

Chat Mode Colour

 

Wondering if there is any way to change the received chat colour? Dark Blue at present and I miss a lot of what is being typed. I need it to stick out more. Preferably white.

Asus P8P67Pro, Intel i7, 8gb DDR3, OCZ Vertex3, 120gb SSD, GForce GTX 560, Cooler Master GX850, Win 7, Logi X 3D Pro.

Link to comment
Share on other sites

  • 2 weeks later...

I still don't get how to do this. As per the instructions, I found the main.lua file in the Scripst/Net folder and added the line. But I can't find the network.cfg file in the Config folder.

 

I'm thinking that the files structure may have changed since final.

Corsair Graphite 780T / ASUS Maximus VIII Hero / i7-6700K@4.5GHz / Corsair H110i / 32GB DDR4 PC-2666 / ASUS 1080 Strix / EVGA 850 Pro / Samsung 950 Pro M.2 SSD / Win10x64 / Samsung UN48JU7500 4k / Logitech G910/933 KB/Headphones / Razer Naga Epic Mouse / MFG Crosswinds / TM HOTAS Warthog / HTC Vive

Link to comment
Share on other sites

  • 5 months later...

This mod also works in A-10C, the only thing is that network.cfg is located in $HOME\Saved Games\DCS Warthog\Config\network.cfg

 

Thanks to c0ff for pointing this out.

 

It's possible to change message colors, but it requires a minor tweak:

in Scripts/net/main.lua line 62:

-- bind config
server.config = config.server
client.config = config.client

 

add a line:

-- bind config
server.config = config.server
client.config = config.client
ui = config.ui  -- <--THIS LINE

 

Now, you can add a section to your Config/network.cfg:

ui = {
local_player_color = 0xE8C500,
other_player_color = 0xFFFFFF,
log_msg_color = 0xFF9000,
side_none_color = 0xFFFFFF,
side_red_color = 0xFF0000,
side_blue_color = 0x0000FF,
}

I've shown default values.

Hope you can figure out the meaning of variables yourself.

There are only 10 types of people in the world: Those who understand binary, and those who don't.

Link to comment
Share on other sites

  • 1 year later...
  • 4 months later...

Thats ok, its work !

In script/net/main.lua

Have you done exactly this:

 

-- bind config

server.config = config.server

client.config = config.client

ui = config.ui

ui = {

local_player_color = 0xE8C500,

other_player_color = 0x0099FF,

log_msg_color = 0xFF9000,

side_none_color = 0x0099FF,

side_red_color = 0xFF0000,

side_blue_color = 0xFFFF00,

}

For me that work ok

 

Have a good day

Link to comment
Share on other sites

thank you. it worked great. but i went back to change the color again, as i had changed it to a hex green color. so now when i opened the network.cfg file in notepad++, i get this

ui = {
local_player_color = 15254784,
other_player_color = 16777215,
side_red_color = 16711680,
side_none_color = 16777215,
log_msg_color = 16748544,
side_blue_color = 3394560,

let me say it DOES work and the new color i put in is being displayed, but now im reluctant to change the color again because it not in hex form. did it re-write itself? do i insert a hex code or something else?

Asus x99, i7 5930k, 32g mem, MSI 1070GTX, 970 Samsung M.2, LG 35in Ultra-Wide, TrackIR 4

Thrustmaster Warthog HOTAS

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • 4 months later...

let me say it DOES work and the new color i put in is being displayed, but now im reluctant to change the color again because it not in hex form. did it re-write itself? do i insert a hex code or something else?

 

I stumbled on this site that seems to have the conversions you may be looking for.

 

http://www.colorhexa.com/44faf8

Intel i5-9600K @ 3.7GHz

Gigabyte Z370XP SLI Mobo

G.SKILL Ripjaws V Series 32GB (2 x 16GB) 288-Pin DDR4

GIGABYTE GeForce RTX 2070 8GB 256-Bit GDDR6(Assume the latest driver version)

Thermaltake Water 3.0 Certified Liquid Cooling System

Windows 10 Professional

Oculus Rift-S /TrackIR 5 in case VR dies

Thrustmaster HOTAS Warthog w/ Thrustmaster T-Flight Rudder Pedals

Link to comment
Share on other sites

  • 1 year later...
Dont work anymore , i tryed to put those lines in that files but nothing, the chat text reamain blue

Hello Tritatuito, look at my main.lua :http://www.mediafire.com/download/7fnxzsu31z2p3nj/main.zip and try whith it.

Enjoy.

  • Like 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...