eggs icon indicating copy to clipboard operation
eggs copied to clipboard

adding egg for counter-strike 2

Open Ballaual opened this issue 1 year ago • 14 comments

Description

This PR adds a new egg for counter-strike 2. Due to the fact that there is no standalone branch like in csgo you will need to login with a steam account to download the game files. The installation might be a bit clunky when using steam guard (only mail works) so I added a detailed installation manual in the games README.md file. Also i added a template server.cfg file and download it from this repo when installing the server, because the default file is empty. I will maintain this egg as there will be any changes from Valve or they bring a standalone branch. Also i will add more content to this egg, e.g. Workshop Collections (if supported) over time. Any ideas or wishes are appreciated.

Checklist for all submissions

  • [x] Have you followed the guidelines in our Contributing document?
  • [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • [x] Have you tested and reviewed your changes with confidence that everything works?
  • [x] Did you branch your changes and PR from that branch and not from your master branch?
    • If not, why?:
  • [x] You verify that the start command applied does not use a shell script
    • [ ] If some script is needed then it is part of a current yolk or a PR to add one
  • [x] The egg was exported from the panel

New egg Submissions

  1. [x] Does your submission pass tests (server is connectable)?
  2. [ ] Does your egg use a custom docker image? -> ghcr.io/pterodactyl/games:source
  • [ ] Have you tried to use a generic image?
    • [ ] Did you PR the necessary changes to make it work?
  1. [x] Have you added the egg to the main README.md and any other README files in subdirectories of the egg (e.g /game_eggs) according to the alphabetical order?
  2. [x] Have you added a unique README.md for the egg you are adding according to the alphabetical order?
  3. [x] You verify that the start command applied does not use a shell script
    • [ ] If some script is needed then it is part of a current yolk or a PR to add one
  4. [x] The egg was exported from the panel

Ballaual avatar Oct 06 '23 09:10 Ballaual

I am putting this on hold, as we do not like to run the client and would like to just wait for their dedicated server files. This will also not work as the client needs the sniper runtime installed in the docker image

QuintenQVD0 avatar Oct 07 '23 08:10 QuintenQVD0

Also this needs the sniper runtime to be installed in the docker image

QuintenQVD0 avatar Oct 09 '23 18:10 QuintenQVD0

I am putting this on hold, as we do not like to run the client and would like to just wait for their dedicated server files.

I understand, i just wanted to share my attempt here, so anyone else can spin up a cs2 server if needed. If Valve decides to update the 740 depot working with cs2, i will update this egg immediately of course. But i dont really think that will happen in the near future as they need to fix their game first ;) In the meantime i am working on some new stuff to be added and improving the install process.

With the latest commit i added a new variable to determine which gamemode the server should start with. you can choose between, comp (default), wingman, casual, deathmatch and the custom gamemode.

I also cleaned up the startcommand and removed unnecessary parameters. -usercon does not work either and rcon also working fine without it. -console has no impact too, so i removed it

Also this needs the sniper runtime to be installed in the docker image

This is a false information. The sniper runtime gets automatically installed by steamcmd when installing the 730 depot. Installing or upgrading a game that runs in the sniper environment will download this compatibility tool 1628350 automatically. Source I just installed a fresh server and i was able to set it up as described the README, run it and able to join it without any further dependencies.

Ballaual avatar Oct 09 '23 19:10 Ballaual

I am putting this on hold, as we do not like to run the client and would like to just wait for their dedicated server files.

I understand, i just wanted to share my attempt here, so anyone else can spin up a cs2 server if needed. If Valve decides to update the 740 depot working with cs2, i will update this egg immediately of course. But i dont really think that will happen in the near future as they need to fix their game first ;) In the meantime i am working on some new stuff to be added and improving the install process.

With the latest commit i added a new variable to determine which gamemode the server should start with. you can choose between, comp (default), wingman, casual, deathmatch and the custom gamemode.

