-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.toml
More file actions
46 lines (37 loc) · 2.35 KB
/
Copy pathexample.toml
File metadata and controls
46 lines (37 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Nice name of the config
title = "My Cool Server"
# Server options
[server]
gamemode = "sandbox" # The gamemode (if not specified, the first gamemode found in the config will be used, or "sandbox" if there are none)
map = "gm_flatgrass" # The map (useful for gamemodes that have a starting map or campaign maps; if not specified, a map will be chosen randomly)
# List of available gamemodes
# This is merged with all gamemodes added from addons so including them here is not necessary (gamemodes, addons[i].gamemodes)
# This can be used to include maps the server should use but aren't from addons (this is not necessary if the gamemode is set in server options)
gamemodes = [
"sandbox",
"terrortown",
]
# List of available maps
# This is merged with all maps added from addons so including them here is not necessary (maps, addons[i].maps)
# This can be used to include maps the server should use but aren't from addons (this is not necessary if the map is set in server options)
maps = [
"gm_construct",
"gm_flatgrass",
]
# An addon via Git
[[addons]]
folder = "wire" # The folder the addon will be placed in from garrysmod/addons (supports multiple folder paths: foo/bar/baz; . and .. cannot be used)
url = "https://github.com/Buildstruct/wire.git"
branch = "master" # Only this branch will be cloned (if not specified, all branches will be cloned and the default will be selected)
# An addon via Steam Workshop
[[addons]]
id = 105982362 # gm_bigcity
[[addons]]
id = 123277559 # Nyan Gun
download = true # Marks this workshop item to be auto-downloaded by clients (see below for when this should be used)
# Each addon entry supports a `gamemodes` and `maps` field that will be auto-filled when the config is installed/updated on the server
# (it is generally better to not fill these in yourself incase an addon changes the name of the gamemode or map in an update)
# Workshop addons that add gamemodes or maps do not need `download = true` as the server will mark the currently active gamemode and map to be auto-downloaded by clients
# (if it set then all clients must download the gamemode/map even if the server isn't on it)
# (note: gamemodes that pack their own maps will require all maps to also be downloaded)
# Git addons will only have assets auto-downloaded by clients by using `resource.AddWorkshop("<workshopid>")` or if its a gamemode by specifying a `workshopid` in the .txt