View unanswered posts | View active topics
|
Page 1 of 2
|
[ 25 posts ] |
|
| Author |
Message |
|
ineya
|
Post subject: libt - and NS servers appear in steam client favorites again Posted: Saturday, 20 Jun 2009, 23:02 |
|
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: -
- --- a/hlds_run
- +++ b/hlds_run
- @@ -357,7 +357,7 @@ run() {
- update
-
- # Run the server
- - $HL_CMD
- + env LD_PRELOAD=libt/libt.so $HL_CMD
- retval=$?
- if test $retval -eq 0 && test -z "$AUTO_UPDATE"; then
- break; # if 0 is returned then just quit
- @@ -377,10 +377,10 @@ run() {
- # Run the server
- if test -z "$DEBUG"; then
- # debug not requested we can exec
- - exec $HL_CMD
- + env LD_PRELOAD=libt/libt.so exec $HL_CMD
- else
- # debug requested we can't exec
- - $HL_CMD
- + env LD_PRELOAD=libt/libt.so $HL_CMD
- debugcore $?
- fi
- fi
-
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.zipOld versions: - 0.2 - http://lambdacore.info/libt_02.zip- 0.1a - http://lambdacore.info/libt_01a.zipCurrent 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 |
|
 |
|
gromo
|
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.
|
|
| Top |
|
 |
|
ineya
|
Post subject: Re: libt - and NS servers appear in steam client favorites again Posted: Saturday, 20 Jun 2009, 23:12 |
|
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 |
|
 |
|
gromo
|
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 
|
|
| Top |
|
 |
|
gromo
|
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 
|
|
| Top |
|
 |
|
ineya
|
Post subject: Re: libt - and NS servers appear in steam client favorites again Posted: Saturday, 20 Jun 2009, 23:37 |
|
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 |
|
 |
|
gromo
|
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 
|
|
| Top |
|
 |
|
ineya
|
Post subject: Re: libt - and NS servers appear in steam client favorites again Posted: Saturday, 20 Jun 2009, 23:52 |
|
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 |
|
 |
|
iggy_bus
|
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 |
|
 |
|
ineya
|
Post subject: Re: libt - and NS servers appear in steam client favorites again Posted: Sunday, 21 Jun 2009, 02:35 |
|
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 |
|
 |
|
Korrupzion
|
Post subject: Re: libt - and NS servers appear in steam client favorites again Posted: Sunday, 21 Jun 2009, 02:54 |
|
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 -
- version
- Protocol version 48
- Exe version 1.1.2.6/Stdio (cstrike)
- Exe build: 18:05:14 Oct 24 2008 (4383)
- (linux)
-
Thanks
|
|
| Top |
|
 |
|
kam821
|
Post subject: Re: libt - and NS servers appear in steam client favorites again Posted: Sunday, 21 Jun 2009, 03:06 |
|
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 |
|
 |
|
ineya
|
Post subject: Re: libt - and NS servers appear in steam client favorites again Posted: Sunday, 21 Jun 2009, 03:14 |
|
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'. -
- Protocol version 48
- Exe version 1.1.2.6/Stdio (cstrike)
- Exe build: 18:05:14 Oct 24 2008 (4383)
-
Can you write 'version' in your legit steam client? This is what I get: -
- ] version
- Protocol version 48
- Exe version 1.1.2.6/2.0.0.0 (cstrike)
- Exe build: 18:12:18 Apr 13 2009 (4554)
-
|
|
| Top |
|
 |
|
kam821
|
Post subject: Re: libt - and NS servers appear in steam client favorites again Posted: Sunday, 21 Jun 2009, 04:02 |
|
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 |
|
 |
|
iggy_bus
|
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 |
|
 |
Who is online |
Users browsing this forum: No registered users and 3 guests |
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
|
|