I also cleaned up the startcommand and removed unnecessary parameters. -usercon does not work either and rcon also working fine without it. -console has no impact too, so i removed it

Also this needs the sniper runtime to be installed in the docker image

This is a false information. The sniper runtime gets automatically installed by steamcmd when installing the 730 depot. Installing or upgrading a game that runs in the sniper environment will download this compatibility tool 1628350 automatically. Source I just installed a fresh server and i was able to set it up as described the README, run it and able to join it without any further dependencies.

Installing or upgrading a game that runs in the sniper environment will download this compatibility tool automatically. It can also be installed by running this command:

You are wrong. It will NOT be installed by default. Only when game runs in Sniper Env

its NOT part of 730 Depot https://steamdb.info/depot/730/

CS2 is atm more or lesser in a EA phase (Even though it was marked as a stable release). As long the biggest Bugs not fixed, there will never be a server released

And when it is released, it will definitely not be compatible with the client workaround and people post tons of support requests

gOOvER avatar Oct 09 '23 19:10 gOOvER

You are wrong. It will NOT be installed by default. Only when game runs in Sniper Env its NOT part of 730 Depot https://steamdb.info/depot/730/

I see, but it definetly also not correct that it needs to be installed separately, no? "Server" runs fine with default steamcmd install of 730.

CS2 is atm more or lesser in a EA phase (Even though it was marked as a stable release). As long the biggest Bugs not fixed, there will never be a server released

That is absolutely correct, before game is not at least 99% fixed they wont touch the server files.

And when it is released, it will definitely not be compatible with the client workaround and people post tons of support requests

Very sure it is not. I am not begging to force merge this ^^ as i said i will keep this updated as soon they release server files and in the meantime i will add more functionalities and QOL updates and will also update them with release of server files if needed.

Ballaual avatar Oct 09 '23 19:10 Ballaual

329c60c Summary

  • Adjusted variable name for user, password and steamguard matching to the names in the docker image games:source -> STEAM_USER, STEAM_PASS, STEAM_AUTH so that the files can be updated on restart using the same steam user entered when installing the server. Before was used anonymous user by default resulting in not correctly updating the files due to "no subscription" error.
  • Ajusted the install script matching the changed variables
  • Fix incorrect spaces between maps inside the SRCDS_MAP variable, resulting in not beeing able to select maps properly
  • Added the 2 missing hostage maps italy and office to the map selection
  • Added AUTO_UPDATE variable as boolean, with default value 1

Ballaual avatar Oct 09 '23 21:10 Ballaual

oh wow! Seems that valve brought a update for 740 app (server files) will test them and update the egg if working well! https://steamdb.info/app/740/depots/

UPDATE: the files are not working yet! Looks like they are just for the new csgo_legacy beta introduced tonight...

MasterRequestRestart Your server needs to be restarted in order to receive the latest update.

Ballaual avatar Oct 10 '23 06:10 Ballaual

ohh nice

gOOvER avatar Oct 10 '23 07:10 gOOvER

@QuintenQVD0 @gOOvER Looks less and less like there will ever be standalone files for servers as they integrated 730 into anonymous now and keep updating the server files with any patch they provide. What do you think about that?

Ballaual avatar Nov 07 '23 02:11 Ballaual

This looks fine to me but we prefere to wait until they release a dedicated app id for cs2.

They made CSGO available in a branch, pretty sure app id will not change for CS2

DylanDelobel avatar Nov 18 '23 03:11 DylanDelobel

@QuintenQVD0 or @parkervcp can they merge it?

HerrSammyDE avatar Dec 06 '23 20:12 HerrSammyDE

What do we need to merge this? :)

DylanDelobel avatar Dec 09 '23 23:12 DylanDelobel

What do we need to merge this? :)

The sniper runtime is still needed so may start by fixing that?

QuintenQVD0 avatar Dec 10 '23 08:12 QuintenQVD0

FYI: there is https://gitlab.steamos.cloud/steamrt/sniper/platform

b-reich avatar Jan 06 '24 17:01 b-reich