Skip to content

Server configuration

Smyler edited this page Apr 14, 2021 · 1 revision

Server configuration

Installation

Add Terramap to your server's mod folder and restart the server to generate the config file. Players can connect whether or not they have Terramap installed on their client. They will still need it if they want to look at the map.

Configuration

You can edit config/terramap_user_styles.json to add your own map styles to your server.

The server configuration is in the Server section of theconfig/terramap.cfg file and has a few entries:

synchronize_players

you need to set this to true if you want all players to be visible on the map, if it is set to false, only players in the range of the server's render distance will be displayed

sync_spectators

Set it to false if you only want non spectator players to appear on the map no matter the distance

sync_interval

This is the time interval between each time the map updates will be sent to clients. Increase it if you suspect Terramap is lagging your server (not likely, it's pretty light as long as you don't have ~50 players all looking at the map at the same time). It's in ticks.

sync_hearthbeet_timeout

You probably don't need to touch that, read the comment and make sure you understand what it does before changing it.

force_client_tp_cmd

You can set this to true if you want clients to use a specific command when teleporting from the map. You then need to change the tpll_command config value to the command you want. You can use {longitude}, {latitude}, {x} and {z} in the said command, they will be replaced by the corresponding value when executed.

players_opt_in_to_display_default

Set this to false if you want players to need to do /terrashow show to be visible on the map.