Last active 1716109047

aly's Avatar aly revised this gist 1716109047. Go to revision

1 file changed, 85 insertions

zomboid.json(file created)

@@ -0,0 +1,85 @@
1 + {
2 + "name": "zomboid",
3 + "display": "Project Zomboid",
4 + "type": "zomboid",
5 + "install": [
6 + {
7 + "appId": "380870",
8 + "type": "steamgamedl"
9 + },
10 + {
11 + "target": "ProjectZomboid64.json",
12 + "text": "{\n\t\"mainClass\": \"zombie/network/GameServer\",\n\t\"classpath\": [\n\t\t\"java/.\",\n\t\t\"java/istack-commons-runtime.jar\",\n\t\t\"java/jassimp.jar\",\n\t\t\"java/javacord-2.0.17-shaded.jar\",\n\t\t\"java/javax.activation-api.jar\",\n\t\t\"java/jaxb-api.jar\",\n\t\t\"java/jaxb-runtime.jar\",\n\t\t\"java/lwjgl.jar\",\n\t\t\"java/lwjgl-natives-linux.jar\",\n\t\t\"java/lwjgl-glfw.jar\",\n\t\t\"java/lwjgl-glfw-natives-linux.jar\",\n\t\t\"java/lwjgl-jemalloc.jar\",\n\t\t\"java/lwjgl-jemalloc-natives-linux.jar\",\n\t\t\"java/lwjgl-opengl.jar\",\n\t\t\"java/lwjgl-opengl-natives-linux.jar\",\n\t\t\"java/lwjgl_util.jar\",\n\t\t\"java/sqlite-jdbc-3.27.2.1.jar\",\n\t\t\"java/trove-3.0.3.jar\",\n\t\t\"java/commons-compress-1.18.jar\",\n\t\t\"java/uncommons-maths-1.2.3.jar\"\n\t],\n\t\"vmArgs\": [\n\t\t\"-Djava.awt.headless=true\",\n\t\t\"-Xmx${memory}M\",\n\t\t\"-Dzomboid.steam=1\",\n\t\t\"-Dzomboid.znetlog=1\",\n\t\t\"-Djava.library.path=linux64/:natives/\",\n \"-Duser.home=./\",\n\t\t\"-Djava.security.egd=file:/dev/urandom\",\n\t\t\"-XX:+UseZGC\",\n\t\t\"-XX:-OmitStackTraceInFastThrow\"\n\t]\n}",
13 + "type": "writefile"
14 + },
15 + {
16 + "commands": [
17 + "chmod +x jre64/bin/java",
18 + "chmod +x ProjectZomboid64",
19 + "chmod +x start-server.sh"
20 + ],
21 + "type": "command"
22 + }
23 + ],
24 + "run": {
25 + "stop": "quit",
26 + "command": "./start-server.sh -servername ${serverName} -adminpassword ${adminPassword} -steamvac ${steamVAC} -port ${port}",
27 + "workingDirectory": "",
28 + "pre": [],
29 + "post": [],
30 + "environmentVars": {}
31 + },
32 + "data": {
33 + "adminPassword": {
34 + "type": "string",
35 + "desc": "Password for admin account",
36 + "display": "Admin Password",
37 + "required": true,
38 + "value": "password",
39 + "userEdit": true
40 + },
41 + "memory": {
42 + "type": "integer",
43 + "desc": "Memory to allocate",
44 + "display": "Memory (MB)",
45 + "required": true,
46 + "value": "4096",
47 + "userEdit": true
48 + },
49 + "port": {
50 + "type": "integer",
51 + "desc": "Base port (UDP) for server. Additional ports (TCP) beyond this will need to be opened. 1 per user.",
52 + "display": "port",
53 + "required": true,
54 + "value": "16261",
55 + "userEdit": true
56 + },
57 + "serverName": {
58 + "type": "string",
59 + "desc": "Name of the PZ server",
60 + "display": "serverName",
61 + "value": "pufferserver",
62 + "userEdit": true
63 + },
64 + "steamVAC": {
65 + "type": "boolean",
66 + "desc": "Enable or disable Steam VAC",
67 + "display": "steamVAC",
68 + "required": true,
69 + "value": "true",
70 + "userEdit": true
71 + }
72 + },
73 + "environment": {
74 + "type": "tty"
75 + },
76 + "supportedEnvironments": [
77 + {
78 + "type": "tty"
79 + }
80 + ],
81 + "requirements": {
82 + "os": "linux",
83 + "arch": "amd64"
84 + }
85 + }
Newer Older