Skip to content

Conversation

@A1steaksa
Copy link
Collaborator

This change moves extension loading to be immediate rather than waiting until tests are running.
Because extensions AddCSLuaFile() themselves, clients connecting before the server tests run wouldn't download the extensions previously. Now, they do.

It also adds a cl_ and sv_ prefix to logs to further differentiate the two realms for cases where text color doesn't work and for color-blind accessibility.

@A1steaksa A1steaksa requested a review from sarahsturgeon May 1, 2025 15:47
Copy link
Member

@sarahsturgeon sarahsturgeon left a comment

Choose a reason for hiding this comment

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

Will test locally, but also a discussion about prefixed logs

Comment on lines +18 to +24
if SERVER then
prefixText = "sv_" .. prefixText
prefixColor = colors.server
else
prefixText = "cl_" .. prefixText
prefixColor = colors.client
end
Copy link
Member

Choose a reason for hiding this comment

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

I don't love this.

Could we maybe only prefix them if the clientside convar is enabled, or similar? Or, perhaps, only prefix the client tests?

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