Photo-realistic cabview question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lvlender
    Active Member
    • Feb 2024
    • 158
    • Loudon, TN
    • english
    • MSOR

    #1

    Photo-realistic cabview question

    Hi guys,
    I just installed Borislav Miletic’s excellent MSTS Dash 9 AC44 Photorealistic cab set (file ID 76187). I am using the add-on cab in Trainsimulations’ BNSF_C44_9W_4160 locomotive as supplied with the Trainsimulations Seligman, Az Route. The add-on looks and works great but, there is one small issue.

    There is a replacement “gui_fonts.dat” file, included as part of the add-on, that is intended to replace the 0pen Rails 'gui_fonts' file. The replacement file is supposed to decrease the size of digital numbers in cabview. Following the install instructions, I saved the original file in a separate location and dropped in the replacement. The replacement gui_fonts file does not shrink the digital numbers display in the cabview dash as it should.

    I opened up the replacement GUI file with an editor and studied the text but, I am not educated with this file. Can anyone advise how to change the 'gui_fonts.dat' file to shrink the digital numbers ?


    liquid panel.jpg ​
    Last edited by lvlender; 05-18-2024, 17:00.
  • oper190
    1000 Post Veteran



    • May 2010
    • 1498
    • Port Charlotte, FL
    • English
    • MSOR

    #2
    From what I find, reviewing my OR operating files, that file does not exist in OR, and from the download: note MSTS Dash 9 AC44 Photorealistic Cab - this is a file used in MSTS not OR. Don't know how you change fonts in OR.( It was in the MSTS GUI folder ).

    Here's a shot of the cabview of the engine I'm currently driving in OR, seems similar, and is the same as the example pic in the cabview folder.

    Open Rails 2024-05-18 07-18-50.jpg

    Also changing the fonts will probably effect all cabivews.
    ​
    Geary "Mr. Hart" Gerhardt - Owner and CEO of Hart Rail Lines, Hart Commuter Railways, and Hart Rail Cars. Also the defunct Hart Electric Transit.
    Its Your Train Sim World, sim as you please.

    Comment

    • wmuzeke
      Member



      • Jan 2021
      • 87
      • Sacramento, CA
      • General

      #3
      To change the cabview font in ORTS you will have to edit the .cvf file in each of the digital sections where those numbers are located. Take a look at section 14.1.21 in the Open Rails manual. For example, with the "D9AC44UPv2.cvf" cabview from that set, I used ORTSFont ( 5 0 "Arial" ) for the 4 brake pressure numbers and ORTSFont ( 7 0 "Arial" ) for the speedometer. You may have to change the positions very slightly afterwards to recenter them.

      Open Rails 2024-05-18 05-19-06.jpg

      Comment

      • R. Steele
        3500 Post Veteran

        • Feb 2013
        • 3928
        • known universe
        • ORTS

        #4
        Originally posted by oper190
        Don't know how you change fonts in OR
        Open Rails will accept any fonts, using the parameter ORTSfont in the cvf file.

        Fonts can be normal or bold >>> ORTSfont ( 8 0 "Digital-7 Mono" ) <<< in the example 8 is font size, 0=normal 1=Bold

        The manual has a section on it >>>>> 15.1.21 Configurable Fonts
        Code:
        SIMISA@@@@@@@@@@JINX0h0t______
        
        Tr_CabViewFile (
        CabViewType ( 2 )
        CabViewFile ( ES44Frnt.ace )
        CabViewWindow ( 0 0 640 480 )
        CabViewWindowFile ( ES44Frnt.ace )
        Position ( .5 4.14 8.8 )
        Direction ( 18 0 0 )
        CabViewFile ( ES44Lft.ace )
        CabViewWindow ( 0 45 640 480 )
        CabViewWindowFile ( AcWndLft.ace )
        Position ( -0.5 4.12 8.8 )
        Direction ( 4 2 0 )
        CabViewFile ( ES44Rgt.ace )
        CabViewWindow ( 0 0 640 480 )
        CabViewWindowFile ( AcWndRgt.ace )
        Position ( 1.1 4.61 9.1 )
        Direction ( 9 -.5 0 )
        EngineData ( UP7500 )
        CabViewControls ( 28
        Digital (
        Type ( BRAKE_PIPE DIGITAL )
        Position ( 301 216 26 17 )
        ScaleRange ( 0 200 )
        Accuracy ( 0 )
        AccuracySwitch ( 0 )
        LeadingZeros ( 0 )
        Justification ( 1 )
        PositiveColour ( 1
        ControlColour ( 178 200 184 )
        )
        NegativeColour ( 0 )
        DecreaseColour ( 0 )
        Units ( PSI )
        ORTSfont ( 8 0 "Digital-7 Mono" )
        )
        Digital (
        Type ( EQ_RES DIGITAL )
        Position ( 301 201 26 17 )
        ScaleRange ( 0 200 )
        Accuracy ( 0 )
        AccuracySwitch ( 0 )
        LeadingZeros ( 0 )
        Justification ( 1 )
        PositiveColour ( 1
        ControlColour ( 178 200 184 )
        )
        NegativeColour ( 0 )
        DecreaseColour ( 0 )
        Units ( PSI )
        ORTSfont ( 8 0 "Digital-7 Mono" )
        
        
        )
        Digital (
        Type ( BRAKE_CYL DIGITAL )
        Position ( 301 230 26 17 )
        ScaleRange ( 0 200 )
        Accuracy ( 0 )
        AccuracySwitch ( 0 )
        LeadingZeros ( 0 )
        Justification ( 1 )
        PositiveColour ( 1
        ControlColour ( 178 200 184 )
        )
        NegativeColour ( 0 )
        DecreaseColour ( 0 )
        Units ( PSI )
        ORTSfont ( 8 0 "Digital-7 Mono" )
        )
        Digital (
        Type ( MAIN_RES DIGITAL )
        Position ( 318 230 26 17 )
        ScaleRange ( 0 200 )
        Accuracy ( 0 )
        AccuracySwitch ( 0 )
        LeadingZeros ( 0 )
        Justification ( 1 )
        PositiveColour ( 1
        ControlColour ( 178 200 184 )
        )
        NegativeColour ( 0 )
        DecreaseColour ( 0 )
        Units ( PSI )
        ORTSfont ( 8 0 "Digital-7 Mono" )
        )
        MultiStateDisplay (
        Type ( DIRECTION_DISPLAY MULTI_STATE_DISPLAY )
        Position ( 412 234 16 9 )
        Graphic ( ReverserDisplay.ace )
        States ( 3 3 1
        State (
        Style ( 0 )
        SwitchVal ( -1 )
        )
        State (
        Style ( 0 )
        SwitchVal ( 0 )
        )
        State (
        Style ( 0 )
        SwitchVal ( 1 )
        )
        )
        )
        Digital (
        Type ( LOAD_METER DIGITAL )
        Position ( 431 236 10 5 )
        ScaleRange ( -1200 1800 )
        Accuracy ( 0 )
        AccuracySwitch ( 0 )
        LeadingZeros ( 0 )
        Justification ( 1 )
        PositiveColour ( 1
        ControlColour ( 31 154 83 )
        )
        NegativeColour ( 1
        ControlColour ( 200 188 53 )
        )
        DecreaseColour ( 0
        ControlColour ( 0 0 0 )
        )
        Units ( AMPS )
        ORTSfont ( 8 0 "Digital-7 Mono" )
        )
        Gauge (
        Type ( LOAD_METER GAUGE )
        Position ( 414 216 46 6 )
        Area ( 0 0 6 6 )
        Graphic ( default.ace )
        Style ( SOLID )
        ScaleRange ( -1200 1800 )
        ZeroPos ( 0 )
        PositiveColour ( 1
        ControlColour ( 32 189 113 )
        )
        NegativeColour ( 1
        ControlColour ( 200 188 53 )
        )
        Orientation ( 0 )
        DirIncrease ( 0 )
        Units ( AMPS )
        )
        Lever (
        Type ( TRAIN_BRAKE LEVER )
        Position ( 5 5 10 10 )
        Graphic ( blank.ace )
        Style ( NOT_SPRUNG )
        MouseControl ( 1 )
        NumFrames ( 12 2 6 )
        NumPositions ( 12 0 1 2 3 4 5 6 7 8 9 10 11 )
        NumValues ( 5 0 0.3 0.85 0.9 0.95 )
        Orientation ( 0 )
        DirIncrease ( 0 )
        ScaleRange ( 0 1 )
        )
        Lever (
        Type ( ENGINE_BRAKE LEVER )
        Position ( 10 5 10 10 )
        Graphic ( blank.ace )
        Style ( NOT_SPRUNG )
        MouseControl ( 1 )
        NumFrames ( 12 3 4 )
        NumPositions ( 2 0 1 )
        NumValues ( 2 0 0.3 )
        Orientation ( 0 )
        DirIncrease ( 0 )
        ScaleRange ( 0 1 )
        )
        Lever (
        Type ( THROTTLE LEVER )
        Position ( 126 320 135 73 )
        Graphic ( Throttle.ace )
        Style ( SPRUNG )
        MouseControl ( 1 )
        NumFrames ( 10 2 5 )
        NumPositions ( 10 0 1 2 3 4 5 6 7 8 )
        NumValues ( 10 0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1 )
        Orientation ( 0 )
        DirIncrease ( 1 )
        ScaleRange ( 0 1 )
        )
        Lever (
        Type ( DYNAMIC_BRAKE LEVER )
        Position ( 64 289 159 88 )
        Graphic ( dynamicbrake.ACE )
        Style ( NOT_SPRUNG )
        MouseControl ( 1 )
        NumFrames ( 10 2 5 )
        NumPositions ( 10 0 1 2 3 4 5 6 7 8 9 )
        NumValues ( 10 0 0.11 0.22 0.33 0.44 0.55 0.66 0.77 0.88 1 )
        Orientation ( 0 )
        DirIncrease ( 0 )
        ScaleRange ( 0 1 )
        )
        Lever (
        Type ( DYNAMIC_BRAKE LEVER )
        Position ( 446 234 16 8 )
        Graphic ( dynamicdisplay.ACE )
        Style ( NOT_SPRUNG )
        MouseControl ( 1 )
        NumFrames ( 10 2 5 )
        NumPositions ( 10 0 1 2 3 4 5 6 7 8 9 )
        NumValues ( 10 0 0.11 0.22 0.33 0.44 0.55 0.66 0.77 0.88 1 )
        Orientation ( 0 )
        DirIncrease ( 0 )
        ScaleRange ( 0 1 )
        )
        Lever (
        Type ( THROTTLE LEVER )
        Position ( 446 234 16 8 )
        Graphic ( throttdisplay.ace )
        Style ( SPRUNG )
        MouseControl ( 1 )
        NumFrames ( 10 2 5 )
        NumPositions ( 9 0 1 2 3 4 5 6 7 8 )
        NumValues ( 9 0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1 )
        Orientation ( 0 )
        DirIncrease ( 1 )
        ScaleRange ( 0 1 )
        )
        TwoState (
        Type ( RESET TWO_STATE )
        Position ( 508 378 31 24 )
        Graphic ( AlerterRight.ace )
        NumFrames ( 2 2 1 )
        Style ( PRESSED )
        MouseControl ( 1 )
        )
        TriState (
        Type ( DIRECTION TRI_STATE )
        Position ( 144 378 90 54 )
        Graphic ( Reverser.ace )
        NumFrames ( 3 3 1 )
        Style ( NONE )
        MouseControl ( 1 )
        Orientation ( 1 )
        DirIncrease ( 1 )
        )
        TwoState (
        Type ( HORN TWO_STATE )
        Position ( 26 232 34 41 )
        Graphic ( Horn.ace )
        NumFrames ( 2 2 1 )
        Style ( ONOFF )
        MouseControl ( 1 )
        )
        TwoState (
        Type ( BELL TWO_STATE )
        Position ( 72 206 25 32 )
        Graphic ( Bell.ace )
        NumFrames ( 2 2 1 )
        Style ( ONOFF )
        MouseControl ( 1 )
        )
        TwoState (
        Type ( SANDERS TWO_STATE )
        Position ( 31 434 46 33 )
        Graphic ( SandButton.ace )
        NumFrames ( 2 2 1 )
        Style ( ONOFF )
        MouseControl ( 1 )
        )
        MultiStateDisplay (
        Type ( SANDING MULTI_STATE_DISPLAY )
        Position ( 368 244 18 15 )
        Graphic ( Sanddisplay.ace )
        States ( 2 2 1
        State (
        Style ( 0 )
        SwitchVal ( 0 )
        )
        State (
        Style ( 0 )
        SwitchVal ( 1 )
        )
        )
        )
        MultiStateDisplay (
        Type ( WHEELSLIP MULTI_STATE_DISPLAY )
        Position ( 348 244 18 15 )
        Graphic ( wheelslipdisplay.ace )
        States ( 2 2 1
        State (
        Style ( 0 )
        SwitchVal ( 0 )
        )
        State (
        Style ( 0 )
        SwitchVal ( 1 )
        )
        )
        )
        MultiStateDisplay (
        Type ( PENALTY_APP MULTI_STATE_DISPLAY )
        Position ( 388 244 18 15 )
        Graphic ( PenaltyBrkDispaly.ace )
        States ( 2 2 1
        State (
        Style ( 0 )
        SwitchVal ( 0 )
        )
        State (
        Style ( 0 )
        SwitchVal ( 1 )
        )
        )
        )
        Gauge (
        Type ( EQ_RES GAUGE )
        Position ( 323 205 29 6 )
        Area ( 0 0 6 6 )
        Graphic ( default.ace )
        Style ( SOLID )
        ScaleRange ( 40 94 )
        ZeroPos ( 0 )
        PositiveColour ( 1
        ControlColour ( 0 132 192 )
        )
        NegativeColour ( 0 )
        Orientation ( 0 )
        DirIncrease ( 0 )
        Units ( PSI )
        )
        Gauge (
        Type ( BRAKE_PIPE GAUGE )
        Position ( 323 221 29 6 )
        Area ( 0 0 6 6 )
        Graphic ( default.ace )
        Style ( SOLID )
        ScaleRange ( 40 94 )
        ZeroPos ( 0 )
        PositiveColour ( 1
        ControlColour ( 0 132 192 )
        )
        NegativeColour ( 0 )
        Orientation ( 0 )
        DirIncrease ( 0 )
        Units ( PSI )
        )
        TriState (
        Type ( FRONT_HLIGHT TRI_STATE )
        Position ( 112 184 51 40 )
        Graphic ( Lights.ace )
        NumFrames ( 3 3 1 )
        Style ( NONE )
        MouseControl ( 1 )
        Orientation ( 0 )
        DirIncrease ( 1 )
        )
        Dial (
        Type ( SPEEDOMETER DIAL )
        Position ( 390 198 7 26 )
        Graphic ( MPHDialNeedle.ace )
        Style ( NEEDLE )
        ScaleRange ( 0 90 )
        ScalePos ( 253 130 )
        Units ( MILES_PER_HOUR )
        Pivot ( 23 )
        DirIncrease ( 0 )
        )
        MultiStateDisplay (
        Type ( ALERTER_DISPLAY MULTI_STATE_DISPLAY )
        Position ( 406 247 40 9 )
        Graphic ( AlerterDisplay.ace )
        States ( 2 1 2
        State (
        Style ( 0 )
        SwitchVal ( 0 )
        )
        State (
        Style ( 0 )
        SwitchVal ( 1 )
        )
        )
        )
        Digital (
        Type ( SPEEDOMETER DIGITAL )
        Position ( 383 229 16 8 )
        ScaleRange ( 0 200 )
        Accuracy ( 0 )
        AccuracySwitch ( 10 )
        LeadingZeros ( 0 )
        Justification ( 1 )
        PositiveColour ( 2
        ControlColour ( 255 255 255 )
        SwitchVal ( 75 )
        ControlColour ( 234 220 57 )
        )
        NegativeColour ( 0 )
        DecreaseColour ( 0 )
        Units ( MILES_PER_HOUR )
        ORTSfont ( 9 0 "Digital-7 Mono" )
        )
        MultiStateDisplay (
        Type ( OVERSPEED MULTI_STATE_DISPLAY )
        Position ( 375 270 33 14 )
        Graphic ( OverspeedDisplay.ace )
        States ( 2 2 1
        State (
        Style ( 0 )
        SwitchVal ( 0 )
        )
        State (
        Style ( 0 )
        SwitchVal ( 1 )
        )
        )
        )
        )
        )​
        Cheers, Gerry
        "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
        It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
        Forever, ridin' drag in railroad knowledge.
        Audi, Vide, Tace, Si Vis Vivere In Pace​

        https://www.trainsim.com/forums/filedata/fetch?filedataid=79656&type=medium​ https://www.trainsim.com/forums/filedata/fetch?filedataid=79654&type=small

        Comment

        • lvlender
          Active Member
          • Feb 2024
          • 158
          • Loudon, TN
          • english
          • MSOR

          #5
          Thanks guys,

          you are correct in your assessment. The gui_fonts.dat file in the add-on was meant only for MSTS. Never knew that.

          I modified the *.cvf file in the photorealistic cab add-on adding the "ORTSfont line" where appropriate and it worked! See the screenshot below.
          I learn something new every day. Thanks again. 😃

          liquid display2.jpg

          Comment

          • =FI=Ghost
            Senior Member
            • Feb 2010
            • 660
            • Germany
            • Serbian, Croatian, English, German, Russian
            • ORTS

            #6
            The problem has been solved before I had a chance to answer the question. Good
            Borislav
            sigpic

            Comment

            Working...