Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Set a Welcome Message MOTD on a Vintage Story Server

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to set a welcome message (MOTD, or Message of the Day) on your Vintage Story server. You'll edit a configuration file to display a custom text block that players see when they join or log in. No mods are required—just access to your server's files.

What You'll Need

  • Access to the server's file system (via FTP, file manager, or local installation).
  • A text editor (Notepad, VS Code, or any plain-text editor).
  • Basic understanding of JSON syntax (optional but helpful).

Step-by-Step

  1. Locate the server configuration file. The file is named serverconfig.json and is typically in the root directory of your Vintage Story server installation. If you're using a hosting panel, look for a "Config Files" section.
  2. Open the file in a text editor. Make a backup copy first (e.g., serverconfig.json.bak) so you can revert if needed.
  3. Find the MOTD line. Use your editor's search function (Ctrl+F or Cmd+F) to locate the key "MOTD". It will look something like "MOTD": "Welcome to my server!".
  4. Edit the message. Replace the text between the quotes with your desired welcome message. Keep it on one line. To include line breaks, use the escape sequence \n (backslash + n). For example: "MOTD": "Welcome!\nPlease read the rules."
  5. Save the file. Ensure you save as UTF-8 encoding (most editors do this by default).
  6. Restart the server. For the change to take effect, you must restart the server process. If you're using a control panel, use the restart button. If it's a dedicated machine, stop and start the server again.
  7. Verify the message. Join the server as a player. You should see your MOTD in the chat or as a welcome screen, depending on the server version. If you don't see it, check the server console for errors (see Troubleshooting).

Common Mistakes

  • Forgetting to restart the server. The MOTD is read at startup, so a restart is mandatory.
  • Invalid JSON. If you use a double quote inside the message without escaping it (e.g., "MOTD": "Say "hi""), the JSON becomes invalid. Escape internal quotes with a backslash: "Say \"hi\"".
  • Using single quotes for the string. JSON requires double quotes. Single quotes will cause a parse error.
  • Editing the wrong file. Some servers have multiple config files (e.g., serverconfig.json vs. serverconfig.json.bak). Make sure you edit the active one.
  • Line breaks not working. If you press Enter to create a new line in the file, it may break the JSON. Always use \n for line breaks.

Tips

  • Keep it concise. Players appreciate a short, friendly message. Long walls of text can be off-putting.
  • Include server rules or a website link. Use the MOTD to point players to your rules or Discord.
  • Use color codes. Vintage Story supports color codes in chat messages. You can use <color=#FF0000>Red text</color> or the built-in names like <color=orange>. Test them on your server, as not all versions support them in MOTD.
  • Test with a second account. If you're already logged in, you might not see the MOTD again. Use a second client to test the first-time experience.
  • Backup regularly. Before making any changes, copy the config file. This makes it easy to revert if something goes wrong.

Troubleshooting

  • The MOTD doesn't appear. First, confirm you restarted the server. If you did, check the server console for errors like "Invalid JSON" or "Failed to parse serverconfig.json". If there's an error, revert to your backup and try again.
  • The server fails to start after editing. This almost always means the JSON is malformed. Open the file and look for missing commas, unescaped quotes, or extra brackets. Use an online JSON validator to check the file.
  • The message shows but with weird characters. Ensure the file is saved as UTF-8 without BOM. Some editors add a BOM which can cause display issues.
  • Line breaks show as "\n" literally. This happens if you used a double backslash \\n or if the file was saved with escaped backslashes. Use a single backslash: \n.
  • Players see the old message. Clear your client's cache or reconnect. Sometimes the client caches the MOTD. Also, ensure you're editing the correct file (there might be a separate file for the server's world).

Frequently Asked Questions

Can I use HTML in the MOTD?

No, HTML is not parsed. Only plain text and the \n escape for line breaks are supported. Some color tags may work, but they are not HTML.

How do I add a newline in the MOTD?

Use the two-character sequence backslash and n (\n) inside the JSON string. For example: "MOTD": "Line1\nLine2".

Can I set a different MOTD for different players?

No, the MOTD is global. All players see the same message. For per-player messages, you'd need a mod.

Does the MOTD show every time a player joins or only on first login?

It shows each time a player joins the server (connects), not just the first time. It appears in the chat area.

Is there a character limit for the MOTD?

There's no strict limit, but very long messages may be truncated by the client or cause lag. Keep it under a few hundred characters for best results.

What if I don't have a serverconfig.json file?

If you're running a dedicated server, the file should be generated on first start. If it's missing, check the server's working directory. If you're using a hosting service, contact support to locate it.