You are not logged in.

#26 03 Dec 2008 9:30 am

Butcher
Moderator
From: Norway
Registered: Jul 2006
Posts: 308

Re: GSLIST how does it works?

Just wondering what exactly the outcome of the script is? Stats for a specific server? As far as I can tell gslist is a function to retreive data from online game servers. Would I be right in assuming that is what you are after?


http://bamboocommandos.com/butcher_img/butchersig7.jpg

Offline

 

#27 03 Dec 2008 3:17 pm

MadHatter
Administrator
From: Dallas TX
Registered: Jun 2006
Posts: 529
Website

Re: GSLIST how does it works?

it gets server ip/ports which can then be used to query each server for server info.

its broken on 64 bit machines.  were the enctype functions not so "assembler" like & if it used less "magic numbers" it would be easier to diagnose what's broken.

Offline

 

#28 19 Feb 2009 5:19 pm

Atako
Member
Registered: Apr 2008
Posts: 10

Re: GSLIST how does it works?

Hey!

I progressed a little.
I got a tip that every left-shift must be changed because otherwhise the bits >32 would make a new value, so everything over 32 must be deleted and I have tried that. Have also changed some "4" values into PHP_INT_SIZE (as much as possible so that there are still a few 154... ports).
Now, a few ports are suspicious correct (beginning with 154...), but still, as already said, ~95% of all ports must begin with 154...

Old code:
http://rhonkar.kilu.de/gsquery.zip
Output: http://rhonkar.kilu.de/1/

New code:
http://rhonkar.kilu.de/gsquery64try.zip
Output: http://rhonkar.kilu.de/2/

Thanks anyway!
Greets,
Atako

Last edited by Atako (07 Jun 2009 10:53 am)

Offline

 

#29 08 Jun 2009 2:49 am

Atako
Member
Registered: Apr 2008
Posts: 10

Re: GSLIST how does it works?

I progressed again. Tested the Decode() function with constant data on both 32bit and 64bit systems.
Result: The while-loop in DecodeHelper1() is the problem! Before it, the data is the same on 32bit and 64bit, but not after it...

Last edited by Atako (08 Jun 2009 3:01 am)

Offline

 

#30 08 Jun 2009 6:10 am

Atako
Member
Registered: Apr 2008
Posts: 10

Re: GSLIST how does it works?

IT WORKS!
Finally it's done!
I had to "&= 0xFFFFFFFF" all variables in DecodeHelper2/3() after every shift.
Thanks anyways!

big_smile

Last edited by Atako (08 Jun 2009 6:29 am)

Offline

 



© 2003 - 2017 NullFX
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License