Logo

CS.RIN.RU - Steam Underground Community

IRC: #cs.rin.ru at irc.rizon.net
It is currently Friday, 17 Apr 2015, 10:15

English | Русский




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 25 posts ] 
Author Message

Post Post subject: libt - and NS servers appear in steam client favorites again   
Posted: Saturday, 20 Jun 2009, 23:02   
Beginner Без звания
Joined: Monday, 02 Mar 2009, 23:37
Posts: 14
libt is a library (so far only for linux), which gets loaded before hlds and will replace functionality regarding server query info response. The goal is to allow steam clients to see NS servers in favorites again (this stopped to work few days ago). Servers running dproto with old answer type were suddenly hidden for steam clients (they didn't appear in favorites list). You have possibility to turn on new answer type, but then of course you loose P47 players. With libt your hybrid P47/P48 server should be visible also for steam clients.

As this functionality is now provided by dproto>=v0.2.7. it is not very likely libt will be further maintained. You can still use it with dproto<=v0.2.6., but consider upgrading to dproto v0.2.7. and let libt quietly die.

Quote:
ineya wrote:
I'm running dproto using the old protocol. I wrote a library, which I load before hlds starts, and I rewrote sendto function with my own implementaion in this way:
if I detect that response to server info query is about to be sent, I do:
send faulty packet
send reply using old proto
send reply using new proto

and I can see my server from NS P47 client, NS P48 client and latest STEAM P48 client :-).

This is inside:
libt
libt/libt.so
hlds_run

hlds_run is my version and these are changes I made to load libt:
  1.  
  2. --- a/hlds_run
  3. +++ b/hlds_run
  4. @@ -357,7 +357,7 @@ run() {
  5.                         update
  6.  
  7.                         # Run the server
  8. -                       $HL_CMD
  9. +                       env LD_PRELOAD=libt/libt.so $HL_CMD
  10.                         retval=$?
  11.                         if test $retval -eq 0 && test -z "$AUTO_UPDATE"; then
  12.                                 break; # if 0 is returned then just quit
  13. @@ -377,10 +377,10 @@ run() {
  14.                 # Run the server
  15.                 if test -z "$DEBUG"; then
  16.                         # debug not requested we can exec
  17. -                       exec $HL_CMD
  18. +                       env LD_PRELOAD=libt/libt.so exec $HL_CMD
  19.                 else
  20.                         # debug requested we can't exec
  21. -                       $HL_CMD
  22. +                       env LD_PRELOAD=libt/libt.so $HL_CMD
  23.                         debugcore $?
  24.                 fi
  25.         fi
  26.  


I tested this server with 5 different clients I could get, 2 of them were steam.

This is not intended as server promotion, it's a server where I'm currently testing it, if you'd like to see it, but don't want to install it on your server: 217.11.249.92:27205

I created separate topic for libt, because I felt that dproto topic is starting to get a little hijacked.

Features (or what should work):
- cs 1.6 clients NS P47, NS P48 and steam P48 should see your server in favorites
- quakestat and gametracker should not have problems to see your server and fetch player list

Current version is:
- 0.3 - http://lambdacore.info/libt_03.zip

Old versions:
- 0.2 - http://lambdacore.info/libt_02.zip
- 0.1a - http://lambdacore.info/libt_01a.zip

Current bugs:
- some 3rd party apps may see server as offline, or player info may be missing
- if you just need it for stats consider using subserver feature of dproto

Changelog:
- 0.3
- enhanced managment of list of current players
- my test server now shows on gametrack as online + player names/times are visible too
- code size almost doubled since 0.1a

- 0.2
- tries to fix problems with 3rd party apps querying server, or at least for most of them
- successfully tested with quakestat and gametracker (but no players?)

- 0.1a
- initial version, tested with NS P47, NS P48 and steam clients


Last edited by ineya on Monday, 22 Jun 2009, 00:40, edited 11 times in total.

Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Saturday, 20 Jun 2009, 23:05   
Advanced forumer Завсегдатай
Joined: Thursday, 20 Mar 2008, 12:03
Posts: 113
Location: Łódź, Poland
gromo wrote:
This isnt do anything with authid's.

-- Edit --

Okay, I see one bug. All php-based scripts like gametracker or game-monitor showing server with libt as offline.


I thinkt this is a problem with faulty packet.

_________________
NonSteam CS 1.6 download, download cs 1.6


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Saturday, 20 Jun 2009, 23:12   
Beginner Без звания
Joined: Monday, 02 Mar 2009, 23:37
Posts: 14
gromo wrote:
I thinkt this is a problem with faulty packet.

I agree, I'll see if I can do something about it.
If not, then some mirror port for specific query version could be added, which could be used for 3rd party apps (without sending the faulty packet).


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Saturday, 20 Jun 2009, 23:29   
Advanced forumer Завсегдатай
Joined: Thursday, 20 Mar 2008, 12:03
Posts: 113
Location: Łódź, Poland
Quote:
If not, then some mirror port for specific query version could be added, which could be used for 3rd party apps (without sending the faulty packet).
Yes, now I'm using this ;)

_________________
NonSteam CS 1.6 download, download cs 1.6


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Saturday, 20 Jun 2009, 23:29   
Advanced forumer Завсегдатай
Joined: Thursday, 20 Mar 2008, 12:03
Posts: 113
Location: Łódź, Poland
Quote:
If not, then some mirror port for specific query version could be added, which could be used for 3rd party apps (without sending the faulty packet).
Yes, now I'm using this ;)

_________________
NonSteam CS 1.6 download, download cs 1.6


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Saturday, 20 Jun 2009, 23:37   
Beginner Без звания
Joined: Monday, 02 Mar 2009, 23:37
Posts: 14
gromo wrote:
I thinkt this is a problem with faulty packet.

OK, I think I might be able to fix this, at least first tests look promising. (Fingers crossed.)


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Saturday, 20 Jun 2009, 23:42   
Advanced forumer Завсегдатай
Joined: Thursday, 20 Mar 2008, 12:03
Posts: 113
Location: Łódź, Poland
ineya wrote:
gromo wrote:
I thinkt this is a problem with faulty packet.

OK, I think I might be able to fix this, at least first tests look promising. (Fingers crossed.)
I can be your beta tester ;-)

_________________
NonSteam CS 1.6 download, download cs 1.6


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Saturday, 20 Jun 2009, 23:52   
Beginner Без звания
Joined: Monday, 02 Mar 2009, 23:37
Posts: 14
gromo wrote:
I can be your beta tester ;-)

