Page 1 of 2 12 LastLast
Results 1 to 20 of 21

Thread: Text colors and fonts

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Text colors and fonts

    Since there is no thread about this, I figured I'd start one to collect the info about changing text colors (and potentially fonts).

    The main file that controls text colors is descr_ui_colour_db.txt. I've already managed to change color for the main menu ("Single Player", "Multiplayer", "Options"), for titles ("Single Player", "Select Faction" large-size titles), etc.

    This entries in this file are extremely cryptic about which text regions they control, so the following are the ones that I've already found the functions of (its function is the first line of each section):

    Code:
    ; shadow for main menu options, etc
    menu_general_text_shadow   127, 0, 0, 0              ; used for menu_text and miscellaneous menu text items
    
    ; highlight over main menu text
    menu_textlist              255, 182, 122, 80
    menu_textlist_shadow       255, 0, 0, 0
    
    ;'Confirm Exit Game?' pop-up, etc
    menu_dialog                255, 254, 254, 254
    menu_dialog_shadow         255, 0, 0, 0
    
    ; Faction descriptions
    menu_string_pair           255, 188, 188, 188
    menu_string_pair_alternate 255, 188, 188, 188
    
    ; Back Next arrows, titles of filled-in menu squares, etc
    menu_static_text           255, 254, 254, 254
    menu_static_text_shadow    255, 0, 0, 0
    What I need now is the entry which regulates the yellow color of the general's/settlement name in the strat map interface. This color is also possibly used by the 'season' text, and by the money amount text.
    Last edited by SigniferOne; December 23, 2008 at 05:19 PM.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  2. #2
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: Text colors and fonts

    I am not seeing anything that would show up as any sort of yellow unless my color blindness as gotten really bad

    Code:
    menu_textlist              255, 182, 122, 80
    The first number is opacity and the next 3 are rgb??

  3. #3
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Text colors and fonts

    In strat map mode, look at the color of the settlement or general's name, on the right hand of your interface. Or, color of the season text. There's actually quite a bunch of yellow colors. I mean look at the money amount; or turn amount. Did you ever guess that there was a blue colored text? There is, in the diplomacy window. Etc, it's all quite tricky.


    BTW, yes, the first number is opacity, and the next 3 are the RGB.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  4. #4

    Default Re: Text colors and fonts

    Would that be in the strat.sd?

    Coder on Dark Ages: Roman Revival, the alternate history mod for BI.

    Under the Patronage of Augustus Lucifer, member of the House of Ward.

  5. #5
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Text colors and fonts

    As far as I know the .SD files only control graphical components, such as the various icons on the interface window.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  6. #6
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: Text colors and fonts

    Thats what I thought about .sd, and .int file only specifies location in x y.

    I cant find anything Sig, shoot makanyane a PM shes pretty good with that stuff.

  7. #7
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: Text colors and fonts

    This is totally not good. Not only did I try to change everything possible, but I removed the descr_ui_colour_db.txt completely, which screwed up the whole game's text representation, but a few text strings on the screen retained their color, indifferent to everything around them.

    I send a pm to makanyane, we'll see what she says.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  8. #8
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: Text colors and fonts

    Hi, I've not looked at that much for M2TW, but I know we got totally stuck trying to change the building and unit description text colour in RTW etc... which seemed to be either hardcoded or somewhere in the unreadable font files. I changed every graphic file I could think of for that incase it was picking the colour up from something and didn't manage to change it... Sorry I suspect this might be the same.

    Only other file that I found that changes font colours is 'descr_event_images.txt' but that is only for event messages as far as I can tell. The .lnt file I don't think does anything after the initial menu/loading screens.

  9. #9
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Text colors and fonts

    It's indeed a shame about the font files, was trying to figure them out to no avail.

  10. #10
    Blackomur89's Avatar Campidoctor
    Join Date
    May 2009
    Location
    Serbia
    Posts
    1,904

    Default Re: Text colors and fonts

    So its realy not possible to put custom fonts in the descriptions...?
    2D artist for Call of Warhammer TW; 2D artist for Westeros TW; 2D artist and researcher for The Ruins of Arnor TATW sub-mod; 2D artist for Warcraft TW.

  11. #11
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Text colors and fonts

    Quote Originally Posted by Blackomur89 View Post
    So its realy not possible to put custom fonts in the descriptions...?
    Unless you can convert TTF files to the font format CA uses, in which case it shouldn't be a problem. The key issue is the format from my understanding, so it requires the same type of work put in to make model/texture converters.

  12. #12
    Blackomur89's Avatar Campidoctor
    Join Date
    May 2009
    Location
    Serbia
    Posts
    1,904

    Default Re: Text colors and fonts

    Quote Originally Posted by Augustus Lucifer View Post
    Unless you can convert TTF files to the font format CA uses, in which case it shouldn't be a problem. The key issue is the format from my understanding, so it requires the same type of work put in to make model/texture converters.
    Could you please tell me how to do that.
    I would like to put several different fonts in the building descriptions names.
    Thank you in advance.
    2D artist for Call of Warhammer TW; 2D artist for Westeros TW; 2D artist and researcher for The Ruins of Arnor TATW sub-mod; 2D artist for Warcraft TW.

  13. #13
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Text colors and fonts

    Quote Originally Posted by Blackomur89 View Post
    Could you please tell me how to do that.
    I would like to put several different fonts in the building descriptions names.
    Thank you in advance.
    It isn't a matter of doing it, it's a matter of the tools to do it not existing. Files are packaged in 'formats' which determine their makeup and how they're read as well as which programs can read them. Converters are made to take the meat of a file and put it in the wrapping of another format. There's no such thing which converts the most common text format (.ttf) into the one that CA uses. A programmer would need to create one before we could attempt to modify fonts, presumably.

  14. #14
    Blackomur89's Avatar Campidoctor
    Join Date
    May 2009
    Location
    Serbia
    Posts
    1,904

    Default Re: Text colors and fonts

    Quote Originally Posted by Augustus Lucifer View Post
    It isn't a matter of doing it, it's a matter of the tools to do it not existing. Files are packaged in 'formats' which determine their makeup and how they're read as well as which programs can read them. Converters are made to take the meat of a file and put it in the wrapping of another format. There's no such thing which converts the most common text format (.ttf) into the one that CA uses. A programmer would need to create one before we could attempt to modify fonts, presumably.
    And a programmer is hard to find.
    Thank you in any case.
    2D artist for Call of Warhammer TW; 2D artist for Westeros TW; 2D artist and researcher for The Ruins of Arnor TATW sub-mod; 2D artist for Warcraft TW.

  15. #15
    Werebear's Avatar For Mother Russia
    Join Date
    Jan 2007
    Location
    Russia, Moscow
    Posts
    2,519

    Default Re: Text colors and fonts

    Hi

    Can you tell me plz line in descr_ui_colour_db.txt for unit card text description

  16. #16

    Default Re: Text colors and fonts

    from my research into the issue it can be done! but like Lucifer says "it involves a programmer" cause we need to write a new hardcoded CUF. java script every time and we would have no way to do preliminary testing

  17. #17
    Werebear's Avatar For Mother Russia
    Join Date
    Jan 2007
    Location
    Russia, Moscow
    Posts
    2,519

    Default Re: Text colors and fonts

    but i dont want change font, only colour
    Last edited by Werebear; October 14, 2009 at 12:41 PM.

  18. #18
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: Text colors and fonts

    yup, but unless CA coded a line into the descr_ui_colour_db.txt
    that lets you do that - (suggest you experiment by changing all lines in there to something silly like 00 00 255) - then whatever codes the colour is hidden somewhere in the CUF files or even worse the .exe....

    I've not specifically tried to get to that one in M2, but as SigOne said above, there are some colours we can't seem to get to.

  19. #19
    Werebear's Avatar For Mother Russia
    Join Date
    Jan 2007
    Location
    Russia, Moscow
    Posts
    2,519

    Default Re: Text colors and fonts

    i havent time for experiment, thats why i asked...

  20. #20
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Text colors and fonts

    Well, the color for unit and settlement names are connected to the faction colors. Guess that might be tied in with another input as well. So Makanyane's suggestion might be the only way to find out.










Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •