-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Egg Request]: STN Survive The Nights #1665
Comments
i request this cause mostly only 2 Zombie games Project zomboid and 7D2d due to Dev's issues with updating 7D2D always breaks somthing and getting tiring of its group i wanted to suggest a option or egg Suggestion for STN Survive The Nights |
Install Docs: https://survivethenights.fandom.com/wiki/Hosting |
that dose not help at all |
It does help the person, who's creating the egg for you. So he dont need to search for an installation guide! |
if anyone can make the EGG |
@MADDMAXKZ on mygameplatform.com the egg is published where you can use the game. |
@killertobyd are you going to publish the json file so others can use it on there own server |
@MADDMAXKZ The Egg is yet to be published. I just discovered a few bugs and it's hard to release something like this before they're fixed. But the server as you can see is in the server list |
@nightmarepup yes but only when I have fixed it otherwise it makes no sense |
yeah thats fair just got confused because u said it was already published |
@nightmarepup It was published but I found some mistakes and I am fixing them. :) |
I'm interested in this egg as well. @killertobyd How's the progress going? |
I am having a look if I can trow a simple egg together to test and then imporve it |
@scootz @MADDMAXKZ @killertobyd please test: {
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-01-29T11:17:51+01:00",
"name": "Survive The Nights",
"author": "[email protected]",
"description": "Survive the Nights is a unique FPS survival game focusing on teamwork, fortification, creativity & strategy. Secure a structure or roam free, the choice is yours. Gameplay focuses on realistic survival, post zombie infestation. Prepare during the day for nightfall. How many nights will you survive?",
"features": [
"steam_disk_space"
],
"docker_images": {
"SteamCMD_Debian": "ghcr.io\/parkervcp\/steamcmd:debian"
},
"file_denylist": [],
"startup": ".\/Server_Linux_x64 -console -batchmode -nographics -no-stereo-rendering",
"config": {
"files": "{\r\n \".\/Config\/ServerConfig.txt\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"serverPort=\": \"serverPort={{server.build.default.port}}\",\r\n \"serverIP=\": \"serverIP=0.0.0.0\",\r\n \"serverName=\": \"serverName={{server.build.env.SERVER_NAME}}\",\r\n \"serverPassword=\": \"serverPassword={{server.build.env.SERVER_PASSWORD}}\",\r\n \"showInPublicLobby=\": \"showInPublicLobby={{server.build.env.SERVER_PUBLIC}}\",\r\n \"serverOwner=\": \"serverOwner={{server.build.env.SERVER_OWNER}}\",\r\n \"WorldName=\": \"WorldName={{server.build.env.WORLDNAME}}\",\r\n \"queryPort=\": \"queryPort={{server.build.env.QUERY_PORT}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"*** Server Connected To STEAM *** \"\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} +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\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "ghcr.io\/parkervcp\/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Auto update",
"description": "Auto update the server on startup",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
},
{
"name": "App id",
"description": "",
"env_variable": "SRCDS_APPID",
"default_value": "1502300",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|in:1502300",
"field_type": "text"
},
{
"name": "Server name",
"description": "The name of the server",
"env_variable": "SERVER_NAME",
"default_value": "New Private Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:48",
"field_type": "text"
},
{
"name": "Server password",
"description": "",
"env_variable": "SERVER_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:32",
"field_type": "text"
},
{
"name": "Public server",
"description": "Show the server in the public lobby",
"env_variable": "SERVER_PUBLIC",
"default_value": "True",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:True,false",
"field_type": "text"
},
{
"name": "Server owner",
"description": "",
"env_variable": "SERVER_OWNER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:48",
"field_type": "text"
},
{
"name": "World name",
"description": "The name of the server world.\r\n\r\nDo not change this after the server started!",
"env_variable": "WORLDNAME",
"default_value": "DedicatedServer",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:32",
"field_type": "text"
},
{
"name": "Query port",
"description": "game port +1",
"env_variable": "QUERY_PORT",
"default_value": "25566",
"user_viewable": true,
"user_editable": false,
"rules": "required|numeric",
"field_type": "text"
}
]
} |
I did give this a try and it does not work. It repeatedly spews out errors. Gave the egg 10G ram and 100G disk space, more than enough to run the game I think. Managed to capture the output so you can see what happens. Its quite big in size. I tried to break/stop the app before it got so big but this is the smallest I could get it. I'm attaching a link here for you to check on my dropbox. Wasn't sure how else I could share this. Hope it helps. |
Something I did notice is there is only one file in ServerConfig directory. Also there is no .stn-server.db file which suggests it needs sqlite. Would adding sqlite to the image some how get this to work right? |
In your crash log it is complaining about missing .json files. For me they are there on fresh install. So can you send me some install logs? Or at least try to reinstall. If you get a error on startup that stas faild tread support that is normal. |
Here is the install log
|
Looks fine. What is your kernel version? |
Running Arch Linux Linux norbert 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux |
Arch is not on the supported list, it should work. with an up to date kernel what you seem to have |
Would providing an exported tar.gz of the container give more details on why its failing? I could put this in my dropbox. I do have this game running outside of docker and works great so I know the server runs it. EDIT I've put it in dropbox for you to grab here |
Found it, the file parser is blocking for the game engine from generating its own file in the Config folder. Use for now the temp image as I am waiting for my PR to be approved to the official repo with the needed changes {
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-01-30T18:08:24+01:00",
"name": "Survive The Nights",
"author": "[email protected]",
"description": "Survive the Nights is a unique FPS survival game focusing on teamwork, fortification, creativity & strategy. Secure a structure or roam free, the choice is yours. Gameplay focuses on realistic survival, post zombie infestation. Prepare during the day for nightfall. How many nights will you survive?",
"features": [
"steam_disk_space"
],
"docker_images": {
"SteamCMD_Debian": "ghcr.io\/parkervcp\/steamcmd:debian",
"TEMP": "quintenqvd\/pterodactyl_images:temp_steamcmd"
},
"file_denylist": [],
"startup": ".\/Server_Linux_x64 -console -batchmode -nographics",
"config": {
"files": "{\r\n \".\/Config\/ServerConfig.txt\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"serverPort=\": \"serverPort={{server.build.default.port}}\",\r\n \"serverIP=\": \"serverIP=0.0.0.0\",\r\n \"serverName=\": \"serverName={{server.build.env.SERVER_NAME}}\",\r\n \"serverPassword=\": \"serverPassword={{server.build.env.SERVER_PASSWORD}}\",\r\n \"showInPublicLobby=\": \"showInPublicLobby={{server.build.env.SERVER_PUBLIC}}\",\r\n \"serverOwner=\": \"serverOwner={{server.build.env.SERVER_OWNER}}\",\r\n \"WorldName=\": \"WorldName={{server.build.env.WORLDNAME}}\",\r\n \"queryPort=\": \"queryPort={{server.build.env.QUERY_PORT}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"*** Server Connected To STEAM *** \"\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} +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\nmkdir -p \/mnt\/server\/Config\r\ncd \/mnt\/server\/Config\r\n## add below your custom commands if needed\r\ncurl -sSL -o ServerConfig.txt https:\/\/pteropaste.com\/5jic5h\r\ncurl -sSL -o TpPresets.json https:\/\/pteropaste.com\/6z8nur\r\ncurl -sSL -o UserPermissions.json https:\/\/pteropaste.com\/l3gy6z\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "ghcr.io\/parkervcp\/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Auto update",
"description": "Auto update the server on startup",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
},
{
"name": "App id",
"description": "",
"env_variable": "SRCDS_APPID",
"default_value": "1502300",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|in:1502300",
"field_type": "text"
},
{
"name": "Server name",
"description": "The name of the server",
"env_variable": "SERVER_NAME",
"default_value": "New Private Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:48",
"field_type": "text"
},
{
"name": "Server password",
"description": "",
"env_variable": "SERVER_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:32",
"field_type": "text"
},
{
"name": "Public server",
"description": "Show the server in the public lobby",
"env_variable": "SERVER_PUBLIC",
"default_value": "True",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:True,false",
"field_type": "text"
},
{
"name": "Server owner",
"description": "",
"env_variable": "SERVER_OWNER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:48",
"field_type": "text"
},
{
"name": "World name",
"description": "The name of the server world.\r\n\r\nDo not change this after the server started!",
"env_variable": "WORLDNAME",
"default_value": "DedicatedServer",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:32",
"field_type": "text"
},
{
"name": "Query port",
"description": "game port +1",
"env_variable": "QUERY_PORT",
"default_value": "25566",
"user_viewable": true,
"user_editable": false,
"rules": "required|numeric",
"field_type": "text"
}
]
} |
Good news, server does seem to work with the new changes you made to the json. Unfortunately, I have yet to successfully connect to the server with STN. It doesn't show on the server lists nor does it connect directly with ip address. Probably something I'm missing. I've port forwarded 27000 to the server, checked with GRC's port scanner and it is indeed open. I do see port 27000 opened and listening via netstat on the linux server. Not sure what I'm missing. |
Looking closer at it, the ServerConfig.txt has default settings. 127.0.0.1, 0 and 0 for serverport and query port. So the substitutions your script does doesn't seem to work. EDIT |
The file parser should auto set the game port , and query port and set the ip to 0.0.0.0. As you need to allocated 2 ports |
I likly messed up somwhere. I have a look later. As this should all go automatic |
This should work now: You will have to remove the existing config file for it to work and then reinstall {
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-01-31T07:13:42+01:00",
"name": "Survive The Nights",
"author": "[email protected]",
"description": "Survive the Nights is a unique FPS survival game focusing on teamwork, fortification, creativity & strategy. Secure a structure or roam free, the choice is yours. Gameplay focuses on realistic survival, post zombie infestation. Prepare during the day for nightfall. How many nights will you survive?",
"features": [
"steam_disk_space"
],
"docker_images": {
"SteamCMD_Debian": "ghcr.io\/parkervcp\/steamcmd:debian",
"TEMP": "quintenqvd\/pterodactyl_images:temp_steamcmd"
},
"file_denylist": [],
"startup": ".\/Server_Linux_x64 -console -batchmode -nographics",
"config": {
"files": "{\r\n \".\/Config\/ServerConfig.txt\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"serverPort=\": \"serverPort={{server.build.default.port}}\",\r\n \"serverIP=\": \"serverIP=0.0.0.0\",\r\n \"serverName=\": \"serverName={{server.build.env.SERVER_NAME}}\",\r\n \"serverPassword=\": \"serverPassword={{server.build.env.SERVER_PASSWORD}}\",\r\n \"showInPublicLobby=\": \"showInPublicLobby={{server.build.env.SERVER_PUBLIC}}\",\r\n \"serverOwner=\": \"serverOwner={{server.build.env.SERVER_OWNER}}\",\r\n \"WorldName=\": \"WorldName={{server.build.env.WORLDNAME}}\",\r\n \"queryPort=\": \"queryPort={{server.build.env.QUERY_PORT}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"*** Server Connected To STEAM *** \"\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} +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\nmkdir -p \/mnt\/server\/Config\r\ncd \/mnt\/server\/Config\r\n## add below your custom commands if needed\r\n\r\ncurl -sSL -o ServerConfig.txt https:\/\/pteropaste.com\/dl5ffa\r\ncurl -sSL -o TpPresets.json https:\/\/pteropaste.com\/6z8nur\r\ncurl -sSL -o UserPermissions.json https:\/\/pteropaste.com\/l3gy6z\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "ghcr.io\/parkervcp\/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Auto update",
"description": "Auto update the server on startup",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
},
{
"name": "App id",
"description": "",
"env_variable": "SRCDS_APPID",
"default_value": "1502300",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|in:1502300",
"field_type": "text"
},
{
"name": "Server name",
"description": "The name of the server",
"env_variable": "SERVER_NAME",
"default_value": "New Private Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:48",
"field_type": "text"
},
{
"name": "Server password",
"description": "",
"env_variable": "SERVER_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:32",
"field_type": "text"
},
{
"name": "Public server",
"description": "Show the server in the public lobby",
"env_variable": "SERVER_PUBLIC",
"default_value": "True",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:True,false",
"field_type": "text"
},
{
"name": "Server owner",
"description": "",
"env_variable": "SERVER_OWNER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:48",
"field_type": "text"
},
{
"name": "World name",
"description": "The name of the server world.\r\n\r\nDo not change this after the server started!",
"env_variable": "WORLDNAME",
"default_value": "DedicatedServer",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:32",
"field_type": "text"
},
{
"name": "Query port",
"description": "game port +1",
"env_variable": "QUERY_PORT",
"default_value": "25566",
"user_viewable": true,
"user_editable": false,
"rules": "required|numeric",
"field_type": "text"
}
]
} |
I don't know if this is me or something changed in the image(s)? I did completely reinstall the linux box with proxmox, set up a lxc container for ptero and another container for wings/stn. This is what I'm getting now.
|
This is not related to me. Its tuesday. Steam maintenance window. I keep forgetting about that, i'll try again in a bit. |
Ok I was able to fix the above steam error. It was combination of a DNS issue and Steams' weekly maintenance happening on Tuesday (today). With the new json file change you posted, I had to change the subsitutions again to match for the values to change in the server config. Still haven't been able to get the queryPort to change. I've tried both the TEMP image and the other image. Same thing. |
How hard would it be to create a custom image with an editor like joe or nano? Can you point me to some where that would describe/show how to do this? Can you publish the docker file (if that is what you used) to create your TEMP image? I'm curious by nature so I have to ask. :) EDIT EDIT Again EDIT once more {
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-02-01T04:00:59+00:00",
"name": "Survive The Nights",
"author": "[email protected]",
"description": "Survive the Nights is a unique FPS survival game focusing on teamwork, fortification, creativity & strategy. Secure a structure or roam free, the choice is yours. Gameplay focuses on realistic survival, post zombie infestation. Prepare during the day for nightfall. How many nights will you survive?",
"features": [
"steam_disk_space"
],
"docker_images": {
"SteamCMD_Debian": "ghcr.io\/parkervcp\/steamcmd:debian",
"TEMP": "quintenqvd\/pterodactyl_images:temp_steamcmd"
},
"file_denylist": [],
"startup": ".\/Server_Linux_x64 -console -batchmode -nographics",
"config": {
"files": "{\r\n \".\/Config\/ServerConfig.txt\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"ServerPort=\": \"ServerPort={{server.build.default.port}}\",\r\n \"ServerIP=\": \"ServerIP=0.0.0.0\",\r\n \"ServerName=\": \"ServerName={{server.build.env.SERVER_NAME}}\",\r\n \"ServerPassword=\": \"ServerPassword={{server.build.env.SERVER_PASSWORD}}\",\r\n \"ShowInPublicLobby=\": \"ShowInPublicLobby={{server.build.env.SERVER_PUBLIC}}\",\r\n \"ServerOwner=\": \"ServerOwner={{server.build.env.SERVER_OWNER}}\",\r\n \"worldname=\": \"worldname={{server.build.env.WORLDNAME}}\",\r\n \"queryPort=\": \"queryPort={{server.build.env.QUERY_PORT}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"*** Server Connected To STEAM *** \"\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} +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\nmkdir -p \/mnt\/server\/Config\r\ncd \/mnt\/server\/Config\r\n## add below your custom commands if needed\r\ncurl -sSL -o ServerConfig.txt https:\/\/pteropaste.com\/5jic5h\r\ncurl -sSL -o TpPresets.json https:\/\/pteropaste.com\/6z8nur\r\ncurl -sSL -o UserPermissions.json https:\/\/pteropaste.com\/l3gy6z\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "ghcr.io\/parkervcp\/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Auto update",
"description": "Auto update the server on startup",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
},
{
"name": "App id",
"description": "",
"env_variable": "SRCDS_APPID",
"default_value": "1502300",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|in:1502300",
"field_type": "text"
},
{
"name": "Server name",
"description": "The name of the server",
"env_variable": "SERVER_NAME",
"default_value": "New Private Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:48",
"field_type": "text"
},
{
"name": "Server password",
"description": "",
"env_variable": "SERVER_PASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:32",
"field_type": "text"
},
{
"name": "Public server",
"description": "Show the server in the public lobby",
"env_variable": "SERVER_PUBLIC",
"default_value": "True",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:True,false",
"field_type": "text"
},
{
"name": "Server owner",
"description": "",
"env_variable": "SERVER_OWNER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:48",
"field_type": "text"
},
{
"name": "World name",
"description": "The name of the server world.\r\n\r\nDo not change this after the server started!",
"env_variable": "WORLDNAME",
"default_value": "DedicatedServer",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:32",
"field_type": "text"
},
{
"name": "Query port",
"description": "game port +1",
"env_variable": "QUERY_PORT",
"default_value": "25566",
"user_viewable": true,
"user_editable": false,
"rules": "required|numeric",
"field_type": "text"
}
]
} |
|
This config is downloaded and ir is lower case https://pteropaste.com/dl5ffa/ |
I have seen the server auromaticky set all config options and restart multiple times. |
I was getting weird things happening though and not sure why but now it works. Maybe I forgot to use the TEMP image you added. This is what I used this time and works great. Sorry, you are right. Thank you! |
The TEMP image should not mather. Likly because it was a reinstall and not a fresh install but you can connect |
After looking online for a STN server and trying this config I'm having the exact same issue where it no longer accepts new connections after a restart, but it works fine on the initial install or after I click the "reinstall server" button on ptero in the settings page |
Does this expand an already existing service
No
Link to a game or software
STN (Survive The Nights)
Links for the download
https://store.steampowered.com/app/541300/Survive_the_Nights/
Links for the install docs
Requesting a Game egg For Pterodactyl for LINUX Server
The text was updated successfully, but these errors were encountered: