Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set some Float console variables with Custom CVars #27

Open
cest-la-v opened this issue Sep 16, 2024 · 0 comments
Open

Unable to set some Float console variables with Custom CVars #27

cest-la-v opened this issue Sep 16, 2024 · 0 comments

Comments

@cest-la-v
Copy link

cest-la-v commented Sep 16, 2024

Hi, I'm having trouble trying to set Float console variables with Custom CVars.

Example settings:

[Custom CVars]
; Add Unreal Engine console variables below to be set on startup.
; Format is "CVar = Value". Below is an example.
; r.Tonemapper.GrainQuantization = 0
r.LandscapeLODDistributionScale=5.0 ; some comments
r.LandscapeLOD0DistributionScale=5
r.LightMaxDrawDistanceScale=10.0

Result:
2024-09-16_18-39-52
2024-09-16_18-38-25

All these three variables end up with updated LastSetBy but not with the correct values as expected.

Here're the description of these variables:

[
    "r.LandscapeLOD0DistributionScale": {
        "Flags": [
            "Scalability"
        ],
        "Helptext": "Multiplier for the landscape LOD0DistributionSetting property",
        "type": "Float",
        "value": 1.0
    },
    "r.LandscapeLODDistributionScale": {
        "Flags": [
            "Scalability"
        ],
        "Helptext": "Multiplier for the landscape LODDistributionSetting property",
        "type": "Float",
        "value": 1.0
    },
    "r.LightMaxDrawDistanceScale": {
        "Flags": [
            "RenderThreadSafe",
            "Scalability",
            "SetByScalability"
        ],
        "Helptext": "Scale applied to the MaxDrawDistance of lights.  Useful for fading out local lights more aggressively on some platforms.",
        "type": "Float",
        "value": 1.0
    }
]

I also tried with Int32 variables and they worked, so I suppose it just won't work on all Float variables or some certain variables?

@cest-la-v cest-la-v changed the title Unable to set Float console variables with Custom CVars Unable to set some Float console variables with Custom CVars Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant