From 0910ad70fe56c9a58796c0fe16fe1b9e10565ca5 Mon Sep 17 00:00:00 2001 From: eXpansiiVe Date: Wed, 25 Jan 2023 21:46:09 +0100 Subject: [PATCH 1/6] first commit --- .../assetto_corsa_competizione/README.MD | 12 ++ .../egg-assetto-corsa-competizione.json | 172 ++++++++++++++++++ 2 files changed, 184 insertions(+) create mode 100644 game_eggs/steamcmd_servers/assetto_corsa_competizione/README.MD create mode 100644 game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json diff --git a/game_eggs/steamcmd_servers/assetto_corsa_competizione/README.MD b/game_eggs/steamcmd_servers/assetto_corsa_competizione/README.MD new file mode 100644 index 000000000..51d837a25 --- /dev/null +++ b/game_eggs/steamcmd_servers/assetto_corsa_competizione/README.MD @@ -0,0 +1,12 @@ +# ASSETTO Corsa Competizione + +Assetto Corsa Competizione, the official GT World Challenge videogame. Thanks to the extraordinary quality of simulation, you will experience the atmosphere of the GT3 championship. Compete against official drivers, teams, cars and official circuits reproduced to the highest quality ever seen. + +## Server Ports + +Assetto Corsa Competizione requires two ports. + +| Port | default | +|-------------|---------| +| TCP | 9232 | +| UDP | 9231 | diff --git a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json new file mode 100644 index 000000000..5b79e718d --- /dev/null +++ b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json @@ -0,0 +1,172 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v2", + "update_url": null + }, + "exported_at": "2023-01-21T22:07:33+01:00", + "name": "Assetto Corsa Competizione", + "author": "sergio120800@gmail.com", + "description": "Assetto Corsa Competizione, the official GT World Challenge videogame. Thanks to the extraordinary quality of simulation, you will experience the atmosphere of the GT3 championship. Compete against official drivers, teams, cars and official circuits reproduced to the highest quality ever seen.", + "features": null, + "docker_images": { + "ghcr.io\/parkervcp\/yolks:wine_latest": "ghcr.io\/parkervcp\/yolks:wine_latest" + }, + "file_denylist": [], + "startup": "wine server\/accServer.exe", + "config": { + "files": "{\r\n \"server\/cfg\/configuration.json\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"maxConnections\": \"maxConnections={{env.MAX_CONNECTIONS}}\"\r\n }\r\n },\r\n \"server\/cfg\/settings.json\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"serverName\": \"serverName={{env.SERVER_NAME}}\",\r\n \"adminPassword\": \"adminPassword={{env.ADMIN_PASSWORD}}\",\r\n \"trackMedalsRequirement\": \"trackMedalsRequirement={{env.TRACK_MEDALS}}\",\r\n \"safetyRatingRequirement\": \"safetyRatingRequirement={{env.SAFETY_RATING}}\",\r\n \"racecraftRatingRequirement\": \"racecraftRatingRequirement={{env.RACECRAFT}}\",\r\n \"password\": \"password={{env.PASSWORD}}\",\r\n \"spectatorSlots\": \"spectatorSlots={{env.SPECTATOR_SLOTS}}\",\r\n \"spectatorPassword\": \"spectatorPassword={{env.SPECTATOR_PASSWORD}}\"\r\n }\r\n }\r\n}", + "startup": "{\r\n \"done\": \"Server startup complete\"\r\n}", + "logs": "{}", + "stop": "^^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\nif [ \"${STEAM_USER}\" == \"anonymous\" ]; then\r\n echo -e \"ERROR - STEAM USER NOT SET\\n\"\r\n echo -e \"Steam account must have the dedicated server in library to install and host the game\\n\"\r\n echo -e \"You must configure Steam account in the server startup variables, after that reinstall the server\\n\"\r\nfi", + "container": "ghcr.io\/pterodactyl\/installers:debian", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Server Name", + "description": "The name of the server.", + "env_variable": "SERVER_NAME", + "default_value": "ACC Server", + "user_viewable": true, + "user_editable": true, + "rules": "string", + "field_type": "text" + }, + { + "name": "Admin Password", + "description": "The password to access the server as an admin.", + "env_variable": "ADMIN_PASSWORD", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|string", + "field_type": "text" + }, + { + "name": "Track Medals", + "description": "Defines the amount of track medals that a user has to have for the given track.", + "env_variable": "TRACK_MEDALS", + "default_value": "-1", + "user_viewable": true, + "user_editable": true, + "rules": "integer", + "field_type": "text" + }, + { + "name": "Safety Rating", + "description": "Defines the Safety Rating (SA) that a user must have to join this server.", + "env_variable": "SAFETY_RATING", + "default_value": "-1", + "user_viewable": true, + "user_editable": true, + "rules": "integer", + "field_type": "text" + }, + { + "name": "Racecraft", + "description": "Defines the Racecraft Rating (RC) that a user must have to join this server.", + "env_variable": "RACECRAFT", + "default_value": "-1", + "user_viewable": true, + "user_editable": true, + "rules": "integer", + "field_type": "text" + }, + { + "name": "Server Password", + "description": "Password required to enter this server.", + "env_variable": "PASSWORD", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "nullable|string", + "field_type": "text" + }, + { + "name": "Spectator Slots", + "description": "The maximum amount of spectator the server will accept at a time.", + "env_variable": "SPECTATOR_SLOTS", + "default_value": "0", + "user_viewable": true, + "user_editable": true, + "rules": "integer", + "field_type": "text" + }, + { + "name": "Spectator Password", + "description": "Password to enter the server as spectator. Must be different to \u201cpassword\u201d if both is set.", + "env_variable": "SPECTATOR_PASSWORD", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "nullable|string", + "field_type": "text" + }, + { + "name": "Max Connections", + "description": "The maximum amount of connections the server will accept at a time.", + "env_variable": "MAX_CONNECTIONS", + "default_value": "10", + "user_viewable": true, + "user_editable": true, + "rules": "integer", + "field_type": "text" + }, + { + "name": "SRCDS_APPID", + "description": "", + "env_variable": "SRCDS_APPID", + "default_value": "1430110", + "user_viewable": false, + "user_editable": false, + "rules": "required|string", + "field_type": "text" + }, + { + "name": "Steam Auth Code", + "description": "Steam Auth Code required if the Steam Account is using Steam Auth. Slow installs will cause the code to expire before it can be used.", + "env_variable": "STEAM_AUTH", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "nullable|string", + "field_type": "text" + }, + { + "name": "Steam Username", + "description": "A steam username of an account that owns the game is required", + "env_variable": "STEAM_USER", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|string", + "field_type": "text" + }, + { + "name": "Steam Password", + "description": "Steam User Password", + "env_variable": "STEAM_PASS", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|string", + "field_type": "text" + }, + { + "name": "Windows param", + "description": "Required to always install and update the correct version of the game.", + "env_variable": "WINDOWS_INSTALL", + "default_value": "1", + "user_viewable": false, + "user_editable": false, + "rules": "required|string|max:20", + "field_type": "text" + } + ] +} \ No newline at end of file From ebf1ef7d8c8121df7322c5cf843f920e09225efa Mon Sep 17 00:00:00 2001 From: eXpansiiVe Date: Wed, 25 Jan 2023 21:54:25 +0100 Subject: [PATCH 2/6] Added "ACC" entry to both README --- README.md | 1 + game_eggs/README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 9ab66f8ef..68acd5f73 100644 --- a/README.md +++ b/README.md @@ -214,6 +214,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Arma 3](game_eggs/steamcmd_servers/arma/arma3) * [Arma Reforger](game_eggs/steamcmd_servers/arma/arma_reforger) * [Assetto Corsa](game_eggs/steamcmd_servers/assetto_corsa) +* [Assetto Corsa Competizione](game_eggs/steamcmd_servers/assetto_corsa_competizione) * [Avorion](game_eggs/steamcmd_servers/avorion) * [Barotrauma](game_eggs/steamcmd_servers/barotrauma) * [Black Mesa](game_eggs/steamcmd_servers/black_mesa) diff --git a/game_eggs/README.md b/game_eggs/README.md index 0851d96a3..4dd4dd687 100644 --- a/game_eggs/README.md +++ b/game_eggs/README.md @@ -114,6 +114,7 @@ * [Arma 3](steamcmd_servers/arma/arma3) * [Arma Reforger](steamcmd_servers/arma/arma_reforger) * [Assetto Corsa](steamcmd_servers/assetto_corsa) +* [Assetto Corsa Competizione](steamcmd_servers/assetto_corsa_competizione) * [Avorion](steamcmd_servers/avorion) * [Barotrauma](steamcmd_servers/barotrauma) * [Black Mesa](steamcmd_servers/black_mesa) From b1f66a7f1be04d0de8fb1bf106c79cda8f62489c Mon Sep 17 00:00:00 2001 From: Sergio <54288519+eXpansiiVe@users.noreply.github.com> Date: Fri, 27 Jan 2023 16:53:36 +0100 Subject: [PATCH 3/6] Added steam_disk_space Feature --- .../egg-assetto-corsa-competizione.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json index 5b79e718d..1e25250c6 100644 --- a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json +++ b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json @@ -8,7 +8,9 @@ "name": "Assetto Corsa Competizione", "author": "sergio120800@gmail.com", "description": "Assetto Corsa Competizione, the official GT World Challenge videogame. Thanks to the extraordinary quality of simulation, you will experience the atmosphere of the GT3 championship. Compete against official drivers, teams, cars and official circuits reproduced to the highest quality ever seen.", - "features": null, + "features": [ + "steam_disk_space" + ], "docker_images": { "ghcr.io\/parkervcp\/yolks:wine_latest": "ghcr.io\/parkervcp\/yolks:wine_latest" }, @@ -169,4 +171,4 @@ "field_type": "text" } ] -} \ No newline at end of file +} From 172022d5bdde9884618494f3338bf31365c75479 Mon Sep 17 00:00:00 2001 From: eXpansiiVe Date: Sat, 28 Jan 2023 09:45:37 +0100 Subject: [PATCH 4/6] changed config dir and added Ports variables --- .../egg-assetto-corsa-competizione.json | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json index 1e25250c6..c7ddd1493 100644 --- a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json +++ b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2023-01-21T22:07:33+01:00", + "exported_at": "2023-01-28T08:43:49+01:00", "name": "Assetto Corsa Competizione", "author": "sergio120800@gmail.com", "description": "Assetto Corsa Competizione, the official GT World Challenge videogame. Thanks to the extraordinary quality of simulation, you will experience the atmosphere of the GT3 championship. Compete against official drivers, teams, cars and official circuits reproduced to the highest quality ever seen.", @@ -17,14 +17,14 @@ "file_denylist": [], "startup": "wine server\/accServer.exe", "config": { - "files": "{\r\n \"server\/cfg\/configuration.json\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"maxConnections\": \"maxConnections={{env.MAX_CONNECTIONS}}\"\r\n }\r\n },\r\n \"server\/cfg\/settings.json\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"serverName\": \"serverName={{env.SERVER_NAME}}\",\r\n \"adminPassword\": \"adminPassword={{env.ADMIN_PASSWORD}}\",\r\n \"trackMedalsRequirement\": \"trackMedalsRequirement={{env.TRACK_MEDALS}}\",\r\n \"safetyRatingRequirement\": \"safetyRatingRequirement={{env.SAFETY_RATING}}\",\r\n \"racecraftRatingRequirement\": \"racecraftRatingRequirement={{env.RACECRAFT}}\",\r\n \"password\": \"password={{env.PASSWORD}}\",\r\n \"spectatorSlots\": \"spectatorSlots={{env.SPECTATOR_SLOTS}}\",\r\n \"spectatorPassword\": \"spectatorPassword={{env.SPECTATOR_PASSWORD}}\"\r\n }\r\n }\r\n}", + "files": "{\r\n \".\/server\/cfg\/configuration.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"maxConnections\": \"{{server.build.env.MAX_CONNECTIONS}}\",\r\n \"udpPort\": \"{{server.build.env.UDP_PORT}}\",\r\n \"tcpPort\": \"{{server.build.env.TCP_PORT}}\"\r\n }\r\n },\r\n \".\/server\/cfg\/settings.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"serverName\": \"\\\"{{server.build.env.SERVER_NAME}}\\\"\",\r\n \"adminPassword\": \"\\\"{{server.build.env.ADMIN_PASSWORD}}\\\"\",\r\n \"trackMedalsRequirement\": \"{{server.build.env.TRACK_MEDALS}}\",\r\n \"safetyRatingRequirement\": \"{{server.build.env.SAFETY_RATING}}\",\r\n \"racecraftRatingRequirement\": \"{{server.build.env.RACECRAFT}}\",\r\n \"password\": \"\\\"{{server.build.env.PASSWORD}}\\\"\",\r\n \"spectatorSlots\": \"{{server.build.env.SPECTATOR_SLOTS}}\",\r\n \"spectatorPassword\": \"\\\"{{server.build.env.SPECTATOR_PASSWORD}}\\\"\"\r\n }\r\n }\r\n}", "startup": "{\r\n \"done\": \"Server startup complete\"\r\n}", "logs": "{}", "stop": "^^C" }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\nif [ \"${STEAM_USER}\" == \"anonymous\" ]; then\r\n echo -e \"ERROR - STEAM USER NOT SET\\n\"\r\n echo -e \"Steam account must have the dedicated server in library to install and host the game\\n\"\r\n echo -e \"You must configure Steam account in the server startup variables, after that reinstall the server\\n\"\r\nfi", + "script": "#!\/bin\/bash\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\nif [ \"${STEAM_USER}\" == \"anonymous\" ]; then\r\n echo -e \"ERROR - STEAM USER NOT SET\\n\"\r\n echo -e \"Steam account must have the dedicated server in library to install and host the game\\n\"\r\n echo -e \"You must configure Steam account in the server startup variables, after that reinstall the server\\n\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\necho -e \"-------------------------------------------------\"\r\necho -e \"Installation completed\"\r\necho -e \"-------------------------------------------------\"", "container": "ghcr.io\/pterodactyl\/installers:debian", "entrypoint": "bash" } @@ -169,6 +169,36 @@ "user_editable": false, "rules": "required|string|max:20", "field_type": "text" + }, + { + "name": "WINEDEBUG", + "description": "", + "env_variable": "WINEDEBUG", + "default_value": "-all", + "user_viewable": false, + "user_editable": false, + "rules": "required|string|max:20", + "field_type": "text" + }, + { + "name": "Udp Port", + "description": "ACC clients will use this port to establish a connection to the server", + "env_variable": "UDP_PORT", + "default_value": "9231", + "user_viewable": true, + "user_editable": true, + "rules": "required|integer", + "field_type": "text" + }, + { + "name": "Tcp Port", + "description": "Connected clients will use this Port to stream the car positions and is used for the ping test.", + "env_variable": "TCP_PORT", + "default_value": "9232", + "user_viewable": true, + "user_editable": true, + "rules": "required|integer", + "field_type": "text" } ] -} +} \ No newline at end of file From 6e1dde123f65d0acc7373bc59d2d9328ea750c87 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:20:36 +0100 Subject: [PATCH 5/6] Cleanup --- .../egg-assetto-corsa-competizione.json | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json index c7ddd1493..d2897c4eb 100644 --- a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json +++ b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2023-01-28T08:43:49+01:00", + "exported_at": "2024-01-12T14:19:42+01:00", "name": "Assetto Corsa Competizione", "author": "sergio120800@gmail.com", "description": "Assetto Corsa Competizione, the official GT World Challenge videogame. Thanks to the extraordinary quality of simulation, you will experience the atmosphere of the GT3 championship. Compete against official drivers, teams, cars and official circuits reproduced to the highest quality ever seen.", @@ -17,19 +17,39 @@ "file_denylist": [], "startup": "wine server\/accServer.exe", "config": { - "files": "{\r\n \".\/server\/cfg\/configuration.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"maxConnections\": \"{{server.build.env.MAX_CONNECTIONS}}\",\r\n \"udpPort\": \"{{server.build.env.UDP_PORT}}\",\r\n \"tcpPort\": \"{{server.build.env.TCP_PORT}}\"\r\n }\r\n },\r\n \".\/server\/cfg\/settings.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"serverName\": \"\\\"{{server.build.env.SERVER_NAME}}\\\"\",\r\n \"adminPassword\": \"\\\"{{server.build.env.ADMIN_PASSWORD}}\\\"\",\r\n \"trackMedalsRequirement\": \"{{server.build.env.TRACK_MEDALS}}\",\r\n \"safetyRatingRequirement\": \"{{server.build.env.SAFETY_RATING}}\",\r\n \"racecraftRatingRequirement\": \"{{server.build.env.RACECRAFT}}\",\r\n \"password\": \"\\\"{{server.build.env.PASSWORD}}\\\"\",\r\n \"spectatorSlots\": \"{{server.build.env.SPECTATOR_SLOTS}}\",\r\n \"spectatorPassword\": \"\\\"{{server.build.env.SPECTATOR_PASSWORD}}\\\"\"\r\n }\r\n }\r\n}", + "files": "{\r\n \"server\/cfg\/configuration.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"maxConnections\": \"{{server.build.env.MAX_CONNECTIONS}}\",\r\n \"udpPort\": \"{{server.build.env.UDP_PORT}}\",\r\n \"tcpPort\": \"{{server.build.env.TCP_PORT}}\"\r\n }\r\n },\r\n \".\/server\/cfg\/settings.json\": {\r\n \"parser\": \"json\",\r\n \"find\": {\r\n \"serverName\": \"\\\"{{server.build.env.SERVER_NAME}}\\\"\",\r\n \"adminPassword\": \"\\\"{{server.build.env.ADMIN_PASSWORD}}\\\"\",\r\n \"trackMedalsRequirement\": \"{{server.build.env.TRACK_MEDALS}}\",\r\n \"safetyRatingRequirement\": \"{{server.build.env.SAFETY_RATING}}\",\r\n \"racecraftRatingRequirement\": \"{{server.build.env.RACECRAFT}}\",\r\n \"password\": \"\\\"{{server.build.env.PASSWORD}}\\\"\",\r\n \"spectatorSlots\": \"{{server.build.env.SPECTATOR_SLOTS}}\",\r\n \"spectatorPassword\": \"\\\"{{server.build.env.SPECTATOR_PASSWORD}}\\\"\"\r\n }\r\n }\r\n}", "startup": "{\r\n \"done\": \"Server startup complete\"\r\n}", "logs": "{}", "stop": "^^C" }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\nif [ \"${STEAM_USER}\" == \"anonymous\" ]; then\r\n echo -e \"ERROR - STEAM USER NOT SET\\n\"\r\n echo -e \"Steam account must have the dedicated server in library to install and host the game\\n\"\r\n echo -e \"You must configure Steam account in the server startup variables, after that reinstall the server\\n\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\necho -e \"-------------------------------------------------\"\r\necho -e \"Installation completed\"\r\necho -e \"-------------------------------------------------\"", - "container": "ghcr.io\/pterodactyl\/installers:debian", + "script": "#!\/bin\/bash\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\nif [ \"${STEAM_USER}\" == \"anonymous\" ]; then\r\n echo -e \"ERROR - STEAM USER NOT SET\\n\"\r\n echo -e \"Steam account must have the dedicated server in library to install and host the game\\n\"\r\n echo -e \"You must configure Steam account in the server startup variables, after that reinstall the server\\n\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\necho -e \"-------------------------------------------------\"\r\necho -e \"Installation completed\"\r\necho -e \"-------------------------------------------------\"", + "container": "ghcr.io\/parkervcp\/installers:debian", "entrypoint": "bash" } }, "variables": [ + { + "name": "Windows param", + "description": "Required to always install and update the correct version of the game.", + "env_variable": "WINDOWS_INSTALL", + "default_value": "1", + "user_viewable": false, + "user_editable": false, + "rules": "required|in:1", + "field_type": "text" + }, + { + "name": "SRCDS_APPID", + "description": "", + "env_variable": "SRCDS_APPID", + "default_value": "1430110", + "user_viewable": false, + "user_editable": false, + "rules": "required|string|in:1430110", + "field_type": "text" + }, { "name": "Server Name", "description": "The name of the server.", @@ -120,16 +140,6 @@ "rules": "integer", "field_type": "text" }, - { - "name": "SRCDS_APPID", - "description": "", - "env_variable": "SRCDS_APPID", - "default_value": "1430110", - "user_viewable": false, - "user_editable": false, - "rules": "required|string", - "field_type": "text" - }, { "name": "Steam Auth Code", "description": "Steam Auth Code required if the Steam Account is using Steam Auth. Slow installs will cause the code to expire before it can be used.", @@ -160,16 +170,6 @@ "rules": "required|string", "field_type": "text" }, - { - "name": "Windows param", - "description": "Required to always install and update the correct version of the game.", - "env_variable": "WINDOWS_INSTALL", - "default_value": "1", - "user_viewable": false, - "user_editable": false, - "rules": "required|string|max:20", - "field_type": "text" - }, { "name": "WINEDEBUG", "description": "", @@ -181,22 +181,22 @@ "field_type": "text" }, { - "name": "Udp Port", + "name": "UDP Port", "description": "ACC clients will use this port to establish a connection to the server", "env_variable": "UDP_PORT", "default_value": "9231", "user_viewable": true, - "user_editable": true, + "user_editable": false, "rules": "required|integer", "field_type": "text" }, { - "name": "Tcp Port", + "name": "TCP Port", "description": "Connected clients will use this Port to stream the car positions and is used for the ping test.", "env_variable": "TCP_PORT", "default_value": "9232", "user_viewable": true, - "user_editable": true, + "user_editable": false, "rules": "required|integer", "field_type": "text" } From 716dbe2f6d7fd870fdf41f379d82cb710a457f41 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Fri, 2 Feb 2024 10:51:45 +0100 Subject: [PATCH 6/6] try dos2unix --- .../egg-assetto-corsa-competizione.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json index d2897c4eb..1deed8ee8 100644 --- a/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json +++ b/game_eggs/steamcmd_servers/assetto_corsa_competizione/egg-assetto-corsa-competizione.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2024-01-12T14:19:42+01:00", + "exported_at": "2024-02-02T10:50:32+01:00", "name": "Assetto Corsa Competizione", "author": "sergio120800@gmail.com", "description": "Assetto Corsa Competizione, the official GT World Challenge videogame. Thanks to the extraordinary quality of simulation, you will experience the atmosphere of the GT3 championship. Compete against official drivers, teams, cars and official circuits reproduced to the highest quality ever seen.", @@ -24,7 +24,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\nif [ \"${STEAM_USER}\" == \"anonymous\" ]; then\r\n echo -e \"ERROR - STEAM USER NOT SET\\n\"\r\n echo -e \"Steam account must have the dedicated server in library to install and host the game\\n\"\r\n echo -e \"You must configure Steam account in the server startup variables, after that reinstall the server\\n\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\necho -e \"-------------------------------------------------\"\r\necho -e \"Installation completed\"\r\necho -e \"-------------------------------------------------\"", + "script": "#!\/bin\/bash\r\n\r\napt update\r\napt -y install dos2unix\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\nif [ \"${STEAM_USER}\" == \"anonymous\" ]; then\r\n echo -e \"ERROR - STEAM USER NOT SET\\n\"\r\n echo -e \"Steam account must have the dedicated server in library to install and host the game\\n\"\r\n echo -e \"You must configure Steam account in the server startup variables, after that reinstall the server\\n\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\n\r\ncd \/mnt\/server\/server\/cfg\r\ndos2unix -k configuration.json\r\ndos2unix -k settings.json\r\n\r\necho -e \"-------------------------------------------------\"\r\necho -e \"Installation completed\"\r\necho -e \"-------------------------------------------------\"", "container": "ghcr.io\/parkervcp\/installers:debian", "entrypoint": "bash" }