-
Notifications
You must be signed in to change notification settings - Fork 65
/
server-setup-config.yaml
239 lines (201 loc) · 9.51 KB
/
server-setup-config.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# Version of the specs, only for internal usage if this format should ever change drastically
_specver: 2
# modpack related settings, changes the supposed to change the visual appearance of the launcher
modpack:
# Name of the mod pack, that is displayed in various places where it fits
name: Example Modpack
# Description
description: This is a awesome modpack about making examples.
# settings regarding the installation of the modpack
install:
# Curse Forge requires an API Token to access the API and to allow for downloading files.
# This field supports using an Environment Variable like ${CURSE_FORGE_API_KEY} to decrease the risk of sharing the API-Key by mistake
# To Modpack authors: You can enter your own API-Key here, but do that on your own risk.
curseForgeApiKey: "${CURSE_FORGE_API_KEY}"
# version of minecraft, needs the exact version
mcVersion: 1.17.1
# exact version of forge or fabric that is supposed to be used
# if this value is a null value so ( ~, null, or "" ) then the version from the mod pack is going to be used
loaderVersion: 37.0.95
# If a custom installer is supposed to used, specify the url here: (Otherwise put "", ~ or null here)
# supports variables: {{@loaderversion@}} and {{@mcversion@}}
# For forge: "https://files.minecraftforge.net/maven/net/minecraftforge/forge/{{@mcversion@}}-{{@loaderversion@}}/forge-{{@mcversion@}}-{{@loaderversion@}}-installer.jar"
# For Fabric: "https://maven.fabricmc.net/net/fabricmc/fabric-installer/{{@loaderversion@}}/fabric-installer-{{@loaderversion@}}.jar"
installerUrl: "https://files.minecraftforge.net/maven/net/minecraftforge/forge/{{@mcversion@}}-{{@loaderversion@}}/forge-{{@mcversion@}}-{{@loaderversion@}}-installer.jar"
# Installer Arguments
# These Arguments have to be passed to the installer
#
# For Fabric:
# installerArguments:
# - "-downloadMinecraft"
# - "server"
#
# For Forge:
# installerArguments:
# - "--installServer"
installerArguments:
- "--installServer"
# Link to where the file where the modpack can be distributed
# This supports loading from local files as well for most pack types if there is file://{PathToFile} in the beginning
# Note: file://{PathToFile} does not need the full path, can be a relative path.
# E.g: modpackUrl: file://../modpacks/All+the+Mods+7-0.0.21.zip
modpackUrl: https://media.forgecdn.net/files/3491/186/All+the+Mods+7-0.0.21.zip
# This is used to specify in which format the modpack is distributed, the server launcher has to handle each individually if their format differs
# current supported formats:
# - curseforge or curse
# - curseid
# - zip or zipfile
modpackFormat: curse
# Settings which are specific to the format used, might not be needed in some casese
formatSpecific:
# optional paramenter used for curse to specify a whole project to ignore (mostly if it is client side only)
ignoreProject:
- 263420
- 317780
- 232131
- 231275
- 367706
- 261725
- 243863
- 305373
- 325492
- 296468
- 308240
- 362791
- 291788
- 326950
- 237701
- 391382
- 358191
- 271740
- 428199
- 431430
# The base path where the server should be installed to, ~ for current path
baseInstallPath: setup/
# a list of files which are supposed to be ignored when installing it from the client files
# this can either use regex or glob {default glob: https://docs.oracle.com/javase/8/docs/api/java/nio/file/FileSystem.html#getPathMatcher-java.lang.String-}
# specify with regex:.... or glob:.... if you want to force a matching type
ignoreFiles:
- mods/Overrides.txt
- mods/optifine*.jar
- mods/optiforge*.jar
- resources/**
- packmenu/**
- openloader/resources/**
# often a server needs more files, which are nearly useless on the client, such as tickprofiler
# This is a list of files, each ' - ' is a new file:
# url is the directlink to the file, destination is the path to where the file should be copied to
additionalFiles: ~
#- url: https://media.forgecdn.net/files/2844/278/restrictedportals-1.15-1.0.jar
# destination: mods/restrictedportals-1.15-1.0.jar
#- url: https://media.forgecdn.net/files/2874/966/Morpheus-1.15.2-4.2.46.jar
# destination: mods/Morpheus-1.15.2-4.2.46.jar
#- url: https://media.forgecdn.net/files/2876/89/spark-forge.jar
# destination: mods/spark-forge.jar
# For often there are config which the user wants to change, here is the place to put the local path to configs, jars or whatever
# You can copy files or folders
localFiles:
- from: setup/modpack-download.zip
to: setup/test/modpack-download-copied.zip
- from: setup/AOF 2/.minecraft
to: setup/.
# This makes the program check the folder for whether it is supposed to use the
checkFolder: true
# Whether to install the Loader (Forge or Fabric) or not, should always be true unless you only want to install the pack
installLoader: true
# Sponge bootstrapper jar URL
# Only needed if you have spongefix enabled
spongeBootstrapper: https://github.com/simon816/SpongeBootstrap/releases/download/v0.7.1/SpongeBootstrap-0.7.1.jar
# Time in seconds before the connection attempt to any webservice like forge/curseforge times out
# Only increase this timer if you have problems
connectTimeout: 30
# Time in seconds before the read attempt to any webservice like forge/curseforge times out
# Only increase this timer if you have problems
readTimeout: 30
# settings regarding the launching of the pack
launch:
# applies the launch wrapper to fix sponge for a few mods
spongefix: false
# Use a RAMDisk for the world folder
# case-sensitive; use only lowercase `true` or `false`
# NOTE: The server must have run once fully before switching to `true`!
ramDisk: false
# checks with the help of a few unrelated server whether the server is online
checkOffline: true
# These servers are going to be checked:
checkUrls:
- https://github.com/
- https://www.curseforge.com/
- https://cursemeta.dries007.net/
# specifies the max amount of ram the server is supposed to launch with
maxRam: 5G
# specifies the min amount of ram the server is supposed to launch with
minRam: 2G
# specifies whether the server is supposed to auto restart after crash
autoRestart: true
# after a given amount of crashes in a given time the server will stop auto restarting
crashLimit: 10
# Time a crash should be still accounted for in the {crashLimit}
# syntax is either [number]h or [number]min or [number]s
crashTimer: 60min
# Arguments that need to go before the 'java' argument, something like linux niceness
# This is only a string, not a list.
preJavaArgs: ~
# Start File Name, variables: {{@loaderversion@}} and {{@mcversion@}}
# This has to be the name the installer spits out
# For Forge 1.12-: "forge-{{@mcversion@}}-{{@loaderversion@}}-universal.jar"
# For Forge 1.13+: "forge-{{@mcversion@}}-{{@loaderversion@}}.jar"
# For Fabric: "fabric-server-launch.jar"
startFile: "forge-{{@mcversion@}}-{{@loaderversion@}}.jar"
# This is the command how the server is supposed to be started
# All arguments must be separate entries, including options and their values.
# For example, "--fml.modLists pathToModListFile" should be:
# - "--fml.modLists"
# - "pathToModListFile"
#
# For <1.16 it should be
# - "-jar"
# - "{{@startFile@}}"
# - "nogui"
# For >=1.17 it should be
# - "@libraries/net/minecraftforge/forge/{{@mcversion@}}-{{@loaderversion@}}/{{@os@}}_args.txt"
# - "nogui"
startCommand:
- "@libraries/net/minecraftforge/forge/{{@mcversion@}}-{{@loaderversion@}}/{{@os@}}_args.txt"
- "nogui"
# In case you have multiple javas installed you can add a absolute path to it here
# The Path has to be enclosed in \" like in the example if it has spaces (or for safety just include them always.)
# if the value is "", null, or ~ then 'java' from PATH is going to be used
# Example: "\"C:/Program Files/Java/jre1.8.0_201/bin/java.exe\""
# It also supports replacing with environment variables with ${ENV_VAR} e.g. ${JAVA_HOME}/bin/java.exe
forcedJavaPath: ~
# If you aren't sure what the java path is you can let serverstarter attempt to find the correct JVM
# For this you need to have all available JVMs on the PATH
# -> MC 1.12 to 1.16 requires java [8, 9, 10, 11]
# -> MC 1.17 requires java [17]
supportedJavaVersions: [17]
# Java args that are supposed to be used when the server launches
# keep in mind java args often need ' - ' in front of it to work, use clarifying parentheses to make sure it uses it correctly
# Keep in mind that some arguments only work on JRE 1.8
# reference: https://aikar.co/2018/07/02/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft/
javaArgs:
- "-XX:+UseG1GC"
- "-XX:+ParallelRefProcEnabled"
- "-XX:MaxGCPauseMillis=200"
- "-XX:+UnlockExperimentalVMOptions"
- "-XX:+DisableExplicitGC"
- "-XX:+AlwaysPreTouch"
- "-XX:G1NewSizePercent=30"
- "-XX:G1MaxNewSizePercent=40"
- "-XX:G1HeapRegionSize=8M"
- "-XX:G1ReservePercent=20"
- "-XX:G1HeapWastePercent=5"
- "-XX:G1MixedGCCountTarget=4"
- "-XX:InitiatingHeapOccupancyPercent=15"
- "-XX:G1MixedGCLiveThresholdPercent=90"
- "-XX:G1RSetUpdatingPauseTimePercent=5"
- "-XX:SurvivorRatio=32"
- "-XX:+PerfDisableSharedMem"
- "-XX:MaxTenuringThreshold=1"
- "-Dfml.readTimeout=90" # servertimeout
- "-Dfml.queryResult=confirm" # auto /fmlconfirm