Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: jitspoe on March 07, 2007, 02:17:56 AM

Title: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 07, 2007, 02:17:56 AM
Try this and let me know what it displays.  It should print out a list of server IP's.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: b00nlander on March 07, 2007, 02:33:22 AM
error 7
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 07, 2007, 03:31:05 AM
7 = CURLE_COULDNT_CONNECT.  Not very helpful.  I guess it doesn't take care of the proxy stuff automagically.  Thanks for testing.  At least I know not to waste (more of) my time with it, I guess.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 07, 2007, 03:38:05 AM
Actually, scratch that.  I found an option to enable proxy usage (hopefully).  Try this one.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: KnacK on March 07, 2007, 07:52:20 AM
works for me at the office
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: Zorchenhimer on March 07, 2007, 08:42:15 AM
I get the error 7. What port does this thing use? Or is that auto-detected?
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: b00nlander on March 07, 2007, 09:38:24 AM
error 7 with the other version as well =/
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 07, 2007, 01:52:03 PM
Zorchenhimer: Are you behind a proxy, too?

Maybe it doesn't auto-detect the proxy.  I hoped it would...
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: Zorchenhimer on March 07, 2007, 02:24:51 PM
I am behind the most strict proxy I know of. Basically all that is allowed through is HTTP/FTP/HTTPS (port:8080) and Google Talk (I think it uses 8080 too). So, I can see the sever list in Firefox, but pball cannot get it.

Is there a way that you could get the proxy settings from IE or Firefox?
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 07, 2007, 04:29:14 PM
Try this and see if it prints out any information about your proxy:
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: b00nlander on March 07, 2007, 04:40:26 PM
very interesting... where are you getting the information from? I have an autoconfig-script in both Firefox and Internet-Explorer, but disabled it on both (and addressed one of the proxies directly), yet it still printed that script's URL on that console window... hmm
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 07, 2007, 04:44:18 PM
I'm using this method here: http://support.microsoft.com/kb/226473

What I find kind of interesting is that you need a proxy to access websites, but you can still connect to servers directly.  I'm wondering if maybe I should do away with the HTTP approach and just code a special login server that uses UDP or something.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 07, 2007, 04:55:05 PM
Try this one.  I made it print out more information.
Title: Re: For those with problems accessing the login server and server list in-game..
Post by: b00nlander on March 07, 2007, 05:03:32 PM
yeah, it obviously prints out all the information in that option-array ;)

for INTERNET_PER_CONN_PROXY_SERVER, it only prints out a crpytic value: "ÉÛ§", all other values are readable:

Quote
INTERNET_PER_CONN_AUTODISCOVERY_FLAGS = 0x00
INTERNET_PER_CONN_FLAGS = 0x03
INTERNET_PER_CONN_AUTOCONFIG_URL = http://www.tennessee.uni-karlsruhe.de/proxy-a
utoconfig.pac
INTERNET_PER_CONN_PROXY_BYPASS = *.uni-karlsruhe.de;<local>
INTERNET_PER_CONN_PROXY_SERVER = ÉÛ§
Press Enter to continue...
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: Zorchenhimer on March 07, 2007, 05:16:37 PM
Both proxyinfo's work. Btw, a special UDP server will not work for me. Everything was blocked, then some stuff was hand chosen and unblocked (like HTTP).
Title: Re: For those with problems accessing the login server and server list in-game..
Post by: XtremeBain on March 07, 2007, 05:23:44 PM
What I find kind of interesting is that you need a proxy to access websites, but you can still connect to servers directly.  I'm wondering if maybe I should do away with the HTTP approach and just code a special login server that uses UDP or something.

I don't know why you're not letting the servers handle the authentication in the first place.  Hash the username and password and send over the UDP stream to the server just like anything else in game, then hash the info again and have the server establish the HTTP connection to dplogin.com to perform the authentication.  That would mean a lot less hassle for players, I think.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: Zorchenhimer on March 07, 2007, 05:26:33 PM
That would make sense. Oh, and you might want to ad a "please wait while your username is being verified" message instead of just freezing at "player connected".
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 07, 2007, 05:44:47 PM
Whoops.  I screwed up.  Try this one.

Bain: It does both.  The main reason for the client login is to make sure the login works rather than connecting to the server and getting booted.  It also has some stuff to reduce (and hopefully completely prohibit) spoofing.

Zorch: I really need to make the player validation done in a separate thread so there is no freezing at all.  It's basically instantaneous for me, so I thought maybe I could get away with it.  I really just wanted to get build 17 done with since it's been over a year.

Edit: Oh, and with that curl test, try this:

