Skip to content

Commit 5b6de4d

Browse files
authored
eggs(rust): custom map url (pterodactyl#3625)
Introduces custom map URL variable. If none is provided, it will default to using normal map size and seed. Otherwise, it will use the custom map and remove map size/seed from the startup as required.
1 parent 8b236c6 commit 5b6de4d

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

database/Seeders/eggs/rust/egg-rust.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "PTDL_v1",
55
"update_url": null
66
},
7-
"exported_at": "2021-05-29T19:02:43-04:00",
7+
"exported_at": "2021-09-15T17:07:50-04:00",
88
"name": "Rust",
99
"author": "support@pterodactyl.io",
1010
"description": "The only aim in Rust is to survive. To do this you will need to overcome struggles such as hunger, thirst and cold. Build a fire. Build a shelter. Kill animals for meat. Protect yourself from other players, and kill them for meat. Create alliances with other players and form a town. Do whatever it takes to survive.",
@@ -13,11 +13,11 @@
1313
"quay.io\/pterodactyl\/core:rust"
1414
],
1515
"file_denylist": [],
16-
"startup": ".\/RustDedicated -batchmode +server.port {{SERVER_PORT}} +server.identity \"rust\" +rcon.port {{RCON_PORT}} +rcon.web true +server.hostname \\\"{{HOSTNAME}}\\\" +server.level \\\"{{LEVEL}}\\\" +server.description \\\"{{DESCRIPTION}}\\\" +server.url \\\"{{SERVER_URL}}\\\" +server.headerimage \\\"{{SERVER_IMG}}\\\" +server.logoimage \\\"{{SERVER_LOGO}}\\\" +server.worldsize \\\"{{WORLD_SIZE}}\\\" +server.seed \\\"{{WORLD_SEED}}\\\" +server.maxplayers {{MAX_PLAYERS}} +rcon.password \\\"{{RCON_PASS}}\\\" +server.saveinterval {{SAVEINTERVAL}} +app.port {{APP_PORT}} {{ADDITIONAL_ARGS}}",
16+
"startup": ".\/RustDedicated -batchmode +server.port {{SERVER_PORT}} +server.identity \"rust\" +rcon.port {{RCON_PORT}} +rcon.web true +server.hostname \\\"{{HOSTNAME}}\\\" +server.level \\\"{{LEVEL}}\\\" +server.description \\\"{{DESCRIPTION}}\\\" +server.url \\\"{{SERVER_URL}}\\\" +server.headerimage \\\"{{SERVER_IMG}}\\\" +server.logoimage \\\"{{SERVER_LOGO}}\\\" +server.maxplayers {{MAX_PLAYERS}} +rcon.password \\\"{{RCON_PASS}}\\\" +server.saveinterval {{SAVEINTERVAL}} +app.port {{APP_PORT}} $( [ -z ${MAP_URL} ] && printf %s \"+server.worldsize \\\"{{WORLD_SIZE}}\\\" +server.seed \\\"{{WORLD_SEED}}\\\"\" || printf %s \"+server.levelurl {{MAP_URL}}\" ) {{ADDITIONAL_ARGS}}",
1717
"config": {
1818
"files": "{}",
19-
"startup": "{\r\n \"done\": \"Server startup complete\",\r\n \"userInteraction\": []\r\n}",
20-
"logs": "{\r\n \"custom\": false,\r\n \"location\": \"latest.log\"\r\n}",
19+
"startup": "{\r\n \"done\": \"Server startup complete\"\r\n}",
20+
"logs": "{}",
2121
"stop": "quit"
2222
},
2323
"scripts": {
@@ -162,6 +162,15 @@
162162
"user_viewable": true,
163163
"user_editable": true,
164164
"rules": "nullable|url"
165+
},
166+
{
167+
"name": "Custom Map URL",
168+
"description": "Overwrites the map with the one from the direct download URL. Invalid URLs will cause the server to crash.",
169+
"env_variable": "MAP_URL",
170+
"default_value": "",
171+
"user_viewable": true,
172+
"user_editable": true,
173+
"rules": "nullable|url"
165174
}
166175
]
167-
}
176+
}

0 commit comments

Comments
 (0)