Write to client's console, server-side-only mod ?
RedSword
Join Date: 2006-12-07 Member: 58947Members, Reinforced - Shadow, WC 2013 - Supporter
Hi,
I'm a bit surprised, there doesn't seem to be anyway to server-sidedly write to a client's console. Taking a look at NetworkMessages.lua seems to prove it (no network message seems to be related to a console).
1) Am I right ?
2) Why ? Isn't that a nice, basic feature to have to send non-important information ? i.e. when something doesn't fit on screen (chat); this would be a nice, non-client sided (hence no download) way to give information. I'm mainly thinking about admins wanting to retrieve a certain information without spamming chat (which can easily be done, and it is a bit annoying as NS2 chat (default feed) takes a non-negligible space, and seems to be used for a lmost everything). That would also be easy to code I believe (reading at the code).
Thank you,
Red
I'm a bit surprised, there doesn't seem to be anyway to server-sidedly write to a client's console. Taking a look at NetworkMessages.lua seems to prove it (no network message seems to be related to a console).
1) Am I right ?
2) Why ? Isn't that a nice, basic feature to have to send non-important information ? i.e. when something doesn't fit on screen (chat); this would be a nice, non-client sided (hence no download) way to give information. I'm mainly thinking about admins wanting to retrieve a certain information without spamming chat (which can easily be done, and it is a bit annoying as NS2 chat (default feed) takes a non-negligible space, and seems to be used for a lmost everything). That would also be easy to code I believe (reading at the code).
Thank you,
Red
Comments
Also I know that Shine seems to allow it; but I'm looking for a standalone server-only way to do it.
For longer messages you might have to split them up like ServerAdminPrint does it.
BTW shine also overrides ServerAdminPrint to remove that annoying Shared.Message: https://github.com/Person8880/Shine/blob/master/lua/shine/core/server/logging.lua#L291. So you can use it directly at servers with shine or just add the shine version to your own mod.