Luigi Auriemma

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

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 14:54 

Joined: 28 Nov 2008 13:43
Posts: 12
First of all thank you for GSList, it gives great results easily.

I have some issues with the results returned by for example
Code:
gslist -n armedass   -t -1 -X \hostname\gamever\numplayers\maxplayers\mapname\gametype\gamemode\country\mission\sv_battleye\mod -q

A lot of the "extra fields" results get replaced with seemingly random numbers. (e.g. mapname, gametype etc)
At first i thought i could replace these numbers by comparing "known" results, but the numbers effectively change after a couple queries, even when on the remote server nothing changes.
I don't know if it's Gamespy mangling the stuff or some kind of bug in how the answers are parsed.
Personnally i think it's Gamespy but i just want to make sure.


Top
 Profile  
 
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 16:01 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the data displayed by the tool is just those received from the Gamespy master so yes, those strange numbers are exactly the values sent by it.

in short this is a way used by the master server for consuming less bandwidth, for example the mapname 18 is the map "Sara" and gametype 49 is "COOP" while mapname 32 is "saralite" and so on.
I have got these values simply querying the single servers using "gslist -I SERVER:PORT" and the results are ever the same (mapname 0 is probably a custom or unknown map).

I give you also a practical example of the bytes received by the master server for one of the various servers:
Code:
                                 4e 2e 52 f1 0e              N.R..
10 ff 41 6e 67 72 79 49 6e 73 65 63 74 73 2e 64   ..AngryInsects.d
65 00 1f 01 18 20 26 02 2c ff 57 61 72 66 61 72   e.... &.,.Warfar
65 20 76 31 2e 31 20 33 32 50 20 2d 20 52 42 54   e v1.1 32P - RBT
2d 30 30 30 37 35 20 28 53 29 00 05 ff 43 41 3b   -00075 (S)...CA;
40 61 65 63 5f 69 73 6c 61 6e 64 73 3b 40 63 72   @aec_islands;@cr
63 74 69 3b 40 7a 7a 5f 76 30 2e 34 00            cti;@zz_v0.4.   
which is traduced as:
Code:
78.46.82.241:3600 \hostname\AngryInsects.de\gamever\31\numplayers\1\maxplayers\24\mapname\32\gametype\38\gamemode\2\country\44\mission\Warfare v1.1 32P - RBT-00075 (S)\sv_battleye\5\mod\CA;@aec_islands;@crcti;@zz_v0.4
as you can see all the number fields are exactly those of the dump (like 1f for gamever 31 or 18 for maxplayers 24 and so on)

at the moment I don't have an universal solution to know the textual values of these parameters (which naturally differ from game to game) but now I check if it's possible to force the sending of the full values although I have some doubts.


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 16:09 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
correction: I have rechecked the dump and I have found where are stored the textual values of these fields.
I go to fix the code and will keep you update


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 17:30 

Joined: 28 Nov 2008 13:43
Posts: 12
You are an angel!
Will this version be released or do i need to compile it somehow? (I have 0 C or C++ compiling experience)


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 17:36 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
I have just released the new version in this moment:

http://aluigi.org/papers.htm#gslist

oh and thanx for having reported the problem


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 18:48 

Joined: 28 Nov 2008 13:43
Posts: 12
I just tested the new version, it's a lot better, allmost all the strings are now correct.
There however is a new bug in numplayers/maxplayers, which used to be just fine. It seems to show part of the modstring in there.
Thanks again for the rapid fix on my last report!


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 19:26 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
argh... I really forgot that type field :)
released version 0.8.7a


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 20:29 

Joined: 28 Nov 2008 13:43
Posts: 12
Now it works perfect!
A minor question: Arma2 will arrive in a couple of months. Will you still be around to add support for that too?
Your a god!


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 20:45 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
luckily gslist is "maintenance-free" regarding the updates, because it only queries the Gamespy master server so when this one will add arma2 to its database (and I hope they will choice a name less ridiculous then "armedass" ah ah ah) you will be able to query it too.

in fact gslist.cfg is mainly a reference for the users who can see almost all the games supported on the master server and they can manually update this file using the -m option or the -u one which downloads the ready-to-use gslist.cfg from my website.
so the only thing you need to know is the gamename, it's the only requirement of gslist


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 21:32 

Joined: 28 Nov 2008 13:43
Posts: 12
Hehe i rolled over from laughing the first time i saw the name they chose. I allways wondered if it was the guys at GameSpy or the developers that chose this name.

A small question: at the moment i'm making an "arma specific" gamebrowser (with a lot of other specific functionallity like downloading mods etc) in c#
I wonder: can i copy the gslist exe and distribute this with the tool? (just to make work a bit lighter for non-savvy users )
Also you don't happen to have a c# dll with gslist functionallity lying around? (At the moment i capture the output of the exe, which works just fine, but having a dll would allow me a bit more functionality.)

Of course i'll clearly state that the tool uses your magnificent work. It has no commercial purposes at all.
If you don't want this to happen i won't be doing it.


Top
 Profile  
 
 Post subject: Re: GSList.exe Armed Assault Master bad results for extra fields
PostPosted: 28 Nov 2008 23:00 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the GPL (the license used by Gslist) allows to distribuite the final executable also in programs that use incompatible licenses (for example closed source software), so yes, you can.

for the c# dll, no I don't have it and in any case the GPL says that you can't use GPL code or link to GPL code (like the dll) in a program that use an incompatible license.

(I don't know what will be the license of your program, so I'm only assuming that it's not GPL)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 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: