mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-26 07:52:56 +08:00
changed config dir and added Ports variables
This commit is contained in:
parent
b1f66a7f1b
commit
172022d5bd
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user