- Put the exe in an easy to access location (like c:\)
- Start|Run "cmd"
- cd c:\ (or wherever you put the exe)
- set http_proxy=http://proxy.ip.address:port
- cURLTest
Title: Re: For those with problems accessing the login server and server list in-game..
Post by: b00nlander on March 07, 2007, 06:06:03 PM
with the autoconfig-flag enabled:

Quote
INTERNET_PER_CONN_AUTODISCOVERY_FLAGS = 0x00
INTERNET_PER_CONN_FLAGS = 0x07
INTERNET_PER_CONN_AUTOCONFIG_URL = http://www.tennessee.uni-karlsruhe.de/proxy-a
utoconfig.pac
  PROXY_TYPE_AUTO_PROXY_URL
INTERNET_PER_CONN_PROXY_BYPASS = *.uni-karlsruhe.de;<local>
INTERNET_PER_CONN_PROXY_SERVER = proxy.tennessee.uni-karlsruhe.de:3128
Press Enter to continue...
Title: Re: For those with problems accessing the login server and server list in-game..
Post by: JiGSaW on March 08, 2007, 04:07:33 PM
(http://img232.imageshack.us/img232/6952/uhwc5.th.jpg) (http://img232.imageshack.us/my.php?image=uhwc5.jpg)

So what's this supposed to do?
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: Zorchenhimer on March 08, 2007, 04:28:27 PM
This is a little program to see if pball will be able to contact the global login server through a proxy.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 08, 2007, 04:31:24 PM
It's supposed to do exactly what you showed me in the screenshot.  It's just a test app to make sure this method will work in paintball2 before I bother implementing it.  Thanks for the response.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: JiGSaW on March 08, 2007, 05:51:05 PM
How is that supposed to help me not being able to login or get my serverlist.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: XtremeBain on March 08, 2007, 05:57:02 PM
How is that supposed to help me not being able to login or get my serverlist.
jitspoe made that little program as a test to see if it would work for you and others who are experiencing problems retrieving server lists and logging in using B17.  Now he's taking the feedback that you guys are providing and making a decision with regards to including this library in the next B17 pretest.  Hopefully he'll come up with a solution for you guys in the next pretest.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 08, 2007, 07:00:46 PM
What bain said -- I need to make sure this works before I even bother putting it in the game.  I'm probably going to move up to build 18 with this addition and keep the build numbers moving up, simply because it makes things easier to keep track of.

One last test, just to make sure everything is working together.  This one should auto-detect the use of a proxy in your Internet settings and use it if you have it enabled, otherwise it will use the direct connection to download the list:
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: XtremeBain on March 08, 2007, 07:17:39 PM
I loaded cURLTest_useIEproxy.zip up on my Win2003 vmware session and it does exactly as described for me.  I tried changing some of the proxy settings within the internet options and it worked/failed accordingly.  In terms of Linux, there is the http_proxy environment variable which you can plug into cURL (not sure if it detects that automatically on *nix).  Hopefully this resolves issues for most players.
Title: Re: For those with problems accessing the login server and server list in-game..
Post by: Zorchenhimer on March 08, 2007, 07:21:02 PM
Jits, when I run this it pauses for a while then spits out error code 7. But I have a feeling its my school's proxy is blocking it. What port does it use?
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 08, 2007, 08:09:05 PM
XtremeBain: The http_proxy environment variable is respected on all operating systems, however, that's not what people typically use in Windows.  I figure it would be easier to use the internet settings that are already being used.

Zorch: It's using whatever you have in your Internet settings.  I went back to review your results but I guess you never posted them.  Would you mind sharing what proxyinfo2fix displayed (you can send it in PM if you don't want other people to see).
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: Clipz on March 08, 2007, 08:52:44 PM
thats the list of server ip's...
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: b00nlander on March 09, 2007, 01:45:23 AM
error 5 for me =/
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 09, 2007, 02:02:22 AM
5 = CURLE_COULDNT_RESOLVE_PROXY.  Strange considering setting http_proxy and running the first curl test worked.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: jitspoe on March 15, 2007, 01:33:25 AM
Ok, time for the first test of the UDP stuff.  I'm starting out simple -- all it does is send a single "test" packet to the server and prints "Success!" if it gets a "testresponse" packet back.  If this works, I'll move on to a full blown login server and serverlist server.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: Eiii on March 15, 2007, 02:05:56 AM
Works for me.
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: b00nlander on March 15, 2007, 03:23:07 AM
works for me as well
Title: Re: For those with problems accessing the login server and server list in-game...
Post by: T3RR0R15T on March 15, 2007, 01:09:34 PM
Works, next one :D