Download your chosen custom map file or obtain the URL from mapstr.gg
If using a downloaded file:
Locate your Rust server installation directory
Place the custom map file (.map) directly in the server folder
Configuring Your Server to Use the Custom Map
Open your server's startup script (usually a .bat or .sh file)
Find the line that sets the "server.level" parameter
Replace the existing value with "Custom"
Add a new parameter: +server.levelurl "YourMapFileOrURL"
Optionally adjust or remove other parameters (e.g., server.worldsize, server.seed)
Important Note:
When using a custom map, the parameters server.worldsize and server.seed can either be left in the configuration or removed. The custom map will override these settings if they are defined within the map file itself.
Example Configuration
@echo off
:start
RustDedicated.exe -batchmode ^
+server.port 28015 ^
+server.level "Custom" ^
+server.levelurl "YourMapFileOrURL" ^
+server.maxplayers 150 ^
+server.hostname "My Custom Map Server" ^
+server.description "A server running a custom map" ^
+server.identity "custom_map_server"
goto start
Note: Replace "YourMapFileOrURL" with either the filename of your local map (e.g., "file://MyCustomMap.map") or the URL provided by mapstr.gg.
If you want to include the world size and seed parameters, you can add them like this:
+server.worldsize 4500 ^
+server.seed 12345 ^
Include these lines in your configuration if you want to specify or override the world size and seed.
Testing Your Custom Map
Start your Rust server using the modified startup script
Monitor the server console for any error messages related to the map loading
Connect to your server and verify that the custom map has loaded correctly
Troubleshooting
If the map fails to load, double-check the file path or URL in your configuration
Ensure the map file is not corrupted by re-downloading if necessary
Verify that your server has enough RAM and storage to handle the custom map
Check the Rust server logs for specific error messages related to map loading
Important Note:
Using custom maps can significantly impact server performance and player experience. Always test thoroughly before deploying on a live server, and be prepared to make adjustments as needed.