Text Color Changes...?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: South Carolina
Contact:

Text Color Changes...?

Post 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.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Text Color Changes...?

Post 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.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Text Color Changes...?

Post 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...
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Text Color Changes...?

Post 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)
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Text Color Changes...?

Post 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.
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: South Carolina
Contact:

Re: Text Color Changes...?

Post 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?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Text Color Changes...?

Post 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.
Post Reply