eggs icon indicating copy to clipboard operation
eggs copied to clipboard

[Egg Request]: Carrier Command 2

Open joecasanova opened this issue 2 years ago • 7 comments

Does this expand an already existing service

Yes

Link to a game or software

https://geometa.co.uk/wiki/carrier_command_2/view/dedicated_servers

Links for the download

https://store.steampowered.com/app/1489630/Carrier_Command_2/

Links for the install docs

http://geometa.co.uk/wiki/carrier_command_2/view/dedicated_servers

joecasanova avatar Feb 04 '23 15:02 joecasanova

Here is a proof of concept for a docker build which runs this via wine:. https://github.com/FragSoc/carrier-command-docker

joecasanova avatar Feb 04 '23 15:02 joecasanova

Here is a proof of concept for a docker build which runs this via wine:. https://github.com/FragSoc/carrier-command-docker

this installes the game, they don't have a dedicated server app id

QuintenQVD0 avatar Feb 04 '23 16:02 QuintenQVD0

there is not really a dedicated server and you must own the game. Nothing for me, because i dont own the game

gOOvER avatar Feb 04 '23 16:02 gOOvER

Here is a proof of concept for a docker build which runs this via wine:. FragSoc/carrier-command-docker

this installes the game, they don't have a dedicated server app id

This is no different than games like The Forest, unfortunately. It works through Wine just fine though.

Software-Noob avatar Feb 04 '23 18:02 Software-Noob

@joecasanova

I made a basic egg. The config is not parsable so you will have to set the port manual in the .xml file. And you need 3 subsequent ports, what means if you set it to 25565 then 25565-25568 must be allocated.

{
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
    "meta": {
        "version": "PTDL_v2",
        "update_url": null
    },
    "exported_at": "2023-02-05T15:11:22+01:00",
    "name": "Carrier Command 2",
    "author": "[email protected]",
    "description": "Carrier Command 2 is the real-time strategy game that puts you in command of a futuristic carrier capable of deploying a vast array of aircraft and amphibious units. Compete against AI or human players and hop into every single vehicle to take matters into your own hands!",
    "features": [
        "steam_disk_space"
    ],
    "docker_images": {
        "Wine_staging": "ghcr.io\/parkervcp\/yolks:wine_staging"
    },
    "file_denylist": [],
    "startup": "export WINEDEBUG=-all; xvfb-run --auto-servernum wine dedicated_server.exe",
    "config": {
        "files": "{}",
        "startup": "{\r\n    \"done\": \"starting server\"\r\n}",
        "logs": "{}",
        "stop": "^^C"
    },
    "scripts": {
        "installation": {
            "script": "#!\/bin\/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n# Image to install with is 'ghcr.io\/parkervcp\/installers:debian'\r\n\r\n\r\n# Install packages. Default packages below are not required if using our existing install image thus speeding up the install process.\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} 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\n## add below your custom commands if needed\r\nFILE=\/mnt\/server\/server_config.xml\r\nif [ -f \"$FILE\" ]; then\r\n    echo \"A config file already exists. skipping\"\r\nelse \r\n    echo \"generating a config file\"\r\n    curl -sSL -o server_config.xml https:\/\/pteropaste.com\/o74dp9\r\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"
        }
    },
    "variables": [
        {
            "name": "Install windows version",
            "description": "",
            "env_variable": "WINDOWS_INSTALL",
            "default_value": "1",
            "user_viewable": false,
            "user_editable": false,
            "rules": "required|boolean",
            "field_type": "text"
        },
        {
            "name": "app id",
            "description": "",
            "env_variable": "SRCDS_APPID",
            "default_value": "1489630",
            "user_viewable": false,
            "user_editable": false,
            "rules": "required|string|in:1489630",
            "field_type": "text"
        },
        {
            "name": "Auto update",
            "description": "Auto update the server on start",
            "env_variable": "AUTO_UPDATE",
            "default_value": "1",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|boolean",
            "field_type": "text"
        },
        {
            "name": "Steam username",
            "description": "",
            "env_variable": "STEAM_USER",
            "default_value": "",
            "user_viewable": false,
            "user_editable": false,
            "rules": "required|string|max:32",
            "field_type": "text"
        },
        {
            "name": "Steam password",
            "description": "",
            "env_variable": "STEAM_PASS",
            "default_value": "",
            "user_viewable": false,
            "user_editable": false,
            "rules": "required|string|max:64",
            "field_type": "text"
        },
        {
            "name": "steam auth",
            "description": "",
            "env_variable": "STEAM_AUTH",
            "default_value": "",
            "user_viewable": false,
            "user_editable": false,
            "rules": "nullable|string",
            "field_type": "text"
        }
    ]
}

QuintenQVD0 avatar Feb 05 '23 14:02 QuintenQVD0

It seems to install okay but when I go to start the server I receive the following in the console:

First launch will throw some errors. Ignore them :/home/container$ export WINEDEBUG=-all; xvfb-run --auto-servernum wine dedicated_server.exe _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. wine: Call from 000000007B013C0E to unimplemented function shell32.dll.SHGetFolderPathW, aborting wine: Unimplemented function shell32.dll.SHGetFolderPathW called at address 000000007B013C0E (thread 002c), starting debugger... wine: Call from 000000007B013C0E to unimplemented function shell32.dll.SHGetDesktopFolder, aborting wine: Unimplemented function shell32.dll.SHGetDesktopFolder called at address 000000007B013C0E (thread 0078), starting debugger...

joecasanova avatar Feb 05 '23 17:02 joecasanova

It seems to install okay but when I go to start the server I receive the following in the console:

First launch will throw some errors. Ignore them :/home/container$ export WINEDEBUG=-all; xvfb-run --auto-servernum wine dedicated_server.exe _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. wine: Call from 000000007B013C0E to unimplemented function shell32.dll.SHGetFolderPathW, aborting wine: Unimplemented function shell32.dll.SHGetFolderPathW called at address 000000007B013C0E (thread 002c), starting debugger... wine: Call from 000000007B013C0E to unimplemented function shell32.dll.SHGetDesktopFolder, aborting wine: Unimplemented function shell32.dll.SHGetDesktopFolder called at address 000000007B013C0E (thread 0078), starting debugger...

That is strange. I do not own the game. An friend of mine gave me the .exe and the needed dll. I now technicly that is not allowed. But it was just for making this egg. The server started fine for me. I have a look later

QuintenQVD0 avatar Feb 05 '23 19:02 QuintenQVD0