Jump to content

Counter-Strike 2


Dennis

Recommended Posts

Counter-Strike 2


Expect things to not work properly. This config is based on the game files, and not the dedicated server files as they are not available yet.

Despite this config not having a lot of features, getting it working properly has been difficult.

Prerequisite (Windows only)

Copy the following files from Steam client installation folder to C:\TCAFiles\Games\cs2\game\bin\win64

  • tier0_s64.dll
  • vstdlib_s64.dll
  • steamclient64.dll


Another option is to have the Steam client installed on each of the machines where you want to run CS2 servers. The Steam client path (C:\Program Files (x86)\Steam by default) needs to be added to the Path variable.

  1. Open Control Panel (not settings) in Windows
  2. Navigate to System and Security > System > Advanced System Settings
  3. Click Environment Variables...
  4. Under System Variables, select the Path variable and click Edit...
  5. Click New and enter the path for your Steam directory
  6. Save and restart the TCAdmin Monitor service

Prerequisites (Windows and Linux)
You will also need to go to the Steam settings in the game template and configure an existing Steam account. You cannot use anonymous.

Manual installation

  1. Download the config
  2. Go to TCAdmin > System > Settings > Game & Voice Hosting > Game & Other Voice Servers > Import
  3. Save the config as a new config or chose "Overwrite existing config" if you which to overwrite your current CS config. Remember to select the game in the 'Update Game' field if you do
  4. Leave all other settings

Features

Not a whole lot. Game is pretty new, and there's not much documentation for the dedicated server yet. If you have any recommendations, please post them in the thread.

 


 

Link to comment
Share on other sites

59 minutes ago, SuperNova said:

On Steam update, the CFG files such as server.cfg are overwritten.

Best to add a script before Steam update that backs up the cfg's and then replaces them after update.

@echo off
SET mapcycle=%ThisService_RootDirectory%game\csgo\mapcycle.txt.backup
SET maplist=%ThisService_RootDirectory%game\csgo\maplist.txt.backup
SET server=%ThisService_RootDirectory%game\csgo\cfg\server.cfg.backup
if exist "%mapcycle%" (
move /y %mapcycle% %ThisService_RootDirectory%game\csgo\mapcycle.txt
)
if exist "%maplist%" (
move /y %maplist% %ThisService_RootDirectory%game\csgo\maplist.txt
)
if exist "%server%" (
move /y %server% %ThisService_RootDirectory%game\csgo\cfg\server.cfg
)
@echo off
SET mapcycle=%ThisService_RootDirectory%game\csgo\mapcycle.txt
SET maplist=%ThisService_RootDirectory%game\csgo\maplist.txt
SET server=%ThisService_RootDirectory%game\csgo\cfg\server.cfg
if exist "%mapcycle%" (
move /y %mapcycle% %ThisService_RootDirectory%game\csgo\mapcycle.txt.backup 
)
if exist "%maplist%" (
move /y %maplist% %ThisService_RootDirectory%game\csgo\maplist.txt.backup 
)
if exist "%server%" (
move /y %server% %ThisService_RootDirectory%game\csgo\cfg\server.cfg.backup 
)

 

Link to comment
Share on other sites

Hello how you doing? im getting this error on console
already done adding the steam installation directory in path, restarted tca monitor, also added account in game config.

Failed to initialize Steamworks SDK for gameserver.  Could not determine Steam client install directory.

any idea? thanks a lot.

tcadmin.jpg

tcadmin2.jpg

Link to comment
Share on other sites

20 minutes ago, mdqservers said:

Hello how you doing? im getting this error on console
already done adding the steam installation directory in path, restarted tca monitor, also added account in game config.

Failed to initialize Steamworks SDK for gameserver.  Could not determine Steam client install directory.

any idea? thanks a lot.

tcadmin.jpg

tcadmin2.jpg

You update Steam and restart service TCAdmin?

Edited by MoKotik
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

hello I have a strange cs2 crash on startup caused by command line

If I run this command line with a .bat file work correctly if I run in tcadmin it crash during startup

cs2.exe -dedicated -usercon -console -dev +game_type 0 +game_mode 0 +sv_logfile 1 -serverlogging -ip 95.110.133.131 -port 27015 -maxplayers 12 +map cs_italy

I make some test with all parameters and I have discovered that all those command work correctly

cs2.exe -dedicated -usercon -console -dev +game_type 0 +game_mode 0 +sv_logfile 1 -serverlogging -ip 95.110.133.131 -port 27015 -maxplayers 12

but as soon I add +MAP the server crash on startup

+map xxxxxxx

Any help ?

thanks a lot

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...

Cant get server to work, dont start?

Copy the following files from Steam client installation folder to C:\TCAFiles\Games\cs2\game\bin\win64

  • tier0_s64.dll
  • vstdlib_s64.dll - i dont have that in my own folder on my computer?
  • steamclient64.dll

Already did this on my windows server

Edited by Smolf
vstdlib_s64.dll
Link to comment
Share on other sites

23 hours ago, Smolf said:

Anyone godt the 3 files, so i can try to upload them?

You should have them in your PC, maybe try validating steam. I can provide the files worst case but you should be able to get them pretty easily yourself. Or why don't you just install steam client on your Windows server and then do the system variable or just drop them in. I don't really like this method of dropping the files in win64 as these files get updated sometimes with steam updates and I'm not sure what issues would occur on the game servers in the future running outdated versions. Maybe nothing, I don't know.

Also if you planned on using metamod and counterstrikesharp then I think you actually don't need the 3 dll files mentioned above, as metamod and css fix this themselves.

 

Edited by nubprah
Link to comment
Share on other sites

Thanks for the time to make this config functional. I have a problem with secondarys/failover IPs. Tcadmin select the correct and try to launch it but cs2 servers still launch with the main IP of the machine. Someone has the same problem or how to solve it? Thanks.

Link to comment
Share on other sites

  • 3 weeks later...

Hi there

I'm also having trouble getting it to start up

I have tried to start it manually and a window pops up for 1 second and closes again so I can't see what it says

Anyone have an idea what I should look for?



Kører (PID 0)

Link to comment
Share on other sites

I think I've come to the conclusion that maybe it's because I don't have them here in 64 bit

But I have 

  • tier0_s.dll
    vstdlib_s.dll
    steamclient.dll

and not

  • tier0_s64.dll
  • vstdlib_s64.dll
  • steamclient64.dll
Link to comment
Share on other sites

Hello,

 

can you help me by Steam Workshop?

 

Log Details
Executing before Workshop install/update scripts...
Downloading file 3155069052 from Steam...
Preparing SteamCmd...
Downloading DC | AIM & MOVEMENT | TRAINING (CS2) from Steam (996959086/996959086)...
Executing after Workshop install/update scripts...
DC | AIM & MOVEMENT | TRAINING (CS2)
Exception

Link to comment
Share on other sites

On 2/7/2024 at 12:18 PM, volborg said:

I think I've come to the conclusion that maybe it's because I don't have them here in 64 bit

But I have 

  • tier0_s.dll
    vstdlib_s.dll
    steamclient.dll

and not

  • tier0_s64.dll
  • vstdlib_s64.dll
  • steamclient64.dll

I think I stayed up too late one night and my eyes got the best of me. I did the same thing. Its working, I also learned turning off my authenticator it allowed the steam update to work.

On 2/8/2024 at 12:20 PM, Dennis said:

Yes, you need the 64-bit DLLs. That's also what the post says 🙂

Thanks Dennis, sorry for the late reply from when you were trying to help me out, I ran into other things I ended up taking care of first.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 39 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use