Skip to content

Commit

Permalink
Update to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed Dec 13, 2023
1 parent dc2f801 commit 0e6fb3f
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ark/ark.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"stopCode": 2,
"stdin": {},
"stdout": {},
"expectedExitCode": 1
"expectedExitCode": -1
},
"environment": {
"type": "host"
Expand Down
30 changes: 22 additions & 8 deletions minecraft/minecraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@
"desc": "Version of Minecraft you wish to install (not all software may respect this value",
"required": true,
"userEdit": true
},
"jvmArgs": {
"type": "string",
"value": "-Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true",
"display": "JVM Arguments",
"desc": "Extra JVM arguments to pass",
"required": false,
"userEdit": false
}
},
"groups": [
Expand Down Expand Up @@ -244,6 +252,12 @@
"java -jar installer.jar --installServer"
]
},
{
"if": "modlauncher == 'forge' && file_exists('forge-' + forgebuild + '-shim.jar')",
"type": "move",
"source": "forge-${forgebuild}-shim.jar",
"target": "server.jar"
},
{
"if": "modlauncher == 'magma'",
"type": "download",
Expand Down Expand Up @@ -354,35 +368,35 @@
"run": {
"command": [
{
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/minecraftforge/forge/${forgebuild}/win_args.txt nogui",
"command": "java${javaversion} -Xmx${memory}M ${jvmArgs} @libraries/net/minecraftforge/forge/${forgebuild}/win_args.txt nogui",
"if": "env == 'host' && modlauncher == 'forge' && os == 'windows' && file_exists('libraries/net/minecraftforge/forge/' + forgebuild + '/win_args.txt')"
},
{
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/minecraftforge/forge/${forgebuild}/unix_args.txt nogui",
"command": "java${javaversion} -Xmx${memory}M ${jvmArgs} @libraries/net/minecraftforge/forge/${forgebuild}/unix_args.txt nogui",
"if": "env == 'host' && modlauncher == 'forge' && file_exists('libraries/net/minecraftforge/forge/' + forgebuild + '/unix_args.txt')"
},
{
"command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/minecraftforge/forge/${forgebuild}/win_args.txt nogui",
"command": "java -Xmx${memory}M ${jvmArgs} @libraries/net/minecraftforge/forge/${forgebuild}/win_args.txt nogui",
"if": "env != 'host' && modlauncher == 'forge' && os == 'windows' && file_exists('libraries/net/minecraftforge/forge/' + forgebuild + '/win_args.txt')"
},
{
"command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true @libraries/net/minecraftforge/forge/${forgebuild}/unix_args.txt nogui",
"command": "java -Xmx${memory}M ${jvmArgs} @libraries/net/minecraftforge/forge/${forgebuild}/unix_args.txt nogui",
"if": "env != 'host' && modlauncher == 'forge' && file_exists('libraries/net/minecraftforge/forge/' + forgebuild+ '/unix_args.txt')"
},
{
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar fabric-server-launch.jar",
"command": "java${javaversion} -Xmx${memory}M ${jvmArgs} -jar fabric-server-launch.jar",
"if": "env == 'host' && modlauncher == 'fabric'"
},
{
"command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar server.jar",
"command": "java -Xmx${memory}M ${jvmArgs} -jar server.jar",
"if": "env != 'host' && modlauncher == 'fabric'"
},
{
"command": "java${javaversion} -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar server.jar",
"command": "java${javaversion} -Xmx${memory}M ${jvmArgs} -jar server.jar",
"if": "env == 'host'"
},
{
"command": "java -Xmx${memory}M -Dterminal.jline=false -Dterminal.ansi=true -Dlog4j2.formatMsgNoLookups=true -jar server.jar"
"command": "java -Xmx${memory}M ${jvmArgs} -jar server.jar"
}
],
"stop": "stop",
Expand Down
6 changes: 4 additions & 2 deletions rust/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"environment": {
"type": "host"
},
"runtimeRequirement": 10
"runtimeRequirement": 10,
"ignoreExitCode": true
},
{
"name": "rust-docker",
Expand All @@ -18,6 +19,7 @@
"type": "docker",
"image": "steamcmd/steamcmd"
},
"runtimeRequirement": 10
"runtimeRequirement": 10,
"ignoreExitCode": true
}
]
3 changes: 1 addition & 2 deletions rust/rust.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@
"port": "${RConPort}",
"password": "${RConPassword}"
},
"stdout": {},
"expectedExitCode": -1
"stdout": {}
},
"environment": {
"type": "host"
Expand Down
11 changes: 10 additions & 1 deletion satisfactory/satisfactory.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,23 @@
"command": "./Engine/Binaries/Linux/UE4Server-Linux-Shipping FactoryGame ?listen -multihome=${multihome} -ServerQueryPort=${port}",
"stopCode": 2,
"environmentVars": {
"LD_LIBRARY_PATH": "./linux64:$LD_LIBRARY_PATH"
"LD_LIBRARY_PATH": "./linux64"
},
"stdin": {},
"stdout": {}
},
"environment": {
"type": "host"
},
"supportedEnvironments": [
{
"type": "host"
},
{
"type": "docker",
"image": "steamcmd/steamcmd"
}
],
"requirements": {
"os": "linux",
"arch": "amd64"
Expand Down
9 changes: 9 additions & 0 deletions squad/squad.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@
"environment": {
"type": "host"
},
"supportedEnvironments": [
{
"type": "host"
},
{
"type": "docker",
"image": "steamcmd/steamcmd"
}
],
"requirements": {
"os": "linux",
"arch": "amd64"
Expand Down

0 comments on commit 0e6fb3f

Please sign in to comment.