From 2b6a555505e380c99150a579a9135d5f4ae3899a Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sat, 23 Mar 2024 19:57:42 -0400 Subject: [PATCH 01/12] Create egg-super-tux-kart.json --- .../SuperTuxKart/egg-super-tux-kart.json | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 game_eggs/SuperTuxKart/egg-super-tux-kart.json diff --git a/game_eggs/SuperTuxKart/egg-super-tux-kart.json b/game_eggs/SuperTuxKart/egg-super-tux-kart.json new file mode 100644 index 00000000..38332704 --- /dev/null +++ b/game_eggs/SuperTuxKart/egg-super-tux-kart.json @@ -0,0 +1,31 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v2", + "update_url": null + }, + "exported_at": "2024-03-23T19:32:36-04:00", + "name": "SuperTuxKart", + "author": "mattamn107@github.com", + "description": "Egg for hosting a SuperTuxKart Server. \r\nhttps:\/\/supertuxkart.net\/Main_Page\r\n\r\nFirst install will take a while because the games source code and assets will be downloaded and the games executable will have to be compiled.\r\n\r\nTo change server settings, stop the server then edit the 'config.xml' file in the root of the container. When done save the file and start the server.\r\n\r\nTo update the server (only should have to be done when the games code or assets are updated) in panel go to Servers > SuperTuxKart Server > Manage > Reinstall. This will download the updated code\/assets (should exclude anything that didn't change) and recompile the executable.\r\n\r\nCurrently this is setup to run a local lan server. To make this a wan server (available in the SuperTuxKart online lobby list) read the document at this link and make the necessary changes to the startup command: https:\/\/github.com\/supertuxkart\/stk-code\/blob\/master\/NETWORKING.md", + "features": null, + "docker_images": { + "ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian" + }, + "file_denylist": [], + "startup": ".\/bin\/supertuxkart --server-config=config.xml --lan-server=Pterodactyl_Server --network-console", + "config": { + "files": "{}", + "startup": "{\r\n \"done\": \"Available command:\"\r\n}", + "logs": "{}", + "stop": "quit" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n\r\n# Install build tools\r\necho \"deb http:\/\/deb.debian.org\/debian bullseye-backports main\" >> \/etc\/apt\/sources.list && \\\r\napt-get update && apt-get -y full-upgrade && \\\r\n apt-get install -y build-essential cmake libbluetooth-dev libsdl2-dev \\\r\n libcurl4-openssl-dev libenet-dev libfreetype6-dev libharfbuzz-dev \\\r\n libjpeg-dev libogg-dev libopenal-dev libpng-dev \\\r\n libssl-dev libvorbis-dev libmbedtls-dev pkg-config zlib1g-dev subversion\r\n\r\nif [ ! -d \"\/mnt\/server\/stk-code\" ] && [ ! -d \"\/mnt\/server\/stk-assets\" ]; then\r\n \r\n #clone code repo\r\n git clone https:\/\/github.com\/supertuxkart\/stk-code \/mnt\/server\/stk-code\r\n \r\n #get assets\r\n svn co https:\/\/svn.code.sf.net\/p\/supertuxkart\/code\/stk-assets \/mnt\/server\/stk-assets\r\n \r\n # go into the stk-code directory\r\n cd \/mnt\/server\/stk-code\r\n \r\n # create and enter the cmake_build directory\r\n mkdir cmake_build\r\n \r\nelse\r\n\r\n #update existing stuff\r\n cd \/mnt\/server\/stk-assets\r\n svn up\r\n \r\n cd \/mnt\/server\/stk-code\r\n git pull\r\n\r\n\r\nfi\r\n\r\n#build the server\r\ncd cmake_build\r\ncmake .. -DSERVER_ONLY=ON\r\nmake\r\n\r\n#copy binary to root\/bin and make it executable\r\nmkdir \/mnt\/server\/bin\r\ncp \/mnt\/server\/stk-code\/cmake_build\/bin\/supertuxkart \/mnt\/server\/bin\/supertuxkart\r\nchmod +x \/mnt\/server\/bin\/supertuxkart\r\n\r\n#copy data folder\r\ncp -r \/mnt\/server\/stk-code\/data \/mnt\/server\/data\r\n\r\n#copy extra assets to data folder\r\nmv \/mnt\/server\/stk-assets\/library \/mnt\/server\/data\/library\r\nmv \/mnt\/server\/stk-assets\/models \/mnt\/server\/data\/models\r\nmv \/mnt\/server\/stk-assets\/music \/mnt\/server\/data\/music\r\nmv \/mnt\/server\/stk-assets\/sfx \/mnt\/server\/data\/sfx\r\nmv \/mnt\/server\/stk-assets\/textures \/mnt\/server\/data\/textures\r\nmv \/mnt\/server\/stk-assets\/tracks \/mnt\/server\/data\/tracks\r\nmv \/mnt\/server\/stk-assets\/karts \/mnt\/server\/data\/karts\r\n\r\n# Delete repo's to save disk space.\r\n#rm -rf \/mnt\/server\/stk-code && rm -rf \/mnt\/server\/stk-assets", + "container": "ghcr.io\/parkervcp\/installers:debian", + "entrypoint": "bash" + } + }, + "variables": [] +} From 2527806a839265f364ca78bf3743d40617653667 Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sat, 23 Mar 2024 21:08:12 -0400 Subject: [PATCH 02/12] Create ReadMe.md --- game_eggs/SuperTuxKart/ReadMe.md | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 game_eggs/SuperTuxKart/ReadMe.md diff --git a/game_eggs/SuperTuxKart/ReadMe.md b/game_eggs/SuperTuxKart/ReadMe.md new file mode 100644 index 00000000..2bfb4df1 --- /dev/null +++ b/game_eggs/SuperTuxKart/ReadMe.md @@ -0,0 +1,37 @@ +# SuperTuxKart + +SuperTuxKart is a 3D open-source arcade racer with a variety characters, tracks, and modes to play. + +## Files downloaded from their [Github](https://github.com/supertuxkart/stk-code) and [SourceForge](https://svn.code.sf.net/p/supertuxkart/code/stk-assets) + +To compile the executable as outlined in their [building instruction](https://github.com/supertuxkart/stk-code/blob/master/INSTALL.md) and [source control documentation](https://supertuxkart.net/Source_control) files from both of these sources is required to be downloaded. + +## [Documentation](https://github.com/supertuxkart/stk-code/blob/master/NETWORKING.md) + +Essentailly this is a standard build of the regular SuperTuxKart client but with a special flag when being compiled that produces a GUI-less binary optimized for size and memory usage. + +## Install notes + +First install will take a while because the games source code and assets will be downloaded and the games executable will have to be compiled. + +## Installation/System Requirements +| | Bare Minimum | Recommended | +|---------|---------|---------| +| RAM | 1GiB | 1GiB | +| Storage | 3GiB | 5GiB | + +## Server Ports + +| Port | default | +|---------|---------| +| Game | 2759 | + +### Notes + +To change server settings, stop the server then edit the 'config.xml' file in the root of the container. When done save the file and start the server. + +2759 is the default port, but any port can be used. You will have to manually change it in the config.xml file. + +To update the server (only should have to be done when the games code or assets are updated) in panel go to Servers > SuperTuxKart Server > Manage > Reinstall. This will download the updated code/assets (should exclude anything that didn't change) and recompile the executable. + +Currently this is setup to run a local lan server. To make this a wan server (available in the SuperTuxKart online lobby list) read the document at this link and make the necessary changes to the [startup command](https://github.com/supertuxkart/stk-code/blob/master/NETWORKING.md). From 269c2351a948d671688620b1fa65d2f07fc0b7eb Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sat, 23 Mar 2024 21:11:21 -0400 Subject: [PATCH 03/12] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b5965c86..116283fc 100644 --- a/README.md +++ b/README.md @@ -344,6 +344,8 @@ If you are reading this it looks like you are looking to add an egg to your serv * [VEIN](game_eggs/steamcmd_servers/vein) * [Wurm Unlimited](game_eggs/steamcmd_servers/wurm_unlimited/) +[SuperTuxKart](game_eggs/SuperTuxKart) + [Teeworlds](game_eggs/teeworlds) * [Teeworlds](game_eggs/teeworlds/teeworlds) From 3eec7dce7adcd3371954153068e8a1b2b3cdcd79 Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sat, 23 Mar 2024 21:13:22 -0400 Subject: [PATCH 04/12] Update ReadMe.md --- game_eggs/SuperTuxKart/ReadMe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game_eggs/SuperTuxKart/ReadMe.md b/game_eggs/SuperTuxKart/ReadMe.md index 2bfb4df1..97baacea 100644 --- a/game_eggs/SuperTuxKart/ReadMe.md +++ b/game_eggs/SuperTuxKart/ReadMe.md @@ -8,7 +8,7 @@ To compile the executable as outlined in their [building instruction](https://gi ## [Documentation](https://github.com/supertuxkart/stk-code/blob/master/NETWORKING.md) -Essentailly this is a standard build of the regular SuperTuxKart client but with a special flag when being compiled that produces a GUI-less binary optimized for size and memory usage. +Essentially this is a standard build of the regular SuperTuxKart client but with a special flag when being compiled that produces a GUI-less binary optimized for size and memory usage. ## Install notes From b790f9f8d6a7c1d161a4678254c9e494ab4059dd Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sat, 23 Mar 2024 21:36:22 -0400 Subject: [PATCH 05/12] Update egg-super-tux-kart.json --- game_eggs/SuperTuxKart/egg-super-tux-kart.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game_eggs/SuperTuxKart/egg-super-tux-kart.json b/game_eggs/SuperTuxKart/egg-super-tux-kart.json index 38332704..5103380c 100644 --- a/game_eggs/SuperTuxKart/egg-super-tux-kart.json +++ b/game_eggs/SuperTuxKart/egg-super-tux-kart.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2024-03-23T19:32:36-04:00", + "exported_at": "2024-03-23T21:35:53-04:00", "name": "SuperTuxKart", "author": "mattamn107@github.com", "description": "Egg for hosting a SuperTuxKart Server. \r\nhttps:\/\/supertuxkart.net\/Main_Page\r\n\r\nFirst install will take a while because the games source code and assets will be downloaded and the games executable will have to be compiled.\r\n\r\nTo change server settings, stop the server then edit the 'config.xml' file in the root of the container. When done save the file and start the server.\r\n\r\nTo update the server (only should have to be done when the games code or assets are updated) in panel go to Servers > SuperTuxKart Server > Manage > Reinstall. This will download the updated code\/assets (should exclude anything that didn't change) and recompile the executable.\r\n\r\nCurrently this is setup to run a local lan server. To make this a wan server (available in the SuperTuxKart online lobby list) read the document at this link and make the necessary changes to the startup command: https:\/\/github.com\/supertuxkart\/stk-code\/blob\/master\/NETWORKING.md", @@ -13,7 +13,7 @@ "ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian" }, "file_denylist": [], - "startup": ".\/bin\/supertuxkart --server-config=config.xml --lan-server=Pterodactyl_Server --network-console", + "startup": ".\/bin\/supertuxkart --server-config=config.xml --lan-server=test --network-console", "config": { "files": "{}", "startup": "{\r\n \"done\": \"Available command:\"\r\n}", @@ -22,7 +22,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n\r\n# Install build tools\r\necho \"deb http:\/\/deb.debian.org\/debian bullseye-backports main\" >> \/etc\/apt\/sources.list && \\\r\napt-get update && apt-get -y full-upgrade && \\\r\n apt-get install -y build-essential cmake libbluetooth-dev libsdl2-dev \\\r\n libcurl4-openssl-dev libenet-dev libfreetype6-dev libharfbuzz-dev \\\r\n libjpeg-dev libogg-dev libopenal-dev libpng-dev \\\r\n libssl-dev libvorbis-dev libmbedtls-dev pkg-config zlib1g-dev subversion\r\n\r\nif [ ! -d \"\/mnt\/server\/stk-code\" ] && [ ! -d \"\/mnt\/server\/stk-assets\" ]; then\r\n \r\n #clone code repo\r\n git clone https:\/\/github.com\/supertuxkart\/stk-code \/mnt\/server\/stk-code\r\n \r\n #get assets\r\n svn co https:\/\/svn.code.sf.net\/p\/supertuxkart\/code\/stk-assets \/mnt\/server\/stk-assets\r\n \r\n # go into the stk-code directory\r\n cd \/mnt\/server\/stk-code\r\n \r\n # create and enter the cmake_build directory\r\n mkdir cmake_build\r\n \r\nelse\r\n\r\n #update existing stuff\r\n cd \/mnt\/server\/stk-assets\r\n svn up\r\n \r\n cd \/mnt\/server\/stk-code\r\n git pull\r\n\r\n\r\nfi\r\n\r\n#build the server\r\ncd cmake_build\r\ncmake .. -DSERVER_ONLY=ON\r\nmake\r\n\r\n#copy binary to root\/bin and make it executable\r\nmkdir \/mnt\/server\/bin\r\ncp \/mnt\/server\/stk-code\/cmake_build\/bin\/supertuxkart \/mnt\/server\/bin\/supertuxkart\r\nchmod +x \/mnt\/server\/bin\/supertuxkart\r\n\r\n#copy data folder\r\ncp -r \/mnt\/server\/stk-code\/data \/mnt\/server\/data\r\n\r\n#copy extra assets to data folder\r\nmv \/mnt\/server\/stk-assets\/library \/mnt\/server\/data\/library\r\nmv \/mnt\/server\/stk-assets\/models \/mnt\/server\/data\/models\r\nmv \/mnt\/server\/stk-assets\/music \/mnt\/server\/data\/music\r\nmv \/mnt\/server\/stk-assets\/sfx \/mnt\/server\/data\/sfx\r\nmv \/mnt\/server\/stk-assets\/textures \/mnt\/server\/data\/textures\r\nmv \/mnt\/server\/stk-assets\/tracks \/mnt\/server\/data\/tracks\r\nmv \/mnt\/server\/stk-assets\/karts \/mnt\/server\/data\/karts\r\n\r\n# Delete repo's to save disk space.\r\n#rm -rf \/mnt\/server\/stk-code && rm -rf \/mnt\/server\/stk-assets", + "script": "#!\/bin\/bash\r\n\r\n# Install build tools\r\necho \"deb http:\/\/deb.debian.org\/debian bullseye-backports main\" >> \/etc\/apt\/sources.list && \\\r\napt-get update && apt-get -y full-upgrade && \\\r\n apt-get install -y build-essential cmake libbluetooth-dev libsdl2-dev \\\r\n libcurl4-openssl-dev libenet-dev libfreetype6-dev libharfbuzz-dev \\\r\n libjpeg-dev libogg-dev libopenal-dev libpng-dev \\\r\n libssl-dev libvorbis-dev libmbedtls-dev pkg-config zlib1g-dev subversion\r\n\r\nif [ ! -d \"\/mnt\/server\/stk-code\" ] && [ ! -d \"\/mnt\/server\/stk-assets\" ]; then\r\n \r\n #clone code repo\r\n git clone https:\/\/github.com\/supertuxkart\/stk-code \/mnt\/server\/stk-code\r\n \r\n #get assets\r\n svn co https:\/\/svn.code.sf.net\/p\/supertuxkart\/code\/stk-assets \/mnt\/server\/stk-assets\r\n \r\n # go into the stk-code directory\r\n cd \/mnt\/server\/stk-code\r\n \r\n # create and enter the cmake_build directory\r\n mkdir cmake_build\r\n \r\nelse\r\n\r\n #update existing stuff\r\n cd \/mnt\/server\/stk-assets\r\n svn up\r\n \r\n cd \/mnt\/server\/stk-code\r\n git pull\r\n\r\n\r\nfi\r\n\r\n#build the server\r\ncd cmake_build\r\ncmake .. -DSERVER_ONLY=ON\r\nmake\r\n\r\n#copy binary to root\/bin and make it executable\r\nmkdir \/mnt\/server\/bin\r\ncp \/mnt\/server\/stk-code\/cmake_build\/bin\/supertuxkart \/mnt\/server\/bin\/supertuxkart\r\nchmod +x \/mnt\/server\/bin\/supertuxkart\r\n\r\n#copy data folder\r\ncp -r \/mnt\/server\/stk-code\/data \/mnt\/server\/data\r\n\r\n#copy extra assets to data folder\r\ncd \/mnt\/server\/stk-assets\r\ncp -r library models music sfx textures tracks karts \/mnt\/server\/data\/\r\n\r\n# Delete repo's to save disk space.\r\n#rm -rf \/mnt\/server\/stk-code && rm -rf \/mnt\/server\/stk-assets", "container": "ghcr.io\/parkervcp\/installers:debian", "entrypoint": "bash" } From c2d4b4064eb5f3f43abd224cea05670ad3615282 Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sat, 23 Mar 2024 21:37:47 -0400 Subject: [PATCH 06/12] Update README.md --- game_eggs/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game_eggs/README.md b/game_eggs/README.md index e56554b9..66212e30 100644 --- a/game_eggs/README.md +++ b/game_eggs/README.md @@ -242,6 +242,8 @@ * [VEIN](steamcmd_servers/vein) * [Wurm Unlimited](steamcmd_servers/wurm_unlimited/) +[SuperTuxKart](SuperTuxKart) + [Teeworlds](teeworlds) [Terraria](terraria) From 9061aa4c2765c8a173d7478cd720ce5b671fba73 Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sun, 24 Mar 2024 08:31:58 -0400 Subject: [PATCH 07/12] Update ReadMe.md --- game_eggs/SuperTuxKart/ReadMe.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/game_eggs/SuperTuxKart/ReadMe.md b/game_eggs/SuperTuxKart/ReadMe.md index 97baacea..c5fb073f 100644 --- a/game_eggs/SuperTuxKart/ReadMe.md +++ b/game_eggs/SuperTuxKart/ReadMe.md @@ -2,10 +2,6 @@ SuperTuxKart is a 3D open-source arcade racer with a variety characters, tracks, and modes to play. -## Files downloaded from their [Github](https://github.com/supertuxkart/stk-code) and [SourceForge](https://svn.code.sf.net/p/supertuxkart/code/stk-assets) - -To compile the executable as outlined in their [building instruction](https://github.com/supertuxkart/stk-code/blob/master/INSTALL.md) and [source control documentation](https://supertuxkart.net/Source_control) files from both of these sources is required to be downloaded. - ## [Documentation](https://github.com/supertuxkart/stk-code/blob/master/NETWORKING.md) Essentially this is a standard build of the regular SuperTuxKart client but with a special flag when being compiled that produces a GUI-less binary optimized for size and memory usage. From 171aa952e26eecc998bcafcaeb6d489ab68f436f Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sun, 24 Mar 2024 08:34:28 -0400 Subject: [PATCH 08/12] Update egg-super-tux-kart.json --- game_eggs/SuperTuxKart/egg-super-tux-kart.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game_eggs/SuperTuxKart/egg-super-tux-kart.json b/game_eggs/SuperTuxKart/egg-super-tux-kart.json index 5103380c..09208b73 100644 --- a/game_eggs/SuperTuxKart/egg-super-tux-kart.json +++ b/game_eggs/SuperTuxKart/egg-super-tux-kart.json @@ -7,7 +7,7 @@ "exported_at": "2024-03-23T21:35:53-04:00", "name": "SuperTuxKart", "author": "mattamn107@github.com", - "description": "Egg for hosting a SuperTuxKart Server. \r\nhttps:\/\/supertuxkart.net\/Main_Page\r\n\r\nFirst install will take a while because the games source code and assets will be downloaded and the games executable will have to be compiled.\r\n\r\nTo change server settings, stop the server then edit the 'config.xml' file in the root of the container. When done save the file and start the server.\r\n\r\nTo update the server (only should have to be done when the games code or assets are updated) in panel go to Servers > SuperTuxKart Server > Manage > Reinstall. This will download the updated code\/assets (should exclude anything that didn't change) and recompile the executable.\r\n\r\nCurrently this is setup to run a local lan server. To make this a wan server (available in the SuperTuxKart online lobby list) read the document at this link and make the necessary changes to the startup command: https:\/\/github.com\/supertuxkart\/stk-code\/blob\/master\/NETWORKING.md", + "description": "Egg for hosting a SuperTuxKart Server.", "features": null, "docker_images": { "ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian" From 1960009c96a08391b46839916f8a04ce2fd04532 Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sun, 24 Mar 2024 09:43:26 -0400 Subject: [PATCH 09/12] Update ReadMe.md --- game_eggs/SuperTuxKart/ReadMe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game_eggs/SuperTuxKart/ReadMe.md b/game_eggs/SuperTuxKart/ReadMe.md index c5fb073f..8b8e87f3 100644 --- a/game_eggs/SuperTuxKart/ReadMe.md +++ b/game_eggs/SuperTuxKart/ReadMe.md @@ -28,6 +28,6 @@ To change server settings, stop the server then edit the 'config.xml' file in th 2759 is the default port, but any port can be used. You will have to manually change it in the config.xml file. -To update the server (only should have to be done when the games code or assets are updated) in panel go to Servers > SuperTuxKart Server > Manage > Reinstall. This will download the updated code/assets (should exclude anything that didn't change) and recompile the executable. +To update the server (only should have to be done when the games code or assets are updated) in panel as an admin go to Servers > SuperTuxKart Server > Manage > Reinstall. If you are a standard user go to SuperTuxKart Server > Settings > Reinstall Sever. This will download the updated code/assets (should exclude anything that didn't change) and recompile the executable. Currently this is setup to run a local lan server. To make this a wan server (available in the SuperTuxKart online lobby list) read the document at this link and make the necessary changes to the [startup command](https://github.com/supertuxkart/stk-code/blob/master/NETWORKING.md). From d5e1e2a9e4f7991bb65f61d05c76e3d2e53d4447 Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sun, 24 Mar 2024 10:14:04 -0400 Subject: [PATCH 10/12] Update ReadMe.md --- game_eggs/SuperTuxKart/ReadMe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game_eggs/SuperTuxKart/ReadMe.md b/game_eggs/SuperTuxKart/ReadMe.md index 8b8e87f3..693a4e4c 100644 --- a/game_eggs/SuperTuxKart/ReadMe.md +++ b/game_eggs/SuperTuxKart/ReadMe.md @@ -28,6 +28,6 @@ To change server settings, stop the server then edit the 'config.xml' file in th 2759 is the default port, but any port can be used. You will have to manually change it in the config.xml file. -To update the server (only should have to be done when the games code or assets are updated) in panel as an admin go to Servers > SuperTuxKart Server > Manage > Reinstall. If you are a standard user go to SuperTuxKart Server > Settings > Reinstall Sever. This will download the updated code/assets (should exclude anything that didn't change) and recompile the executable. +To update the server (only should have to be done when the games code or assets are updated) in panel as an admin go to Servers > SuperTuxKart Server > Manage > Reinstall. If you are a standard user go to SuperTuxKart Server > Settings > Reinstall Server. This will download the updated code/assets (should exclude anything that didn't change) and recompile the executable. Currently this is setup to run a local lan server. To make this a wan server (available in the SuperTuxKart online lobby list) read the document at this link and make the necessary changes to the [startup command](https://github.com/supertuxkart/stk-code/blob/master/NETWORKING.md). From 791c1bbb61332c90db0b0d10c1b6d7f2e31dbeaf Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Sun, 24 Mar 2024 14:11:48 -0400 Subject: [PATCH 11/12] Update egg-super-tux-kart.json --- .../SuperTuxKart/egg-super-tux-kart.json | 67 ++++++++++++++++++- 1 file changed, 64 insertions(+), 3 deletions(-) diff --git a/game_eggs/SuperTuxKart/egg-super-tux-kart.json b/game_eggs/SuperTuxKart/egg-super-tux-kart.json index 09208b73..3e679a7b 100644 --- a/game_eggs/SuperTuxKart/egg-super-tux-kart.json +++ b/game_eggs/SuperTuxKart/egg-super-tux-kart.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2024-03-23T21:35:53-04:00", + "exported_at": "2024-03-24T14:11:16-04:00", "name": "SuperTuxKart", "author": "mattamn107@github.com", "description": "Egg for hosting a SuperTuxKart Server.", @@ -13,7 +13,7 @@ "ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian" }, "file_denylist": [], - "startup": ".\/bin\/supertuxkart --server-config=config.xml --lan-server=test --network-console", + "startup": ".\/bin\/supertuxkart --server-config={{CONFIG_NAME}} --lan-server={{SERVER_NAME}} --network-console --port=\"{{SERVER_PORT}}\" --difficulty={{DIFFICULTY}} --mode={{MODE}} --max-players={{MAX_PLAYERS}} --motd=\"{{MOTD}}\"", "config": { "files": "{}", "startup": "{\r\n \"done\": \"Available command:\"\r\n}", @@ -27,5 +27,66 @@ "entrypoint": "bash" } }, - "variables": [] + "variables": [ + { + "name": "Server Name", + "description": "The Name of the Server", + "env_variable": "SERVER_NAME", + "default_value": "Pterodactyl_Server", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:50", + "field_type": "text" + }, + { + "name": "Config File Name", + "description": "Name of the Config File.", + "env_variable": "CONFIG_NAME", + "default_value": "config.xml", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:20", + "field_type": "text" + }, + { + "name": "Mode", + "description": "0 = Normal Race\r\n1 = Time Trial\r\n2 = Battle\r\n3 = Soccer\r\n4 = Follow The Leader\r\n5 = Capture the Flag", + "env_variable": "MODE", + "default_value": "0", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:20", + "field_type": "text" + }, + { + "name": "Difficulty", + "description": "Speed of the carts and AI difficulty\r\n0 = Beginner\r\n1 = Intermediate\r\n2 = Expert\r\n3 = SuperTux", + "env_variable": "DIFFICULTY", + "default_value": "0", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:20", + "field_type": "text" + }, + { + "name": "Max Players", + "description": "How many players can there be in the server.", + "env_variable": "MAX_PLAYERS", + "default_value": "8", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:20", + "field_type": "text" + }, + { + "name": "Message of the Day", + "description": "Message of the Day displayed in the server.", + "env_variable": "MOTD", + "default_value": "", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:100", + "field_type": "text" + } + ] } From 8e05d5b01744a7c9dd99f5b3f33b18d82c826317 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:19:54 +0100 Subject: [PATCH 12/12] more input validation --- game_eggs/SuperTuxKart/egg-super-tux-kart.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/game_eggs/SuperTuxKart/egg-super-tux-kart.json b/game_eggs/SuperTuxKart/egg-super-tux-kart.json index 3e679a7b..f51642cd 100644 --- a/game_eggs/SuperTuxKart/egg-super-tux-kart.json +++ b/game_eggs/SuperTuxKart/egg-super-tux-kart.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2024-03-24T14:11:16-04:00", + "exported_at": "2024-03-24T19:19:23+01:00", "name": "SuperTuxKart", "author": "mattamn107@github.com", "description": "Egg for hosting a SuperTuxKart Server.", @@ -45,7 +45,7 @@ "default_value": "config.xml", "user_viewable": true, "user_editable": true, - "rules": "required|string|max:20", + "rules": "required|regex:\/^([\\w\\d._-]+)(\\.xml)$\/", "field_type": "text" }, { @@ -55,7 +55,7 @@ "default_value": "0", "user_viewable": true, "user_editable": true, - "rules": "required|string|max:20", + "rules": "required|string|in:0,1,2,3,4,5", "field_type": "text" }, { @@ -65,7 +65,7 @@ "default_value": "0", "user_viewable": true, "user_editable": true, - "rules": "required|string|max:20", + "rules": "required|string|in:0,1,2,3", "field_type": "text" }, { @@ -75,7 +75,7 @@ "default_value": "8", "user_viewable": true, "user_editable": true, - "rules": "required|string|max:20", + "rules": "required|numeric|between:1,24", "field_type": "text" }, { @@ -89,4 +89,4 @@ "field_type": "text" } ] -} +} \ No newline at end of file