Luigi Auriemma

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

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: gslist -X filtering Colorcodes impossible
PostPosted: 21 Jan 2009 09:09 

Joined: 21 Jan 2009 08:44
Posts: 4
Hi.

I'm trying to use gslist 0.8.7a to get ServerIP,Serverport and Servername for a game called Americas Army.

using
Code:
gslist.exe -X \hostname -n armygame


Im getting just what I need, but the usual 4 byte indicating color codes(Americas Army in unreal based, so it should be 27,r,g,b) have all bytes below 32 changed to 46.

Am I guessing right that the "fault" is found here in enctypex_decoder.c?

Code:
                   
if(infobuff) {
                        // NO there is not the cleaning of the data here!!! (data_cleaner in gslist) sorry
                        infobufflen += sprintf(infobuff + infobufflen, "\\%s\\", par[i].name);
                        c = infobuff + infobufflen;
                        infobufflen += sprintf(infobuff + infobufflen, "%s", p);
                        for(; *c; c++) {    // minimal cleaning done directly on the output infobuff
                            if(*c < ' ') *c = '.';
                            if(*c == '\\') *c = '/';
                        }


is there anyway to use "-C" option to make gslist not to filter anything, or are there any other option I could use?


Top
 Profile  
 
 
 Post subject: Re: gslist -X filtering Colorcodes impossible
PostPosted: 21 Jan 2009 17:59 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
yeah that was a temporary work-around to avoid redundant code, so now I have decided to put the data_cleaner function directly in enctypex which seems the best solution.
the new beta version is available here:

http://aluigi.org/beta/gslist.zip

let me know if you have other suggestions


Top
 Profile  
 
 Post subject: Re: gslist -X filtering Colorcodes impossible
PostPosted: 22 Jan 2009 05:56 

Joined: 21 Jan 2009 08:44
Posts: 4
That worked like a charm.

Thx for the quick relpy and fix.

Amazing work as always.


Top
 Profile  
 
 Post subject: Re: gslist -X filtering Colorcodes impossible
PostPosted: 22 Jan 2009 07:06 

Joined: 21 Jan 2009 08:44
Posts: 4
I didn't noticed that the data_cleaner didn't removed everything because I was using -C and cleaning them myself.

Doesn' t this code from enctypex_data_cleaner mean that it skips 3 chars then it should skip 4(27,r,g,b)?
Code:
            if(c == 0x1b) {                 // Unreal colors
                src += 2;
                max -= 2;
                continue;
            }


Top
 Profile  
 
 Post subject: Re: gslist -X filtering Colorcodes impossible
PostPosted: 22 Jan 2009 17:01 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
yes, you are right for that color, I don't know why I setted it to 2 because it should be the same for all the Unreal games... mah, probably a distraction error.


Top
 Profile  
 
 Post subject: Re: gslist -X filtering Colorcodes impossible
PostPosted: 22 Jan 2009 17:56 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
in the meantime I have also optimized the handling of the so called "strange chars" (those >= 0x7f) using an array which allows to save lot of cpu cycles compared to the previous "switch/case".
(note that I have not updated the beta)

are there other problems/suggestions?


Top
 Profile  
 
 Post subject: Re: gslist -X filtering Colorcodes impossible
PostPosted: 25 Jan 2009 00:52 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
I have just released a new beta of gslist:

http://aluigi.org/beta/gslist.zip

the main changes are in the webgui (although it's no longer supported) and the enctypeX where there was a bug with negative numbers.
if someone tests it please let me know if there are problems.


Top
 Profile  
 
 Post subject: Re: gslist -X filtering Colorcodes impossible
PostPosted: 25 Jan 2009 19:58 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
I have just updated the beta again (note that the version number doesn't change so clean your browser's cache to be sure to download it).
the following is a summary of the changes from version 0.8.7a:
Code:
enctypeX:
- added the handling and filtering of the colors, the chars major than 0x7f and the html/SQL chars (optional)
- fixed a bug in the handling of negative numbers when is used infobuff in enctypex_decoder_convert_to_ipport which caused chaotic values
- added the argument infobuff_size in enctypex_decoder_convert_to_ipport

gslist:
- updated enctypeX
- assigned a type to the various function pointers in multi_query.h
- faster colors filtering
- cleaning of the code

gslist webgui:
- although it's no longer supported I have added support for enctypeX (servers are showed immediately without pinging them, faster than light!)
- optimized sorting function
- default port from 80 to 28903
- avoid multiple instances on the same port
- gslistweb.exe now parses the options passed at command-line (useful for custom port, enctype, enctypeX_query and so on)
- the filter now is no longer saved for error because it's a temporary string only used for being assigned to the games in Config


Top
 Profile  
 
 Post subject: Re: gslist -X filtering Colorcodes impossible
PostPosted: 26 Jan 2009 08:48 

Joined: 21 Jan 2009 08:44
Posts: 4
Thx for update.


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