Thanks, any help is appreciated :-). I'll update the first post in ~10-20 minutes with new version.

--- EDIT ---
almost 30 minutes later:
0.2 added to first post


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Sunday, 21 Jun 2009, 01:46   
Advanced forumer Завсегдатай
Joined: Saturday, 18 Jun 2005, 13:03
Posts: 97
still offline in gametracker :S


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Sunday, 21 Jun 2009, 02:35   
Beginner Без звания
Joined: Monday, 02 Mar 2009, 23:37
Posts: 14
iggy_bus wrote:
still offline in gametracker :S

That should work with v0.2,.. With each instance of client and 3rd party the complexity increases, because each one expects a little bit different input, and reacts a little bit different to various "mutations" of response packets.

Anyway..
I made version 0.3, which is available in first post. My testing server now shows online on gametracker, and also player numbers/names/times are displayed. But of course it'll need some observation over longer period of time. As usual your feedback is welcomed.


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Sunday, 21 Jun 2009, 02:54   
User Редкий гость
Joined: Sunday, 17 Aug 2008, 06:48
Posts: 21
can you explain exactly what's the problem? coz I can add servers with dproto (with old style answer type) fine by putting the IP in the add servers thing, pressing "Find games at this address" then Add

Tested with:
-Legit Steam
-dproto 0.2.6 with ServerInfoAnswerType = 1
  1.  
  2. version
  3. Protocol version 48
  4. Exe version 1.1.2.6/Stdio (cstrike)
  5. Exe build: 18:05:14 Oct 24 2008 (4383)
  6. (linux)
  7.  




Thanks


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Sunday, 21 Jun 2009, 03:06   
User Редкий гость
Joined: Wednesday, 10 Dec 2008, 20:24
Posts: 35
Works fine, but I still waiting for version with fixed player list on GameTracker and Game-Monitor :)
Nice work, maybe, you should call a dproto and libt to a .so file and load into a LD_PRELOAD? :)

_________________
FragArena.pl - Polish CS 1.6 Servers


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Sunday, 21 Jun 2009, 03:14   
Beginner Без звания
Joined: Monday, 02 Mar 2009, 23:37
Posts: 14
Korrupzion wrote:
can you explain exactly what's the problem? coz I can add servers with dproto (with old style answer type) fine by putting the IP in the add servers thing, pressing "Find games at this address" then Add

Tested with:
-Legit Steam
-dproto 0.2.6 with ServerInfoAnswerType = 1
Thanks

Exactly this doesn't work for me, and also for few other people. Have you updated your cs installation recently? This problem appeared about a week ago after some steam update.

When my steam client receives old answer type 0xff, 0xff, 0xff, 0xff, 0x6d it will just ignore it.

I tried to replicate your test using [DPROTO] Version 0.2.6 Linux, ServerInfoAnswerType = 1 and following server version. But all I've got was 'server not responding'.
  1.  
  2. Protocol version 48
  3. Exe version 1.1.2.6/Stdio (cstrike)
  4. Exe build: 18:05:14 Oct 24 2008 (4383)
  5.  



Can you write 'version' in your legit steam client?
This is what I get:
  1.  
  2. ] version
  3. Protocol version 48
  4. Exe version 1.1.2.6/2.0.0.0 (cstrike)
  5. Exe build: 18:12:18 Apr 13 2009 (4554)
  6.  


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Sunday, 21 Jun 2009, 04:02   
User Редкий гость
Joined: Wednesday, 10 Dec 2008, 20:24
Posts: 35
Version 0.3 works fine, but you should add a config file, because I don't need print a messages from the libt :)
Now, you should call a dproto and libt, and optimise this plugin :)

_________________
FragArena.pl - Polish CS 1.6 Servers


Top
 Profile  

Post Post subject: Re: libt - and NS servers appear in steam client favorites again   
Posted: Sunday, 21 Jun 2009, 05:03   
Advanced forumer Завсегдатай
Joined: Saturday, 18 Jun 2005, 13:03
Posts: 97
0.3 is ok with gametracker for now
;)


Top
 Profile  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 25 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 3 guests


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum




Powered by phpBB® Forum Software © phpBB Group