Digital display no go

Discussion in 'Car Modding' started by Doogal, Mar 21, 2017.

  1. Doogal

    Doogal Registered

    Joined:
    Mar 7, 2017
    Messages:
    56
    Likes Received:
    26
    I'm probably missing something stupid, but I cannot get any font to display at all onto the background (render target is ticked) for any of the digital displays. The only thing that shows up is the tire temps display if set to LCD and this remains there even if I cycle through the LCD displays. I'm currently trying to get it to show the speed with the following in cockpit info:

    SpeedFont=ADL2_LARGEFONT.bmp // defaults to FONTREAD
    SpeedBackground=SR21_SPDBKG // defaults to READOUT.BMP
    SpeedScale=(1.0, 1.0) // how big to draw the font onto the background

    The background texture is SR21_SPDBKG.tga and render target is ticked but I have tried using different fonts/backgrounds changing the font scale but still bugger all will show and can't think of anything else to try?

    Finally found two things that work - set font to FONTLCD.bmp (which must be a default one as it doesn't change even if I use one of my own and rename it) or use a .TTF which looks better but afaik means only white?
     
    Last edited: Mar 21, 2017
  2. T1specialist

    T1specialist Registered

    Joined:
    Jan 11, 2012
    Messages:
    237
    Likes Received:
    163
    .ttf does look like it is only white. I have not been able to get it to work in any other color. Which is a shame because I think ttf could allow really precise fonts without having to use megabit sized bmp font files which you need to manually create.

    As for your issue I think it could be many things. Does your tga align the text to the left or to the right, up or down? Maybe it is just out of sight? Probably not if the bmp font works though.

    Have you tried changing the scale of the font? Are you sure your bmp font actually works? How did you make it? Did you edit an existing bmp file or did you try to create one from scratch? Maybe the bmp font file is faulty because if other bmp font file works then it points to an issue with your current bmp font. Could be that the colors of the bmp file are set up wrong. No idea how they are supposed to be set up though.
     
  3. Doogal

    Doogal Registered

    Joined:
    Mar 7, 2017
    Messages:
    56
    Likes Received:
    26
    I created an object solely for testing this (see pic) and scaled the background to fit so hopefully wherever the text appears I should be able to see it - so far top left seems to be the case. As you can see the .TTF seems fine, if I change this to fontlcd.bmp (the only bmp font name that seems to work) text will appear in the top left corner but the font is not the one I have in the .mas?.

    GRAB_040_TTF.jpg

    TBH the fonts have either come from rFactor/GTR2 or GTR Evo, I wouldn't know where to begin making my own and if RF2 has some common ones stored in cmaps then that is locked?

    GRAB_041BMP.jpg
    Using fontlcd - the font in the .mas is actually orange?
     
  4. T1specialist

    T1specialist Registered

    Joined:
    Jan 11, 2012
    Messages:
    237
    Likes Received:
    163
    My only idea is that because ttf and bmp fonts require different scaling.. and depending how big the bmp for your fonts is then different bmp fonts need different scaling as well. I'd keep using your own font and mess with this value SpeedScale=(1.0, 1.0). Try making then bigger and smaller. Other than that I have no idea.

    You could unpack some isi car into devmode and try your own bmp font in that car.
     
  5. Doogal

    Doogal Registered

    Joined:
    Mar 7, 2017
    Messages:
    56
    Likes Received:
    26
    Thanks, will try some of the fonts I use on an ISI car. Scaling works ok on either types of font although .ttf scaling is nearly double that of the .bmp. Anyway I've stuck with .ttf for this one as it's clearer and made a bit of progress-
    GRAB_042.jpg Nothing like the original lol but useable, I think the gear display is off as I need to resize the bkg and the bottom right should display fuel level (it's in cockpiitinfo as FuelLevelBackground but thinking this may wrong?) but all other displays work.
     
    Last edited: Mar 22, 2017
  6. Pauli Partanen

    Pauli Partanen Registered

    Joined:
    May 15, 2012
    Messages:
    1,091
    Likes Received:
    1,748
    Hi!

    Did you ever got the fuel working? I haven't been able to get it work in digital display. Have tried FuelLevelFont and FuelFont entries, but it does not render. Is this even working in rF2 now?
     
    Last edited: Dec 16, 2017

Share This Page