Smart Systems for Home

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

Change Hunger Rate on Vintage Story Server

· 5 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 explains how to adjust the hunger rate on your Vintage Story server, which controls how quickly your character's hunger bar depletes. Changing this value can make survival easier, harder, or just right for your playstyle. You'll need access to your server's configuration files, either through a hosting control panel or directly on the machine running the server.

What You'll Need

  • Access to your server's file system (via FTP, a file manager in your hosting panel, or local files if you run the server yourself).
  • A text editor like Notepad++ or VS Code (or any plain text editor).
  • The ability to restart your server after making changes.

Step-by-Step

  1. Locate the server configuration file. The file you need is named serverconfig.json. It is usually in the root folder of your Vintage Story server directory. If you use a hosting panel, look for a "File Manager" or "Config Files" section.
  2. Back up the file. Before editing, copy serverconfig.json to a safe location (e.g., rename it to serverconfig_backup.json). This ensures you can restore the original if something goes wrong.
  3. Open the file in a text editor. Right-click the file and choose "Open with" and select your text editor. If the file is large, use a search function (Ctrl+F) to find the relevant section.
  4. Find the hunger rate setting. Look for a key named hungerRate. It is usually located within the "Gameplay" or "WorldConfig" section of the JSON. If you don't see it, it may not exist yet—you can add it manually (see Tips).
  5. Change the value. The default value is 1.0 (normal rate). Lower values (e.g., 0.5) make hunger deplete slower, while higher values (e.g., 2.0) make it deplete faster. Set it to your desired number. Make sure to keep the value as a number (no quotes around it) and use a decimal point, not a comma.
  6. Save the file. After editing, save the file (Ctrl+S). Ensure the file remains valid JSON—no trailing commas or missing brackets.
  7. Restart the server. For changes to take effect, you must restart your Vintage Story server. This can be done via your hosting panel's "Restart" button, or by stopping and starting the server process manually.
  8. Verify the change. Log into your server and check your hunger bar. If you set a lower rate, you should notice it depleting slower. If you set a higher rate, it will deplete faster.

Common Mistakes

  • Editing the wrong file. There may be multiple JSON files in the server folder (like worldconfig.json). Make sure you edit serverconfig.json specifically.
  • Using a comma instead of a decimal. JSON requires a dot as the decimal separator (e.g., 0.75, not 0,75).
  • Forgetting to restart the server. Changes won't apply until the server is restarted. Simply reloading the world may not be enough.
  • Placing the value in the wrong section. If you add the key manually, ensure it's inside the correct object (e.g., within "Gameplay"), not at the top level or inside a different block.

Tips

  • If the key doesn't exist, add it. In the serverconfig.json, find the "Gameplay" section (it may be empty or contain other settings). Add a line like "hungerRate": 0.8, (adjust the number). Make sure to follow the JSON syntax—commas between items, no trailing comma after the last item.
  • Test in single-player first. If you're unsure about the value, test it in a single-player world by editing the serverconfig.json in your single-player save folder (usually in %AppData%/VintagestoryData/Saves/). This lets you see the effect without affecting your multiplayer server.
  • Use a sensible range. Extremely low values (like 0.01) may make hunger practically irrelevant, while values above 3 can make the game frustrating. Start with a small change (e.g., 0.8 or 1.2) and adjust based on your experience.
  • Keep a backup. Always keep a backup of your original config. If you mess up, you can restore it quickly.

Troubleshooting

If the change doesn't seem to work, try the following:

  • Check if the server actually restarted. Sometimes the restart button in a control panel may not fully stop the process. Verify by looking at the server console or checking the process list.
  • Confirm the file was saved correctly. Open the file again and check that the value is still there and properly formatted. A missing comma or a misspelled key can cause the game to ignore it.
  • Look for errors in the server log. If the server fails to start, the log will show a JSON parse error. Read the last few lines of the log to see if there's an issue with the config file.
  • Ensure you're editing the right server. If you run multiple servers, you might have edited the config for a different one. Double-check the file path.
  • Try a different value. If you set a very low value and see no change, try a more extreme value (like 0.1) to see if the setting is being read at all. If it still doesn't change, the key might be in the wrong place.

Frequently Asked Questions

Does changing hungerRate affect food saturation?

No, hungerRate only affects how quickly the hunger bar depletes. Food saturation (the hidden stat that delays hunger loss) is controlled separately and is not impacted by this setting.

Can I set hungerRate to 0 to disable hunger entirely?

Yes, setting it to 0 will stop hunger from decreasing. However, some players report that eating food may still restore hunger, but it won't drop. This effectively disables the hunger mechanic.

Will this setting affect existing worlds?

Yes, the change applies immediately to all players on the server after restart, regardless of when the world was created. It's a global server setting, not a per-world value.

Is there a way to change hunger rate without restarting the server?

No, the server reads the config only at startup. You must restart the server for changes to take effect. There is no in-game command to alter this setting.

What is the default hunger rate?

The default value is 1.0, which represents the standard hunger depletion rate as designed by the game developers.

Can I use a decimal like 0.75?

Yes, you can use any positive decimal number. The game accepts fractions, so 0.75 will make hunger deplete 25% slower than normal.