Project Zomboid

Project Zomboid

Aklys Jan 4, 2022 @ 3:32am
Dedicated Server messaging
Is there a way to send messages to different channels instead of the open broadcast via the dedicated server at command line?

I know you can do the servermsg but would be nicer to be able to do a whisper as well.
< >
Showing 1-7 of 7 comments
Sora Jan 4, 2022 @ 3:36am 
I don't think anything other than a broadcast is possible, and currently if a player closes the chat, the broadcast wont even show up, our restart script is pretty much ignored because of that.
jaxjags2100 Jan 4, 2022 @ 5:16am 
Honestly /servermsg isn't working on my server either. Not sure why
jaxjags2100 Jan 4, 2022 @ 5:44am 
Yep, I used /servermsg with in-game chat and it didn't work. It showed up for me, but no one else on my server could see it.
Last edited by jaxjags2100; Jan 4, 2022 @ 5:45am
jaxjags2100 Jan 4, 2022 @ 8:46am 
Ok update on this. Apparently if a player has the chat box open, the /servermsg will show up, but if they have the chat box removed from their UI then the /servermsg will not show up. Seems like that should always be on regardless of if the player has their chat box open right?
Sora Jan 4, 2022 @ 9:23am 
Originally posted by EnigmaGrey:
Should show up for 10 or so second as huge red letters in the centre of the screen.

You'd have to write a Lua script for something that connects to chat. Or use a discord bot.

if you have chat open. sure it works.. My girlfriend closes her chat, and even using server console to do it, doesn't show up on her game. chat HAS to be open. Which kinda ruins the "broadcast" portion of the command.

We use a socket, and a shell script with cron to do it. It basically writes to the socket, which is treated as if a person typed into the console directly. Regardless, if we do a notice ingame using "/servermsg restarting in 10minutes" or by console with "servermsg restarting in 10minutes" it doesn't show up for anyone who has closed chat.

I'd also like to suggest just a simple message in chatbox option e.g. "msg", instead of placing red letters on the screen, for simple automated announcements, without disturbing players.
Last edited by Sora; Jan 4, 2022 @ 9:24am
Aklys Jan 4, 2022 @ 1:20pm 
I was more aiming to talk to individuals from the dedicated server console rather than talk to everyone.
lol ez Jan 11, 2022 @ 3:15am 
is it possible to color the font for /servermsg ?
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Jan 4, 2022 @ 3:32am
Posts: 7