Freelancer and 4K

There are 35 replies in this Thread. The last Post () by Aldenmar Odin.

  • i just tested on my other laptop with old CF install, and here the value is correct


    [TrueType]

    nickname = Normal

    font = Crossfire

    fixed_height = 0.025000


    this laptop just has a full HD screen so cant test the value here.


    so the launcher did not update all files in my fresh CF install, thats why my account got banned i guess.


    edit: will now copy this correct CF install to my surface pro 11 and test there with the 2k screen and will then post result here.

    widget-animated-flatlas-v2-progress.gif

    ...................... FL Atlas V2 (C++)..................................................Savegame Editor............................................FL Atlas-Launcher

    306270.png309587.png305505.png

    Edited once, last by Aldenmar Odin ().

  • The new launcher first creates the hashes of files available that are touched by the usual update. Files that are not available should be downloaded and hashed then.


    I haven't tested it yet with a fresh install, maybe there is a gap still somewhere in the logic. Would need to test that.


    If you test this again I would be interested in the logs after the first start and the hashing and after you did select multiplayer. And maybe after a 2nd start of the launcher.

    signature.png

  • The font update is not based on hash... But on text strings. Like the launcher version update.

    signew.jpg


    cfmoddblogo.png5904.png5904.png
    http://www.moddb.com/scripts/topsite.php?ts=4766


    Only dead fish swim with the stream.
    Don't discuss with idiots. They only drag you down to their level and then beat you with experience there.


    This is ten percent luck,
    Twenty percent skill,
    Fifteen percent concentrated power of will,
    Five percent pleasure,
    Fifty percent pain,
    And a hundred percent reason to remember the name!

  • Do you still want to include the UI Options to the launcher?

    In that case that would be the solution.

    signew.jpg


    cfmoddblogo.png5904.png5904.png
    http://www.moddb.com/scripts/topsite.php?ts=4766


    Only dead fish swim with the stream.
    Don't discuss with idiots. They only drag you down to their level and then beat you with experience there.


    This is ten percent luck,
    Twenty percent skill,
    Fifteen percent concentrated power of will,
    Five percent pleasure,
    Fifty percent pain,
    And a hundred percent reason to remember the name!

  • Unfortunatley I cant get CF to work on my surface ... I remember it worked in the past but now everything I try ... it fails.


    I guess its not CFs fault, its a Windows ARM problem. Freelancer HDE works, dont know why. Anyway, on my gaming machine I have a full 4k monitor, will test it on wednesday then i will be at home.

    widget-animated-flatlas-v2-progress.gif

    ...................... FL Atlas V2 (C++)..................................................Savegame Editor............................................FL Atlas-Launcher

    306270.png309587.png305505.png

  • I could finally test it, and the font issue seems to be fixed. Sorry for reoping this thread :)

    widget-animated-flatlas-v2-progress.gif

    ...................... FL Atlas V2 (C++)..................................................Savegame Editor............................................FL Atlas-Launcher

    306270.png309587.png305505.png

  • I still will update it to 0.020000 since for some reason 0.025000 does not work for me on this monitor.

    I am not sure why.

    Maybe its an issue with the aspect ratio. I am on 16:9. What is yours?

    In theory I can adjust it to a 21:9 mode and test the values with that aswell.

    signew.jpg


    cfmoddblogo.png5904.png5904.png
    http://www.moddb.com/scripts/topsite.php?ts=4766


    Only dead fish swim with the stream.
    Don't discuss with idiots. They only drag you down to their level and then beat you with experience there.


    This is ten percent luck,
    Twenty percent skill,
    Fifteen percent concentrated power of will,
    Five percent pleasure,
    Fifty percent pain,
    And a hundred percent reason to remember the name!

  • I am only on 16:9 (Full HD and 4K) and 3:2 (Surface Pro)


    But that issue appeared only on resolutions greater than 2k, so surface pro has 2880x1920 (3:2 Ratio) and on 4k 3840 x 2160 (16:9). On Full HD (my other laptop with 16:9 ratio too) this issue does not appear.


    I could solve the issue on other servers (discovery, hamburg city, freelancer universe) by changing the number in the ini to 0.25 (or less).


    As I have also problems with the HUD with hudshift on different ratios and resolutions, I have found out the formula to calculate the values for any ratio in the camera.ini:


    (now math comes in, sorry for that, I know Text representation of formulas is difficult here in the forum, but I will try)


    Example for 3:2 Ratio, calc from 4:3 Ratio (vanilla standard):

    fovx(3:2) = 2 * arctan( tan(54.432° / 2) * ((3/2) / (4/3)) )


    fovx(3:2) = 2 * arctan( tan(54.432° / 2) * 9/8 )


    equals: fovx(3:2) = 60.105°

    (camera ini entry for fovx).

    all values:

    4:3 - 54.432

    3:2 - 60.105

    16:10 - 63.361

    16:9 - 68.878



    I will take a look at the values and create a function for the font values so you can implement them in the launcher. So HudShift and Font Issues are gone for any aspect ratio and resolution.

    widget-animated-flatlas-v2-progress.gif

    ...................... FL Atlas V2 (C++)..................................................Savegame Editor............................................FL Atlas-Launcher

    306270.png309587.png305505.png

    Edited once, last by Aldenmar Odin ().

  • The strange part is that i am currently running 16:9 3840x2160. Therefore the same 4k that you run.

    For reasons I can not explain 0.025000 does not work, only 0.020000 does.

    However, I am pretty sure that when I lowered the setting from 0.035000 to 0.025000 it used to work.

    Dunno what is different now.

    signew.jpg


    cfmoddblogo.png5904.png5904.png
    http://www.moddb.com/scripts/topsite.php?ts=4766


    Only dead fish swim with the stream.
    Don't discuss with idiots. They only drag you down to their level and then beat you with experience there.


    This is ten percent luck,
    Twenty percent skill,
    Fifteen percent concentrated power of will,
    Five percent pleasure,
    Fifty percent pain,
    And a hundred percent reason to remember the name!

  • I made some tests with my different screens (sorry to my wife for wasting so much time at evenings, anyway).


    Anyway the fixed_height factor appears to be a relative height factor, not a fixed point size.

    In practice, it seems to scale with the screen height, roughly like this:


    font pixel height = fixed_height * screen height


    That explains why the same fixed_height value produces much larger text at higher resolutions.


    Example with fixed_height = 0.03:


    at 1920x1080: 0.03 * 1080 = 32 px

    at 2560x1440: 0.03 * 1440 = 43 px

    at 3840x2160 (4K): 0.03 * 2160 = 65 px

    So on 4K, the text becomes much larger unless fixed_height is reduced.


    A practical conversion formula is:


    new_fixed_height = old_fixed_height * (old_screen_height / new_screen_height)


    Example:


    from 1080p to 4K:

    0.03 * (1080 / 2160) = 0.015

    from 1440p to 4K:

    0.03 * (1440 / 2160) = 0.02

    This is why smaller values such as 0.02 to 0.025 are needed at 4K: the font system is effectively scaling text size by vertical resolution, so higher resolutions require a lower fixed_height value to keep the text visually similar.


    So now @OP to your issue: I guess for some reason your font scales globally larger in freelancer in general, maybe you changed some system settings in the past regarding font size or maybe just a freelancer settings in the ini somewhere? Cant tell at this time.

    widget-animated-flatlas-v2-progress.gif

    ...................... FL Atlas V2 (C++)..................................................Savegame Editor............................................FL Atlas-Launcher

    306270.png309587.png305505.png

  • What about using 0 as fixed_height. As far as i could find out:


    Value Meaning

    > 0 The font mapper transforms this value into device units and matches it against the cell height of the available fonts.

    0 The font mapper uses a default height value when it searches for a match.

    < 0 The font mapper transforms this value into device units and matches its absolute value against the character height of the available fonts.


    Probable the font height is then calculated by round (fixed_height * screen height). While when its bigger than 0 it defined more the cell height instead of the actual font size. As the fonts.ini contains several entries for different sizes i think its more like a visual adjustment based where the font is used and how big it shall appear (button, header, subheader, list etc.). But a value of 0.025 or 0.02 should be the same size when the same resolution is used. Could test this later with 0 and < 0 values and compare how that looks and how it changes....

    signature.png

  • with 0 the text appears to be really small ... I would not recommend that


    pasted-from-clipboard.png

    (16:9 - full HD test)

    widget-animated-flatlas-v2-progress.gif

    ...................... FL Atlas V2 (C++)..................................................Savegame Editor............................................FL Atlas-Launcher

    306270.png309587.png305505.png

    Edited once, last by Aldenmar Odin ().

  • I am

    Getting back to this topic since I am still searching for a solution that is generally working.

    I simply have the feeling that fixed (small) font_heigth settings will simply produce negative results for players which still are on 1080p .

    The question would be how to resolve this issue, since we obviously should not expect all players to edit ini files.

    signew.jpg


    cfmoddblogo.png5904.png5904.png
    http://www.moddb.com/scripts/topsite.php?ts=4766


    Only dead fish swim with the stream.
    Don't discuss with idiots. They only drag you down to their level and then beat you with experience there.


    This is ten percent luck,
    Twenty percent skill,
    Fifteen percent concentrated power of will,
    Five percent pleasure,
    Fifty percent pain,
    And a hundred percent reason to remember the name!

  • Maybe a auto detection with the launcher … if resolution higher than full hd then apply Fix.


    having a launcher is such a powerful tool, just use it … the e possibilities are endless

    widget-animated-flatlas-v2-progress.gif

    ...................... FL Atlas V2 (C++)..................................................Savegame Editor............................................FL Atlas-Launcher

    306270.png309587.png305505.png