Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 20:02

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: GSList.exe query filter on 'hostaddr' and 'hostport' bug?
PostPosted: 21 Dec 2008 22:37 

Joined: 28 Nov 2008 13:43
Posts: 12
try
Code:
gslist -n armedass -f "(hostaddr='87.106.129.210')"   -t -1 -X \hostname\gamever\numplayers\maxplayers\mapname\gametype\gamemode\country\mission\sv_battleye\mod -q

or
Code:
gslist -n armedass -f "(hostport LIKE '87.106.129.210')"   -t -1 -X \hostname\gamever\numplayers\maxplayers\mapname\gametype\gamemode\country\mission\sv_battleye\mod -q


Both will return empty result, where the server does exist.
Allso one runs into problems escaping characters like ) or ( in filters.
Is there any escape character i can use?
Thanks again for your great program!
An idea could be to take the exact string between the "'s and parse that string.
That way escaping could be avoided alltogether, except for ".


Top
 Profile  
 
 
 Post subject: Re: GSList.exe query filter on 'hostaddr' and 'hostport' bug?
PostPosted: 21 Dec 2008 22:48 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
uhmmm I don't know if the gamespy master server has a filter for the IP address of the server, but I think not.
the only work-around is identifying the server from its hostname which is the only "pseudo-unique" parameter: -f "(hostname LIKE '%nameoftheserver%')"


Top
 Profile  
 
 Post subject: Re: GSList.exe query filter on 'hostaddr' and 'hostport' bug?
PostPosted: 21 Dec 2008 23:21 

Joined: 28 Nov 2008 13:43
Posts: 12
Well a problem there is that i've got hostnames containing '(' and the likes :-)


Top
 Profile  
 
 Post subject: Re: GSList.exe query filter on 'hostaddr' and 'hostport' bug?
PostPosted: 21 Dec 2008 23:50 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
here I have had no problems using a filter with a hostname containing a parenthesis, the server was "catched" without troubles.
anyway in case of doubts take a look on internet about the SQL/databases escape characters (generally is needed to place a '\' before the "problematic" char, I think it's the same in SQL too)


Top
 Profile  
 
 Post subject: Re: GSList.exe query filter on 'hostaddr' and 'hostport' bug?
PostPosted: 22 Dec 2008 17:20 

Joined: 28 Nov 2008 13:43
Posts: 12
It must have been a silly typo on my side.
Too bad GS itself does not support filtering on server ip/ports. It would be very handy for "favorite server" lists.
The "hostname" workaround seems to work though allthough it's not as clean as filtering by ip/port.


Top
 Profile  
 
 Post subject: Re: GSList.exe query filter on 'hostaddr' and 'hostport' bug?
PostPosted: 25 Jan 2009 00:08 

Joined: 28 Nov 2008 13:43
Posts: 12
By the way anyone looking to escape a '
this is the way to do it.
gslist -n armedass -f "(hostname='MARSOC''s Condo')" -t -1 -X \hostname\gamever\numplayers\maxplayers\mapname\gametype\gamemode\country\mission\sv_battleye\mod -q

Replace ' by ''


Top
 Profile  
 
 Post subject: Re: GSList.exe query filter on 'hostaddr' and 'hostport' bug?
PostPosted: 25 Jan 2009 00:22 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
I think you can also use a backslash before it like \'
anyway within some hours (hope minutes) I will release a new beta of gslist where I'm fixing various things (enctypeX in this moment where I have found a bug)


Top
 Profile  
 
 Post subject: Re: GSList.exe query filter on 'hostaddr' and 'hostport' bug?
PostPosted: 25 Jan 2009 21:29 

Joined: 28 Nov 2008 13:43
Posts: 12
Escaping ' with \
\' does not work. However this may not be a problem of gslist, but of Gamespy itself.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC [ DST ]


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

Search for: