mirror of
				https://github.com/pelican-eggs/eggs.git
				synced 2025-11-04 02:48:07 +00:00 
			
		
		
		
	Merge pull request #2621 from parkervcp/assetto_freeroam_AI
add Assetto Corsa (Freeroam + AI) & Cleanup Assetto Corsa
This commit is contained in:
		
						commit
						b78059cd87
					
				@ -8,5 +8,13 @@ Asseto Corsa requires two ports, game port is UDP and WEB HTTP port is TCP.
 | 
			
		||||
 | 
			
		||||
| Port        | default |
 | 
			
		||||
|-------------|---------|
 | 
			
		||||
| Game        | 9600   |
 | 
			
		||||
| HTTP       | 8081   |
 | 
			
		||||
| Game        | 9600    |
 | 
			
		||||
| HTTP        | 8081    |
 | 
			
		||||
 | 
			
		||||
### Notes
 | 
			
		||||
 | 
			
		||||
<!--Notes about the server ports.-->
 | 
			
		||||
9600 is the default port, but any port can be used.
 | 
			
		||||
 | 
			
		||||
## Freeroam + AI
 | 
			
		||||
This egg uses: [GitHub](https://github.com/compujuckel/AssettoServer) [Website](https://assettoserver.org/)
 | 
			
		||||
@ -0,0 +1,82 @@
 | 
			
		||||
{
 | 
			
		||||
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
 | 
			
		||||
    "meta": {
 | 
			
		||||
        "version": "PTDL_v2",
 | 
			
		||||
        "update_url": null
 | 
			
		||||
    },
 | 
			
		||||
    "exported_at": "2023-12-27T17:12:44+01:00",
 | 
			
		||||
    "name": "Assetto Corsa (Freeroam + AI)",
 | 
			
		||||
    "author": "josdekurk@gmail.com",
 | 
			
		||||
    "description": "Custom Assetto Corsa server with focus on freeroam",
 | 
			
		||||
    "features": null,
 | 
			
		||||
    "docker_images": {
 | 
			
		||||
        "Dotnet_8": "ghcr.io\/parkervcp\/yolks:dotnet_8"
 | 
			
		||||
    },
 | 
			
		||||
    "file_denylist": [],
 | 
			
		||||
    "startup": ".\/AssettoServer",
 | 
			
		||||
    "config": {
 | 
			
		||||
        "files": "{\r\n    \"cfg\/server_cfg.ini\": {\r\n        \"parser\": \"ini\",\r\n        \"find\": {\r\n            \"SERVER.NAME\": \"{{server.build.env.SERVER_NAME}}\",\r\n            \"SERVER.PASSWORD\": \"{{server.build.env.SERVER_PASSWORD}}\",\r\n            \"SERVER.ADMIN_PASSWORD\": \"{{server.build.env.ADMIN_PASSWORD}}\",\r\n            \"SERVER.HTTP_PORT\": \"{{server.build.env.HTTP_PORT}}\",\r\n            \"SERVER.MAX_CLIENTS\": \"{{server.build.env.MAX_CLIENTS}}\",\r\n            \"SERVER.UDP_PORT\": \"{{server.build.default.port}}\",\r\n            \"SERVER.TCP_PORT\": \"{{server.build.default.port}}\"\r\n        }\r\n    }\r\n}",
 | 
			
		||||
        "startup": "{\r\n    \"done\": \"Starting update loop with an update rate of\"\r\n}",
 | 
			
		||||
        "logs": "{}",
 | 
			
		||||
        "stop": "^C"
 | 
			
		||||
    },
 | 
			
		||||
    "scripts": {
 | 
			
		||||
        "installation": {
 | 
			
		||||
            "script": "#!\/bin\/bash\r\n\r\napt update\r\napt -y install curl git jq tar\r\n\r\n## get release info and download links\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/compujuckel\/AssettoServer\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/compujuckel\/AssettoServer\/releases\")\r\nMATCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"linux-x64\" || echo \"linux-arm64\")\r\nVERSION=latest\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n    DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelse\r\n    VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n    if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n        DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n    else\r\n        echo -e \"defaulting to latest release\"\r\n        DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i linux | head -1)\r\n    fi\r\nfi\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\ncurl -sSL -o assetto-server-linux.tar.gz ${DOWNLOAD_URL}\r\n\r\ntar xvf assetto-server-linux.tar.gz\r\nrm assetto-server-linux.tar.gz\r\nchmod +x AssettoServer\r\n\r\nmkdir cfg\/\r\ncd cfg\/\r\n[ -f \"server_cfg.ini\" ] || curl -sSL -o \"server_cfg.ini\" \"https:\/\/pteropaste.com\/plk8mjfcqt4m\"\r\n[ -f \"extra_cfg.yml\" ] || curl -sSL -o \"extra_cfg.yml\" \"https:\/\/pteropaste.com\/ocd58cq39z0z\"\r\n[ -f \"entry_list.ini\" ] || touch entry_list.ini\r\n\r\n\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
 | 
			
		||||
            "container": "ghcr.io\/parkervcp\/installers:debian",
 | 
			
		||||
            "entrypoint": "bash"
 | 
			
		||||
        }
 | 
			
		||||
    },
 | 
			
		||||
    "variables": [
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Server name",
 | 
			
		||||
            "description": "The name off the server",
 | 
			
		||||
            "env_variable": "SERVER_NAME",
 | 
			
		||||
            "default_value": "AC_Server",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "required|string|max:40",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Server Password",
 | 
			
		||||
            "description": "",
 | 
			
		||||
            "env_variable": "SERVER_PASSWORD",
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "nullable|string|max:64",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Http port",
 | 
			
		||||
            "description": "",
 | 
			
		||||
            "env_variable": "HTTP_PORT",
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": false,
 | 
			
		||||
            "rules": "nullable|numeric|",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Admin Password",
 | 
			
		||||
            "description": "",
 | 
			
		||||
            "env_variable": "ADMIN_PASSWORD",
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "required|string|max:64",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Max clients",
 | 
			
		||||
            "description": "",
 | 
			
		||||
            "env_variable": "MAX_CLIENTS",
 | 
			
		||||
            "default_value": "18",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "required|numeric|between:2,25",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
@ -1,30 +1,30 @@
 | 
			
		||||
{
 | 
			
		||||
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
 | 
			
		||||
    "meta": {
 | 
			
		||||
        "version": "PTDL_v1",
 | 
			
		||||
        "version": "PTDL_v2",
 | 
			
		||||
        "update_url": null
 | 
			
		||||
    },
 | 
			
		||||
    "exported_at": "2021-12-07T16:03:51+00:00",
 | 
			
		||||
    "exported_at": "2023-12-27T17:14:48+01:00",
 | 
			
		||||
    "name": "Assetto Corsa",
 | 
			
		||||
    "author": "admin@softwarenoob.com",
 | 
			
		||||
    "description": "Assetto Corsa (Italian for \"Race Setup\") is a sim racing video game developed by the Italian video game developer Kunos Simulazioni. It is designed with an emphasis on a realistic racing experience with support for extensive customization and moddability",
 | 
			
		||||
    "features": [
 | 
			
		||||
        "steam_disk_space"
 | 
			
		||||
    ],
 | 
			
		||||
    "images": [
 | 
			
		||||
        "ghcr.io\/parkervcp\/games:source"
 | 
			
		||||
    ],
 | 
			
		||||
    "docker_images": {
 | 
			
		||||
        "ghcr.io\/parkervcp\/steamcmd:debian": "ghcr.io\/parkervcp\/steamcmd:debian"
 | 
			
		||||
    },
 | 
			
		||||
    "file_denylist": [],
 | 
			
		||||
    "startup": ".\/acServer",
 | 
			
		||||
    "config": {
 | 
			
		||||
        "files": "{\r\n    \"cfg\/server_cfg.ini\": {\r\n        \"parser\": \"file\",\r\n        \"find\": {\r\n            \"NAME\": \"NAME={{server.build.env.HOSTNAME}}\",\r\n            \"PASSWORD\": \"PASSWORD={{server.build.env.PASSWORD}}\",\r\n            \"ADMIN_PASSWORD\": \"ADMIN_PASSWORD={{server.build.env.ADM_PASSWORD}}\",\r\n            \"UDP_PORT\": \"UDP_PORT={{server.build.default.port}}\",\r\n            \"TCP_PORT\": \"TCP_PORT={{server.build.default.port}}\",\r\n            \"HTTP_PORT\": \"HTTP_PORT={{server.build.env.HTTP_PORT}}\"\r\n        }\r\n    }\r\n}",
 | 
			
		||||
        "startup": "{\r\n    \"done\": \"Server started\"\r\n}",
 | 
			
		||||
        "logs": "{}",
 | 
			
		||||
        "stop": "^^C"
 | 
			
		||||
        "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\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\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\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
 | 
			
		||||
            "container": "ghcr.io\/parkervcp\/installers:debian",
 | 
			
		||||
            "entrypoint": "bash"
 | 
			
		||||
        }
 | 
			
		||||
@ -37,7 +37,8 @@
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "required|string"
 | 
			
		||||
            "rules": "required|string",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Steam Password",
 | 
			
		||||
@ -46,7 +47,8 @@
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "required|string"
 | 
			
		||||
            "rules": "required|string",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Steam Auth Code",
 | 
			
		||||
@ -55,7 +57,8 @@
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "nullable|string"
 | 
			
		||||
            "rules": "nullable|string",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Server Name",
 | 
			
		||||
@ -64,7 +67,8 @@
 | 
			
		||||
            "default_value": "Pterodactyl Server",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "required|string|max:45"
 | 
			
		||||
            "rules": "required|string|max:45",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Server Password",
 | 
			
		||||
@ -73,25 +77,28 @@
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "nullable|string|max:40"
 | 
			
		||||
            "rules": "nullable|string|max:40",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Admin Password",
 | 
			
		||||
            "description": "Used to login as server administrator, type \/help in-game for more",
 | 
			
		||||
            "env_variable": "ADMIN_PASSWORD",
 | 
			
		||||
            "default_value": "4yRWj5vqr6zD",
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "required|string|max:40"
 | 
			
		||||
            "rules": "required|string|max:40|min:8",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "HTTP Port",
 | 
			
		||||
            "description": "HTTP Port",
 | 
			
		||||
            "env_variable": "HTTP_PORT",
 | 
			
		||||
            "default_value": "8081",
 | 
			
		||||
            "default_value": "",
 | 
			
		||||
            "user_viewable": false,
 | 
			
		||||
            "user_editable": false,
 | 
			
		||||
            "rules": "required|string|max:20"
 | 
			
		||||
            "rules": "nullable|int",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "SRCDS_APPID",
 | 
			
		||||
@ -100,7 +107,8 @@
 | 
			
		||||
            "default_value": "302550",
 | 
			
		||||
            "user_viewable": false,
 | 
			
		||||
            "user_editable": false,
 | 
			
		||||
            "rules": "required|string|max:20"
 | 
			
		||||
            "rules": "required|string|max:20",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Auto Update",
 | 
			
		||||
@ -109,16 +117,18 @@
 | 
			
		||||
            "default_value": "1",
 | 
			
		||||
            "user_viewable": true,
 | 
			
		||||
            "user_editable": true,
 | 
			
		||||
            "rules": "required|string|max:1"
 | 
			
		||||
            "rules": "required|boolean",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "name": "Windows param",
 | 
			
		||||
            "name": "Windows Install",
 | 
			
		||||
            "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"
 | 
			
		||||
            "rules": "required|boolean",
 | 
			
		||||
            "field_type": "text"
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user