Page 1 of 1

Text Color Changes...?

Posted: Mon Aug 04, 2008 7:33 pm
by bokkenblader56
Hello; I'm sorry to be another refugee from LucasForums, but I've recently started dabbling in modding SWBF2. My game on multiplayer, for some reason, does not show any difference in text color between Public Chat and Team Chat. I've read the readme.rtf in the Install folder, and it specifically says that Team Chat is supposed to appear in green. This brings me to my question, which is probably apparent from the title of this thread and my info so far:

How can I change the text color? I've downloaded all the mod tools necessary, as well as PSPad. I've checked through files that I thought they'd be in, such as COMMON, INGAME, etc. Any instructions would be welcome.

Thank you in advance.

Re: Text Color Changes...?

Posted: Mon Aug 04, 2008 9:28 pm
by Teancum
The text was changed to yellow in the 1.1 patch. It's hard coded into the exe. [RDH]Zerted can correct me if I'm wrong.

Re: Text Color Changes...?

Posted: Mon Aug 04, 2008 10:17 pm
by [RDH]Zerted
The last time I looked into it, the hud files have a section on the text. I forget what they named everything, but it looked like that along with the text is a color variable. I'm assuming that in v1.1 the color sent along with the text doesn't change like it used to in v1.0. We can mod the hud to change the color, but we cannot determine if its team chat or normal chat. I can make it always a single color like blue, or make it whatever the team color of the object you are looking at ingame (looks strange ingame), but I can't restore the better chat/team chat colors.

I expect RepSharpShooter to know more about the hud then me...

Re: Text Color Changes...?

Posted: Tue Aug 05, 2008 5:07 pm
by RepSharpshooter
You can change the color of event text that you find in the data\common\pc\1playerhud:
Text("player1targetinfo_shieldName")
{
TextBreak("Word")
TextAlignment("Center", "Top")
TextFont("gamefont_tiny")
EventText("player1.weapon1.target.shieldName")
Viewport(1)
Position(0.000000, 0.106972, 0.000000, "Viewport")
Alpha(0.600000)
Color(40, 255, 255)
FadeOutTime(1.000000)
EventEnable("player1.weapon1.target.shieldName")
EventDisable("player1.weapon1.target.disableShieldName")
}
you'll have to search through the text groups to find the one that you want to change. (I don't see the messages, perhaps it is hardcoded)

Re: Text Color Changes...?

Posted: Tue Aug 05, 2008 7:47 pm
by [RDH]Zerted
RepSharpshooter wrote:...I don't see the messages, perhaps it is hardcoded
I can't look now, but I know its in there. I've messed with it before. The problem is that there is only one entry which processes both types of chats.

Re: Text Color Changes...?

Posted: Tue Aug 05, 2008 11:54 pm
by bokkenblader56
How can you tell what the color is using only those three values?

(40, 255, 255)

Is it only experimentation? Sorry for knowing nothing about this. I assume that the values each represent three different colors, and the number you use determines how much of each color is used...is that roughly right?

Re: Text Color Changes...?

Posted: Wed Aug 06, 2008 12:33 am
by [RDH]Zerted
Yes, most things with computers use RGB or red, green, blue. The numbers range from 0 through 255. 255,0,0 would be fully red.