yourmnbbn / tiny-csgo-client

Tiny csgo client for connecting dedicated server
63 stars 9 forks source link

How to launch it? #13

Open acidbathqq opened 1 year ago

acidbathqq commented 1 year ago

Hello, I can't run this program, I don't understand what should be in the following paragraphs and where to get this information -ticket Use custom ticket to connect to server. -ts Connect to tiny-csgo-server and authenticate your ticket. Can you show an example of a startup string?

yourmnbbn commented 1 year ago

These two command lines you’ve mentioned are optional, you don’t need them to run this project.

The example running command lines are as follows.

Windows:
tiny-csgo-client.exe -ip 127.0.0.1 -cport 44444 -port 27016 -name fakeplayer -pw  pwd 

Linux:
./tiny-csgo-client ip 127.0.0.1 -cport 44444 -port 27016 -name fakeplayer -pw pwd 
acidbathqq commented 1 year ago

I am using a limited version, the main one could not be compiled. Returns an error: Option "-ticket" is required but not found!

yourmnbbn commented 1 year ago

Please read the README of that branch which contains everything you need to know.

Limited version does have some flaws and it’s not recommended to use until #12 has been completed.

acidbathqq commented 1 year ago

Then I have a compilation error /home/acid/hl2sdk-csgo/public/tier0/threadtools.h:874:33: error: expected unqualified-id before ‘const’ 874 | CAutoLockT( const CAutoLockT & ); /home/acid/hl2sdk-csgo/public/tier0/threadtools.h:874:32: error: expected ‘)’ before ‘const’ 874 | CAutoLockT( const CAutoLockT & );

yourmnbbn commented 1 year ago

Please paste the whole log here, and if you are using clang then you should switch to gcc10 or newer gcc compiler to compile this.

acidbathqq commented 1 year ago

gcc 11.2.0 error.txt

yourmnbbn commented 1 year ago

Well, looks like the sdk is not compatible with higher version of gcc. I've tested this on gcc 10.3 it worked fine.

acidbathqq commented 1 year ago

error.txt

acidbathqq commented 1 year ago

I apologize, above, this is a new error. Changed to gcc 10.3. Don't know how to fix it:(

acidbathqq commented 1 year ago

Can you please specify your version of ldd and ld?

yourmnbbn commented 1 year ago
ld: GNU ld (GNU Binutils for Debian) 2.35.2
ldd: ldd (Debian GLIBC 2.31-13+deb11u3) 2.31