-
-
Couldn't load subscription status.
- Fork 12
Load Extensions Early and Differentiate Client/Server Logs #79
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
base: main
Are you sure you want to change the base?
Conversation
…ient Always send clients all of the testing framework so clientside tests can be enabled/disabled at will Run clientside tests after serverside tests finish
Load extensions immediately instead of waiting for the tests to run so that clients receive them in time
…est logs in situations where the text color isn't present
…FC-Servers/GLuaTest into feature_improve-client-support
There was a problem hiding this 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
| if SERVER then | ||
| prefixText = "sv_" .. prefixText | ||
| prefixColor = colors.server | ||
| else | ||
| prefixText = "cl_" .. prefixText | ||
| prefixColor = colors.client | ||
| end |
There was a problem hiding this comment.
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?
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_andsv_prefix to logs to further differentiate the two realms for cases where text color doesn't work and for color-blind accessibility.