Skip to content

Remove Outdated LDR KVs from Light Entities - #377

Open
crazy-hair wants to merge 4 commits into
StrataSource:masterfrom
crazy-hair:master
Open

crazy-hair wants to merge 4 commits into
StrataSource:masterfrom
crazy-hair:master

Conversation

@crazy-hair

Copy link
Copy Markdown

Removes _light(color255) and _lightscaleHDR(float) from the FGD since Strata forces HDR on during compile.

@crazy-hair crazy-hair changed the title Remove Outdated HDR KVs from Light Entities Remove Outdated LDR KVs from Light Entities Nov 21, 2026

@Laveig Laveig left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brightness scale is used by static lighting, please leave it because some people still use it

@crazy-hair

crazy-hair commented Nov 21, 2026 •

Copy link
Copy Markdown
Author

Brightness scale does not affect dynamic lighting, without any disclosure, leading to confusion about why a light may be too bright or not bright enough
Modifying the brightness KV directly isn't that hard, and if you really have to, you can still use the scale KV with smartedit disabled

@TeamSpen210

Copy link
Copy Markdown
Member

Removing these by themselves isn't a good idea - lights have complicated fallback situations between the LDR/HDR brightness and the scale, and people will vary as to which keyvalues they set. Removing them will lead to a lot of maps where the light colour is configured in an invalid keyvalue, so you'd have to manually fix with smartedit off.

@crazy-hair

crazy-hair commented Nov 22, 2026 •

Copy link
Copy Markdown
Author

It would require some non-smartedit corrections for existing maps, but it would greatly improve new maps going forward. I've seen many people confused by the two separate brightness KVs, and the fact that the brightness scale doesn't work with clustered can really only cause confusion (and the fact that it is redundant now that LDR rendering has been removed completely). Since the KVs would still be retained on existing lights, it wouldn't outright break any existing maps, just require some shuffling around of KVs if you want to tweak it, which would only require you to copy the LDR value into the HDR value. As far as I can tell, removing the LDR brightness wouldn't have any effect on new lights at all, since if the HDR brightness KV has anything other than -1 it completely overrides the LDR key.

@TeamSpen210

Copy link
Copy Markdown
Member

Yep, but many people (myself for example) would just put their colours solely in the LDR section, meaning all your values are confusingly readonly suddenly. Since it's such a common entity, we'd need something better for migration.

@crazy-hair

Copy link
Copy Markdown
Author

I'd personally argue that since Strata's still very early in beta, and the fact that most people aren't gonna be editing their previous maps that much after they're published, a change like this would really only require people to rework their current map, and then use the new format going forward, it wouldn't be that big of an issue. But I guess having some sort of migratory feature in hammer that like, automatically copies the LDR value into the HDR KV would probably make that switch a lot easier, if that is possible.

@TeamSpen210

Copy link
Copy Markdown
Member

You also have people copying their P2 maps into P2CE, which is definitely something supported.

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

Successfully merging this pull request may close these issues.

3 participants