Skip to content

Use Serverlog to print on Server side#51

Merged
StyledStrike merged 2 commits into
StyledStrike:masterfrom
BDJslime-UnaverageJoe:master
Feb 12, 2026
Merged

Use Serverlog to print on Server side#51
StyledStrike merged 2 commits into
StyledStrike:masterfrom
BDJslime-UnaverageJoe:master

Conversation

@BDJslime-UnaverageJoe

Copy link
Copy Markdown
Contributor

Due to game/engine(?) limitations, methods of printing to console other than ServerLog() such as print() or msg() will not work through some remote consoles from server panels AKA AMP, Pterodactyl, etc.

This primarily fixes any chat that is sent using Custom Chat, normal chat and say cmd are not affected by this issue.

This has been observed and tested on a Linux AMP Docker instance, other panels may use different methods of reading console which this may or may not fix.

@wrefgtzweve

wrefgtzweve commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

this would hide messages in console when displaying logs in console is turned off (sv_logecho) which is common. this wouldn't be good.
Pterodactyl shows print and msg fine, this sounds more like a issue with AMP not displaying basic prints.

@BDJslime-UnaverageJoe

BDJslime-UnaverageJoe commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

Unfortunately, there are too many variables to know which server panels are potentially impacted by this issue, nor can I test all of them.
An ideal solution is to only use the base chatting system from GMod itself with Player:Say(), and from my initial look the custom system's main purpose is for DMs? All of the rich formatting is only on the client side which accepts messages from net and default if I'm not mistaken.

@BDJslime-UnaverageJoe

Copy link
Copy Markdown
Contributor Author

Actually, no. The custom system has an increased character limit for use with rich formatting so that wouldn't work.

@wrefgtzweve

Copy link
Copy Markdown
Contributor

i think it should just both serverlog and msgc

@StyledStrike StyledStrike added the enhancement New feature or request label Jan 15, 2026
@StyledStrike

Copy link
Copy Markdown
Owner

Would a convar to set the logging method serverside be a good compromise?

@BDJslime-UnaverageJoe

Copy link
Copy Markdown
Contributor Author

I would not know if that would result in duplicate messages but otherwise I have no restrictions.

@wrefgtzweve

Copy link
Copy Markdown
Contributor

Would a convar to set the logging method serverside be a good compromise?

i'd ideally have both serverlog and msgc
if that'd be an option yeah

@BDJslime-UnaverageJoe

Copy link
Copy Markdown
Contributor Author

Any updates on this?

@StyledStrike StyledStrike merged commit 6b0ff0f into StyledStrike:master Feb 12, 2026
1 check passed
@StyledStrike

Copy link
Copy Markdown
Owner

The convar was renamed to custom_chat_server_log_method, and it was made server-only since, well, it's only really used server-side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants