Skip to content

Commit

Permalink
Added max players argument
Browse files Browse the repository at this point in the history
- Max player startup argument added as variable
- Made ports required field to avoid server owners from starting server without ports mentioned causing failures
  • Loading branch information
itsmemac committed Apr 10, 2023
1 parent 595bc3d commit 6efbe12
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
18 changes: 14 additions & 4 deletions egg-venice-unleashed--with-mount.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2022-09-13T14:19:56-04:00",
"exported_at": "2023-04-10T18:19:01+05:30",
"name": "Venice Unleashed [With Mount]",
"author": "[email protected]",
"description": "Venice Unleashed Egg with mount support",
Expand All @@ -14,7 +14,7 @@
"VU Ptero - Staging": "ghcr.io\/itsmemac\/vu-pterodactyl:staging"
},
"file_denylist": [],
"startup": "if [ ! -f \/home\/container\/activated ]; then wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -activate -o_mail ${EMAIL} -o_pass ${PASSWORD}; touch \/home\/container\/activated; else wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -serverInstancePath \"$(winepath -w ~\/vu\/instance)\" -server -dedicated -noUpdate -${FREQUENCY} -listen 0.0.0.0:$SERVER_PORT -mHarmonyPort ${HARMONY} -RemoteAdminPort 0.0.0.0:${RCON}; fi",
"startup": "if [ ! -f \/home\/container\/activated ]; then wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -activate -o_mail ${EMAIL} -o_pass ${PASSWORD}; touch \/home\/container\/activated; else wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -serverInstancePath \"$(winepath -w ~\/vu\/instance)\" -server -dedicated -noUpdate -${FREQUENCY} -maxPlayers ${MAX_PLAYER} -listen 0.0.0.0:$SERVER_PORT -mHarmonyPort ${HARMONY} -RemoteAdminPort 0.0.0.0:${RCON}; fi",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Game successfully registered with Zeus\"\r\n}",
Expand Down Expand Up @@ -66,7 +66,7 @@
"default_value": "7948",
"user_viewable": true,
"user_editable": true,
"rules": "numeric",
"rules": "required|numeric",
"field_type": "text"
},
{
Expand All @@ -76,7 +76,7 @@
"default_value": "47200",
"user_viewable": true,
"user_editable": true,
"rules": "numeric",
"rules": "required|numeric",
"field_type": "text"
},
{
Expand All @@ -88,6 +88,16 @@
"user_editable": true,
"rules": "in:30,high60,high120",
"field_type": "text"
},
{
"name": "Maximum Player Count",
"description": "Sets the maximum players that are allowed to set with vars.maxPlayers & vars.maxSpectators combined.",
"env_variable": "MAX_PLAYER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric",
"field_type": "text"
}
]
}
18 changes: 14 additions & 4 deletions egg-venice-unleashed--without-mount.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2022-09-13T14:20:00-04:00",
"exported_at": "2023-04-10T18:18:56+05:30",
"name": "Venice Unleashed [Without Mount]",
"author": "[email protected]",
"description": "Venice Unleashed Egg without mount support",
Expand All @@ -14,7 +14,7 @@
"VU Ptero - Staging": "ghcr.io\/itsmemac\/vu-pterodactyl:staging"
},
"file_denylist": [],
"startup": "if [ ! -f \/home\/container\/activated ]; then wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -activate -o_mail ${EMAIL} -o_pass ${PASSWORD}; touch \/home\/container\/activated; else wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -serverInstancePath \"$(winepath -w ~\/vu\/instance)\" -server -dedicated -noUpdate -${FREQUENCY} -listen 0.0.0.0:$SERVER_PORT -mHarmonyPort ${HARMONY} -RemoteAdminPort 0.0.0.0:${RCON}; fi",
"startup": "if [ ! -f \/home\/container\/activated ]; then wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -activate -o_mail ${EMAIL} -o_pass ${PASSWORD}; touch \/home\/container\/activated; else wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -serverInstancePath \"$(winepath -w ~\/vu\/instance)\" -server -dedicated -noUpdate -${FREQUENCY} -maxPlayers ${MAX_PLAYER} -listen 0.0.0.0:$SERVER_PORT -mHarmonyPort ${HARMONY} -RemoteAdminPort 0.0.0.0:${RCON}; fi",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Game successfully registered with Zeus\"\r\n}",
Expand Down Expand Up @@ -66,7 +66,7 @@
"default_value": "7948",
"user_viewable": true,
"user_editable": true,
"rules": "numeric",
"rules": "required|numeric",
"field_type": "text"
},
{
Expand All @@ -76,7 +76,7 @@
"default_value": "47200",
"user_viewable": true,
"user_editable": true,
"rules": "numeric",
"rules": "required|numeric",
"field_type": "text"
},
{
Expand All @@ -88,6 +88,16 @@
"user_editable": true,
"rules": "in:30,high60,high120",
"field_type": "text"
},
{
"name": "Maximum Player Count",
"description": "Sets the maximum players that are allowed to set with vars.maxPlayers & vars.maxSpectators combined.",
"env_variable": "MAX_PLAYER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric",
"field_type": "text"
}
]
}

0 comments on commit 6efbe12

Please sign in to comment.