Font Color

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
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Font Color

Post by modmaster13 »

Hey!

In Instant Action, when you see your map in the list, the name of your map is in orange color. How do I change the color from orange to white?

P.S. Reply to this topic as well. :yes:

forums/viewtopic.php?f=27&t=25102

:thumbs:
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: Font Color

Post by Firefang »

The V1.3 Docs wrote:
How to change the displayed color of your map in the map selection screens:

Background Color Info:
SWBF2, like may other computer programs, deals with colors in terms of rgb or red, green, and blue. Using different combinations of red, green, and blue allows you to make almost any color. A value of zero means none of that color and a value of 255 means all of that color. For example: a r,g,b value of 0,255,0 would be shown as a pure green.

0) This guide will assume the mod map is named DMD.
1) Open up your addme\addme.lua
2) Search for your map's configuration line. It will look something like:
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "DMD%s_%s", era_g = 1, mode_con_g = 1, }
3) To change the color of your map, just add in the color and its value. For example, the following line would cause your map name to become black:
sp_missionselect_listbox_contents[sp_n+1] = { red = 255, blue = 255, green = 255, isModLevel = 1, mapluafile = "DMD%s_%s", era_g = 1, mode_con_g = 1, }

You don't have to include all of the colors (red, blue, green). You could just change the red or two of the three colors:
sp_missionselect_listbox_contents[sp_n+1] = { red = 151, green = 87, isModLevel = 1, mapluafile = "DMD%s_%s", era_g = 1, mode_con_g = 1, }

4) Save the addme.lua
5) Munge your map (Common can be unchecked, but it doesn't really matter)

Tip: Some colors are hard to see in the selection screen. Try to use the easy to see colors.
Note: Players can disable the custom map colors through the v1.3 patch's installer menu.
There you go
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Font Color

Post by modmaster13 »

How would I make it white?
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: Font Color

Post by Teancum »

red = 255, blue = 255, green = 255
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Font Color

Post by Maveritchell »

If you're only going for white, it can be done without the 1.3 patch - simply remove the "isModLevel = 1" parameter from your addme.

I wouldn't recommend actually coloring your map white - it can be fun to do to make it feel like your map is one of the original game maps, but for the end user of the mod it is an inconvenience, as it makes the newer content stand out less.
modmaster13
General
General
Posts: 777
Joined: Wed Aug 18, 2010 4:23 pm
Games I'm Playing :: COD SWBF
xbox live or psn: KrypticcElementt
Location: Twitter @_KrypticElement
Contact:

Re: Font Color

Post by modmaster13 »

Is this correct?
Hidden/Spoiler:
ucfb( scr_ NAME addme INFO BODYü LuaP ;¯ïK =(none) AddNewGameModes table getn " sp_missionselect_listbox_contents[sp_n+1] = { red = 255, blue = 255, green = 255, €? mapluafile ABC%s_%s era_g era_c mode_con_g mode_con_c " mp_missionselect_listbox_contents AddDownloadableContent ABC ABCg_con €@ ABCc_con newEntry n
ReadDataFile & ..\..\addon\ABC\data\_LVL_PC\core.lvl mapluafile pairs ^€ U€ ”€ E Y €‰‚] ÿ ] Ôü € 0 " A A … Æ ™ L! Ê I!C ¢CI¡DI!EI¡EI!F … Æ E ™ E L¡ L! F … Á A Y … Á  A Y Ç E  Y €
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: Font Color

Post by genaral_mitch »

Is that your addme.script? You usually don't edit the .script file, but instead the addme.lua file.
Post Reply